/[projects]/android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/jdo/JdoStationBean.java
ViewVC logotype

Annotation of /android/TrainInfoServiceGoogle/src/dk/thoerup/traininfoservice/jdo/JdoStationBean.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1080 - (hide annotations) (download)
Mon Sep 20 20:11:55 2010 UTC (13 years, 8 months ago) by torben
File size: 1657 byte(s)
Add a copy with partial support for google app engine
1 torben 1080 package dk.thoerup.traininfoservice.jdo;
2    
3     import javax.jdo.annotations.IdGeneratorStrategy;
4     import javax.jdo.annotations.PersistenceCapable;
5     import javax.jdo.annotations.Persistent;
6     import javax.jdo.annotations.PrimaryKey;
7    
8    
9     @PersistenceCapable
10     public class JdoStationBean {
11    
12     @PrimaryKey
13     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
14     private Long id;
15    
16     @Persistent
17     private String name;
18    
19     @Persistent
20     private double latitude;
21    
22     @Persistent
23     private double longitude;
24    
25     @Persistent
26     private String regional;
27    
28     @Persistent
29     private String strain;
30    
31     @Persistent
32     private String metro;
33    
34     @Persistent
35     private String address;
36    
37     /************** accessors **************/
38    
39    
40     public long getId() {
41     return id;
42     }
43     public void setId(long id) {
44     this.id = id;
45     }
46     public String getName() {
47     return name;
48     }
49     public void setName(String name) {
50     this.name = name;
51     }
52     public double getLatitude() {
53     return latitude;
54     }
55     public void setLatitude(double latitude) {
56     this.latitude = latitude;
57     }
58     public double getLongitude() {
59     return longitude;
60     }
61     public void setLongitude(double longitude) {
62     this.longitude = longitude;
63     }
64     public String getRegional() {
65     return regional;
66     }
67     public void setRegional(String regional) {
68     this.regional = regional;
69     }
70    
71    
72     public String getStrain() {
73     return strain;
74     }
75     public void setStrain(String strain) {
76     this.strain = strain;
77     }
78    
79    
80    
81     public String getMetro() {
82     return metro;
83     }
84     public void setMetro(String metro) {
85     this.metro = metro;
86     }
87    
88    
89    
90     public String getAddress() {
91     return address;
92     }
93     public void setAddress(String address) {
94     this.address = address;
95     }
96    
97    
98    
99     }

  ViewVC Help
Powered by ViewVC 1.1.20