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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1093 - (show annotations) (download)
Tue Sep 21 20:10:46 2010 UTC (13 years, 7 months ago) by torben
File size: 1907 byte(s)
Code Sync (use jsr107 / memcache for caching)
1 package dk.thoerup.traininfoservice.jdo;
2
3 import java.util.List;
4
5 import javax.jdo.annotations.IdGeneratorStrategy;
6 import javax.jdo.annotations.PersistenceCapable;
7 import javax.jdo.annotations.Persistent;
8 import javax.jdo.annotations.PrimaryKey;
9
10
11 @PersistenceCapable
12 public class JdoStationBean {
13
14 @PrimaryKey
15 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
16 private Long id;
17
18 @Persistent
19 private String name;
20
21 @Persistent
22 private String nameLower;
23
24 @Persistent
25 private double latitude;
26
27 @Persistent
28 private double longitude;
29
30 @Persistent
31 private String regional;
32
33 @Persistent
34 private String strain;
35
36 @Persistent
37 private String metro;
38
39 @Persistent
40 private String address;
41
42 @Persistent
43 private List<JdoStationAlias> aliases;
44
45 /************** accessors **************/
46
47
48 public long getId() {
49 return id;
50 }
51 public void setId(long id) {
52 this.id = id;
53 }
54 public String getName() {
55 return name;
56 }
57 public void setName(String name) {
58 this.name = name;
59 }
60
61
62 public String getNameLower() {
63 return nameLower;
64 }
65 public void setNameLower(String name) {
66 this.nameLower = name;
67 }
68
69
70 public double getLatitude() {
71 return latitude;
72 }
73 public void setLatitude(double latitude) {
74 this.latitude = latitude;
75 }
76 public double getLongitude() {
77 return longitude;
78 }
79 public void setLongitude(double longitude) {
80 this.longitude = longitude;
81 }
82 public String getRegional() {
83 return regional;
84 }
85 public void setRegional(String regional) {
86 this.regional = regional;
87 }
88
89
90 public String getStrain() {
91 return strain;
92 }
93 public void setStrain(String strain) {
94 this.strain = strain;
95 }
96
97
98
99 public String getMetro() {
100 return metro;
101 }
102 public void setMetro(String metro) {
103 this.metro = metro;
104 }
105
106
107
108 public String getAddress() {
109 return address;
110 }
111 public void setAddress(String address) {
112 this.address = address;
113 }
114
115
116
117 }

  ViewVC Help
Powered by ViewVC 1.1.20