comparison flys-backend/src/main/java/de/intevation/flys/model/SQRelationValue.java @ 5429:13596605e81f

Added new columns to sq relation importer to import all values from csv and use measurement station instead of km.
author Raimund Renkert <rrenkert@intevation.de>
date Tue, 26 Mar 2013 14:02:58 +0100
parents cc8fc6b29649
children e667c127b600
comparison
equal deleted inserted replaced
5428:1cc82e328658 5429:13596605e81f
21 21
22 private SQRelation sqRelation; 22 private SQRelation sqRelation;
23 23
24 private String parameter; 24 private String parameter;
25 private String fraction; 25 private String fraction;
26 private String function; 26
27 27 private MeasurementStation measurementStation;
28 private double km; 28
29 private double a; 29 private Double a;
30 private double b; 30 private Double b;
31 private Double qMax;
32 private Double rSQ;
33 private Integer nTot;
34 private Integer nOutlier;
35 private Double cFerguson;
36 private Double cDuan;
31 37
32 38
33 protected SQRelationValue() { 39 protected SQRelationValue() {
34 } 40 }
35 41
36 42
37 public SQRelationValue( 43 public SQRelationValue(
38 SQRelation sqRelation, 44 SQRelation sqRelation,
39 String parameter, 45 String parameter,
40 String fraction, 46 String fraction,
41 String function, 47 MeasurementStation measurementStation,
42 double km, 48 Double a,
43 double a, 49 Double b,
44 double b 50 Double qMax,
51 Double rSQ,
52 Integer nTot,
53 Integer nOutlier,
54 Double cFerguson,
55 Double cDuan
45 ) { 56 ) {
46 this.sqRelation = sqRelation; 57 this.sqRelation = sqRelation;
47 this.parameter = parameter; 58 this.parameter = parameter;
48 this.fraction = fraction; 59 this.fraction = fraction;
49 this.function = function; 60 this.measurementStation = measurementStation;
50 this.km = km; 61 this.a = a;
51 this.a = a; 62 this.b = b;
52 this.b = b; 63 this.qMax = qMax;
64 this.rSQ = rSQ;
65 this.nTot = nTot;
66 this.nOutlier = nOutlier;
67 this.cFerguson = cFerguson;
68 this.cDuan = cDuan;
53 } 69 }
54 70
55 71
56 @Id 72 @Id
57 @SequenceGenerator( 73 @SequenceGenerator(
100 public void setFraction(String fraction) { 116 public void setFraction(String fraction) {
101 this.fraction = fraction; 117 this.fraction = fraction;
102 } 118 }
103 119
104 120
105 @Column(name = "function") 121 @OneToOne
106 public String getFunction() { 122 @JoinColumn(name = "measurement_station_id")
107 return function; 123 public MeasurementStation getMeasurementStation() {
108 } 124 return measurementStation;
109 125 }
110 public void setFunction(String function) { 126
111 this.function = function; 127 public void setMeasurementStation(MeasurementStation measurementStation) {
112 } 128 this.measurementStation = measurementStation;
113
114
115 @Column(name = "km")
116 public double getKm() {
117 return km;
118 }
119
120 public void setKm(double km) {
121 this.km = km;
122 } 129 }
123 130
124 131
125 @Column(name = "a") 132 @Column(name = "a")
126 public double getA() { 133 public Double getA() {
127 return a; 134 return a;
128 } 135 }
129 136
130 public void setA(double a) { 137 public void setA(Double a) {
131 this.a = a; 138 this.a = a;
132 } 139 }
133 140
134 141
135 @Column(name = "b") 142 @Column(name = "b")
136 public double getB() { 143 public Double getB() {
137 return b; 144 return b;
138 } 145 }
139 146
140 public void setB(double b) { 147 public void setB(Double b) {
141 this.b = b; 148 this.b = b;
149 }
150
151 @Column(name = "qmax")
152 public Double getQMax() {
153 return qMax;
154 }
155
156 public void setQMax(Double qMax) {
157 this.qMax = qMax;
158 }
159
160 @Column(name = "rsq")
161 public Double getRSQ() {
162 return rSQ;
163 }
164
165 public void setRSQ(Double rSQ) {
166 this.rSQ = rSQ;
167 }
168
169 @Column(name = "ntot")
170 public Integer getNTot () {
171 return nTot;
172 }
173
174 public void setNTot(Integer nTot) {
175 this.nTot = nTot;
176 }
177
178 @Column(name = "noutl")
179 public Integer getNOutlier() {
180 return nOutlier;
181 }
182
183 public void setNOutlier(Integer nOutlier) {
184 this.nOutlier = nOutlier;
185 }
186
187 @Column(name = "cferguson")
188 public Double getCFerguson() {
189 return cFerguson;
190 }
191
192 public void setCFerguson(Double cFerguson) {
193 this.cFerguson = cFerguson;
194 }
195
196 @Column(name = "cduan")
197 public Double getCDuan() {
198 return cDuan;
199 }
200
201 public void setCDuan(Double cDuan) {
202 this.cDuan = cDuan;
142 } 203 }
143 } 204 }
144 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 205 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org