Mercurial > dive4elements > river
annotate backend/src/main/java/org/dive4elements/river/model/HWSLine.java @ 5844:4dd33b86dc61
Added header to river backend.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 26 Apr 2013 08:25:41 +0200 |
parents | 5aa05a7a34b7 |
children | df01095257ad |
rev | line source |
---|---|
5844
4dd33b86dc61
Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
4dd33b86dc61
Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
2 * Software engineering by Intevation GmbH |
4dd33b86dc61
Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
3 * |
4dd33b86dc61
Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
4 * This file is Free Software under the GNU AGPL (>=v3) |
4dd33b86dc61
Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the |
4dd33b86dc61
Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
6 * documentation coming with Dive4Elements River for details. |
4dd33b86dc61
Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
7 */ |
4dd33b86dc61
Added header to river backend.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5838
diff
changeset
|
8 |
5829
18619c1e7c2a
Repaired internal references.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5828
diff
changeset
|
9 package org.dive4elements.river.model; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
10 |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
11 import com.vividsolutions.jts.geom.Geometry; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
12 |
5829
18619c1e7c2a
Repaired internal references.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5828
diff
changeset
|
13 import org.dive4elements.river.model.HWSKind; |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
14 |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
15 import java.io.Serializable; |
5091
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
16 import java.util.List; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
17 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
18 import javax.persistence.Column; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
19 import javax.persistence.Entity; |
5098
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
20 import javax.persistence.GeneratedValue; |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
21 import javax.persistence.GenerationType; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
22 import javax.persistence.Id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
23 import javax.persistence.JoinColumn; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
24 import javax.persistence.OneToOne; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
25 import javax.persistence.Table; |
5098
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
26 import javax.persistence.SequenceGenerator; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
27 |
5091
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
28 import org.hibernate.Session; |
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
29 import org.hibernate.Query; |
5064
fb7c4ad94bd8
Fix build: some more imports some less imports some copy paste errors
Andre Heinecke <aheinecke@intevation.de>
parents:
5061
diff
changeset
|
30 import org.hibernate.annotations.Type; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
31 |
5829
18619c1e7c2a
Repaired internal references.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5828
diff
changeset
|
32 import org.dive4elements.river.backend.SessionHolder; |
5091
e836b2bd683e
Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents:
5090
diff
changeset
|
33 |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
34 @Entity |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
35 @Table(name = "hws_lines") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
36 public class HWSLine implements Serializable { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
37 |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
38 private Integer id; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
39 |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
40 private Integer ogrFid; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
41 private HWSKind kind; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
42 private FedState fedState; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
43 private River river; |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
44 private Integer official; |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
45 private Integer shoreSide; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
46 private String name; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
47 private String path; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
48 private String agency; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
49 private String range; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
50 private String source; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
51 private String status_date; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
52 private String description; |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
53 private Geometry geom; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
54 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
55 @Id |
5098
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
56 @SequenceGenerator( |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
57 name = "SEQUENCE_HWS_LINES_ID_SEQ", |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
58 sequenceName = "HWS_LINES_ID_SEQ", |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
59 allocationSize = 1) |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
60 @GeneratedValue( |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
61 strategy = GenerationType.SEQUENCE, |
a2600507761e
Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents:
5091
diff
changeset
|
62 generator = "SEQUENCE_HWS_LINES_ID_SEQ") |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
63 @Column(name = "id") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
64 public Integer getId() { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
65 return id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
66 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
67 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
68 public void setId(Integer id) { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
69 this.id = id; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
70 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
71 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
72 @Column(name = "geom") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
73 @Type(type = "org.hibernatespatial.GeometryUserType") |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
74 public Geometry getGeom() { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
75 return geom; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
76 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
77 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
78 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
79 public void setGeom(Geometry geom) { |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
80 this.geom = geom; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
81 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
82 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
83 /** |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
84 * Get ogrFid. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
85 * |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
86 * @return ogrFid as Integer. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
87 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
88 @Column(name = "ogr_fid") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
89 public Integer getOgrFid() { |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
90 return ogrFid; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
91 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
92 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
93 /** |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
94 * Set ogrFid. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
95 * |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
96 * @param ogrFid the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
97 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
98 public void setOgrFid(Integer ogrFid) { |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
99 this.ogrFid = ogrFid; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
100 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
101 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
102 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
103 /** |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
104 * Get official. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
105 * |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
106 * @return official as Integer. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
107 */ |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
108 @Column(name = "official") |
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
109 public Integer getofficial() { |
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
110 return official; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
111 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
112 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
113 /** |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
114 * Set official. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
115 * |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
116 * @param official the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
117 */ |
5183
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
118 public void setofficial(Integer official) { |
0a83a796f7cf
Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents:
5098
diff
changeset
|
119 this.official = official; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
120 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
121 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
122 /** |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
123 * Get shoreSide. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
124 * |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
125 * @return shoreSide as Integer. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
126 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
127 @Column(name = "shore_side") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
128 public Integer getShoreSide() { |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
129 return shoreSide; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
130 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
131 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
132 /** |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
133 * Set shoreSide. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
134 * |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
135 * @param shoreSide the value to set. |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
136 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
137 public void setShoreSide(Integer shoreSide) { |
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
138 this.shoreSide = shoreSide; |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
139 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
140 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
141 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
142 * Get name. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
143 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
144 * @return name as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
145 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
146 @Column(name = "name") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
147 public String getName() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
148 return name; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
149 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
150 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
151 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
152 * Set name. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
153 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
154 * @param name the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
155 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
156 public void setName(String name) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
157 this.name = name; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
158 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
159 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
160 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
161 * Get path. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
162 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
163 * @return path as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
164 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
165 @Column(name = "path") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
166 public String getPath() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
167 return path; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
168 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
169 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
170 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
171 * Set path. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
172 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
173 * @param path the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
174 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
175 public void setPath(String path) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
176 this.path = path; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
177 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
178 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
179 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
180 * Get agency. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
181 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
182 * @return agency as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
183 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
184 @Column(name = "agency") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
185 public String getAgency() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
186 return agency; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
187 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
188 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
189 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
190 * Set agency. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
191 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
192 * @param agency the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
193 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
194 public void setAgency(String agency) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
195 this.agency = agency; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
196 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
197 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
198 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
199 * Get range. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
200 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
201 * @return range as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
202 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
203 @Column(name = "range") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
204 public String getRange() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
205 return range; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
206 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
207 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
208 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
209 * Set range. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
210 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
211 * @param range the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
212 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
213 public void setRange(String range) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
214 this.range = range; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
215 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
216 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
217 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
218 * Get source. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
219 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
220 * @return source as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
221 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
222 @Column(name = "source") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
223 public String getSource() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
224 return source; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
225 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
226 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
227 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
228 * Set source. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
229 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
230 * @param source the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
231 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
232 public void setSource(String source) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
233 this.source = source; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
234 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
235 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
236 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
237 * Get status_date. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
238 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
239 * @return status_date as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
240 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
241 @Column(name = "status_date") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
242 public String getStatusDate() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
243 return status_date; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
244 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
245 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
246 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
247 * Set status_date. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
248 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
249 * @param status_date the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
250 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
251 public void setStatusDate(String status_date) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
252 this.status_date = status_date; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
253 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
254 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
255 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
256 * Get description. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
257 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
258 * @return description as String. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
259 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
260 @Column(name = "description") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
261 public String getDescription() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
262 return description; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
263 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
264 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
265 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
266 * Set description. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
267 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
268 * @param description the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
269 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
270 public void setDescription(String description) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
271 this.description = description; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
272 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
273 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
274 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
275 * Get kind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
276 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
277 * @return kind as HWSKind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
278 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
279 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
280 @JoinColumn(name = "kind_id") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
281 public HWSKind getKind() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
282 return kind; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
283 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
284 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
285 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
286 * Set kind. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
287 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
288 * @param kind the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
289 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
290 public void setKind(HWSKind kind) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
291 this.kind = kind; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
292 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
293 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
294 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
295 * Get fedState. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
296 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
297 * @return fedState as FedState. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
298 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
299 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
300 @JoinColumn(name = "fed_state_id") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
301 public FedState getFedState() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
302 return fedState; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
303 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
304 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
305 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
306 * Set fedState. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
307 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
308 * @param fedState the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
309 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
310 public void setFedState(FedState fedState) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
311 this.fedState = fedState; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
312 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
313 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
314 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
315 * Get river. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
316 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
317 * @return river as River. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
318 */ |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
319 @OneToOne |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
320 @JoinColumn(name = "river_id") |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
321 public River getRiver() { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
322 return river; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
323 } |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
324 |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
325 /** |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
326 * Set river. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
327 * |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
328 * @param river the value to set. |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
329 */ |
5081
1d95391d056b
Made it compile again. Removed obsolete imports. Removed C++-alike ';' at end of classes.
Sascha L. Teichmann <teichmann@intevation.de>
parents:
5064
diff
changeset
|
330 public void setRiver(River river) { |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
331 this.river = river; |
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
332 } |
5090
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
333 |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
334 public static List<HWSLine> getLines(int riverId, String name) { |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
335 Session session = SessionHolder.HOLDER.get(); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
336 |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
337 Query query = session.createQuery( |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
338 "from HWSLine where river.id =:river_id and name=:name"); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
339 query.setParameter("river_id", riverId); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
340 query.setParameter("name", name); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
341 |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
342 return query.list(); |
2878b816e945
Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents:
5081
diff
changeset
|
343 } |
5061
c9ba713a7750
Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff
changeset
|
344 } |