annotate backend/src/main/java/org/dive4elements/river/model/HWSLine.java @ 7162:4683bdf77ff9

Handle flow velocity measurements in the FlowVelocity processor
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 26 Sep 2013 10:38:21 +0200
parents 4c3ccf2b0304
children
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 *
5992
4c3ccf2b0304 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5870
diff changeset
4 * This file is Free Software under the GNU AGPL (>=v3)
5844
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
5992
4c3ccf2b0304 Removed trailing whitespace.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5870
diff changeset
6 * documentation coming with Dive4Elements River for details.
5844
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
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
13 import java.io.Serializable;
5091
e836b2bd683e Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents: 5090
diff changeset
14 import java.util.List;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
15
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
16 import javax.persistence.Column;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
17 import javax.persistence.Entity;
5098
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
18 import javax.persistence.GeneratedValue;
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
19 import javax.persistence.GenerationType;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
20 import javax.persistence.Id;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
21 import javax.persistence.JoinColumn;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
22 import javax.persistence.OneToOne;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
23 import javax.persistence.Table;
5098
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
24 import javax.persistence.SequenceGenerator;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
25
5091
e836b2bd683e Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents: 5090
diff changeset
26 import org.hibernate.Session;
e836b2bd683e Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents: 5090
diff changeset
27 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
28 import org.hibernate.annotations.Type;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
29
5829
18619c1e7c2a Repaired internal references.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 5828
diff changeset
30 import org.dive4elements.river.backend.SessionHolder;
5091
e836b2bd683e Add imports required for getLines method
Andre Heinecke <aheinecke@intevation.de>
parents: 5090
diff changeset
31
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
32 @Entity
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
33 @Table(name = "hws_lines")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
34 public class HWSLine implements Serializable {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
35
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
36 private Integer id;
5061
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 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
39 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
40 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
41 private River river;
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
42 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
43 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
44 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
45 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
46 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
47 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
48 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
49 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
50 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
51 private Geometry geom;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
52
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
53 @Id
5098
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
54 @SequenceGenerator(
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
55 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
56 sequenceName = "HWS_LINES_ID_SEQ",
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
57 allocationSize = 1)
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
58 @GeneratedValue(
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
59 strategy = GenerationType.SEQUENCE,
a2600507761e Add sequences to the new tables that use sequences
Andre Heinecke <aheinecke@intevation.de>
parents: 5091
diff changeset
60 generator = "SEQUENCE_HWS_LINES_ID_SEQ")
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
61 @Column(name = "id")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
62 public Integer getId() {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
63 return id;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
64 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
65
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
66 public void setId(Integer id) {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
67 this.id = id;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
68 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
69
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
70 @Column(name = "geom")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
71 @Type(type = "org.hibernatespatial.GeometryUserType")
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
72 public Geometry getGeom() {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
73 return geom;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
74 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
75
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 public void setGeom(Geometry geom) {
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
78 this.geom = geom;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
79 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
80
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
81 /**
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
82 * Get ogrFid.
5061
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 * @return ogrFid as Integer.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
85 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
86 @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
87 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
88 return ogrFid;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
89 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
90
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
91 /**
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
92 * Set ogrFid.
5061
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 * @param ogrFid the value to set.
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 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
97 this.ogrFid = ogrFid;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
98 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
99
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 /**
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
102 * Get official.
5061
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 * @return official as Integer.
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 @Column(name = "official")
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
107 public Integer getofficial() {
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
108 return official;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
109 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
110
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
111 /**
5183
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
112 * Set official.
5061
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 * @param official the value to set.
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 public void setofficial(Integer official) {
0a83a796f7cf Fix typo offical -> official in HWS
Andre Heinecke <aheinecke@intevation.de>
parents: 5098
diff changeset
117 this.official = official;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
118 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
119
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
120 /**
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
121 * Get shoreSide.
5061
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 * @return shoreSide as Integer.
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
124 */
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
125 @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
126 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
127 return shoreSide;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
128 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
129
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
130 /**
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
131 * Set shoreSide.
5061
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 * @param shoreSide the value to set.
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 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
136 this.shoreSide = shoreSide;
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
137 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
138
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 * Get name.
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 * @return name as String.
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 @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
145 public String getName() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
146 return name;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
147 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
148
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 * Set name.
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 * @param name the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
153 */
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
154 public void setName(String name) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
155 this.name = name;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
156 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
157
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 * Get path.
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 * @return path as String.
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 @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
164 public String getPath() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
165 return path;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
166 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
167
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 * Set path.
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 * @param path the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
172 */
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
173 public void setPath(String path) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
174 this.path = path;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
175 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
176
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 * Get agency.
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 * @return agency as String.
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 @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
183 public String getAgency() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
184 return agency;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
185 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
186
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 * Set agency.
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 * @param agency the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
191 */
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
192 public void setAgency(String agency) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
193 this.agency = agency;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
194 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
195
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 * Get range.
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 * @return range as String.
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 @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
202 public String getRange() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
203 return range;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
204 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
205
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 * Set range.
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 * @param range the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
210 */
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
211 public void setRange(String range) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
212 this.range = range;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
213 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
214
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 * Get source.
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 * @return source as String.
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 @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
221 public String getSource() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
222 return source;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
223 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
224
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 * Set source.
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 * @param source the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
229 */
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
230 public void setSource(String source) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
231 this.source = source;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
232 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
233
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 * Get status_date.
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 * @return status_date as String.
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 @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
240 public String getStatusDate() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
241 return status_date;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
242 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
243
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 * Set status_date.
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 * @param status_date the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
248 */
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
249 public void setStatusDate(String status_date) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
250 this.status_date = status_date;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
251 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
252
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 * Get description.
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 * @return description as String.
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 @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
259 public String getDescription() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
260 return description;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
261 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
262
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 * Set description.
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 * @param description the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
267 */
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
268 public void setDescription(String description) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
269 this.description = description;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
270 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
271
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 * Get kind.
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 * @return kind as HWSKind.
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 @OneToOne
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
278 @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
279 public HWSKind getKind() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
280 return kind;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
281 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
282
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 * Set kind.
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 * @param kind the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
287 */
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
288 public void setKind(HWSKind kind) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
289 this.kind = kind;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
290 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
291
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 * Get fedState.
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 * @return fedState as 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 @OneToOne
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
298 @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
299 public FedState getFedState() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
300 return fedState;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
301 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
302
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 * Set fedState.
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 * @param fedState the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
307 */
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
308 public void setFedState(FedState fedState) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
309 this.fedState = fedState;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
310 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
311
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 * Get river.
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 * @return river as 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 @OneToOne
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
318 @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
319 public River getRiver() {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
320 return river;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
321 }
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
322
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 * Set river.
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 * @param river the value to set.
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
327 */
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
328 public void setRiver(River river) {
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
329 this.river = river;
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
330 }
5090
2878b816e945 Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
331
2878b816e945 Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
332 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
333 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
334
2878b816e945 Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
335 Query query = session.createQuery(
2878b816e945 Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
336 "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
337 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
338 query.setParameter("name", name);
2878b816e945 Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
339
2878b816e945 Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
340 return query.list();
2878b816e945 Add getLines method to get a list of HWSLine elements
Andre Heinecke <aheinecke@intevation.de>
parents: 5081
diff changeset
341 }
5061
c9ba713a7750 Add HWSLine and HWSPoint to the model
Andre Heinecke <aheinecke@intevation.de>
parents:
diff changeset
342 }

http://dive4elements.wald.intevation.org