comparison flys-aft/src/main/java/de/intevation/aft/DischargeTable.java @ 4736:b195fede1c3b

Remove trailing whitespace.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 02 Jan 2013 13:18:31 +0100
parents 79bb64f66c74
children f939e1e6cfa4
comparison
equal deleted inserted replaced
4735:94b39073f0f7 4736:b195fede1c3b
27 27
28 public DischargeTable() { 28 public DischargeTable() {
29 } 29 }
30 30
31 public DischargeTable( 31 public DischargeTable(
32 int gaugeId, 32 int gaugeId,
33 TimeInterval timeInterval, 33 TimeInterval timeInterval,
34 String description 34 String description
35 ) { 35 ) {
36 this.gaugeId = gaugeId; 36 this.gaugeId = gaugeId;
37 this.timeInterval = timeInterval; 37 this.timeInterval = timeInterval;
38 this.description = description; 38 this.description = description;
39 values = new TreeSet<WQ>(WQ.EPS_CMP); 39 values = new TreeSet<WQ>(WQ.EPS_CMP);
40 } 40 }
41 41
42 public DischargeTable( 42 public DischargeTable(
43 int id, 43 int id,
44 int gaugeId, 44 int gaugeId,
45 TimeInterval timeInterval, 45 TimeInterval timeInterval,
46 String description 46 String description
47 ) { 47 ) {
48 this(gaugeId, timeInterval, description); 48 this(gaugeId, timeInterval, description);
49 this.id = id; 49 this.id = id;
50 } 50 }
92 public void setValues(Set<WQ> values) { 92 public void setValues(Set<WQ> values) {
93 this.values = values; 93 this.values = values;
94 } 94 }
95 95
96 96
97 protected void loadValues(SymbolicStatement.Instance query) 97 protected void loadValues(SymbolicStatement.Instance query)
98 throws SQLException 98 throws SQLException
99 { 99 {
100 ResultSet rs = query.executeQuery(); 100 ResultSet rs = query.executeQuery();
101 while (rs.next()) { 101 while (rs.next()) {
102 int id = rs.getInt("id"); 102 int id = rs.getInt("id");
241 if (from == null || to == null) { 241 if (from == null || to == null) {
242 continue; 242 continue;
243 } 243 }
244 244
245 if (from.compareTo(to) > 0) { 245 if (from.compareTo(to) > 0) {
246 log.warn("AFT: ABFLUSSTAFEL_NR = " 246 log.warn("AFT: ABFLUSSTAFEL_NR = "
247 + dtId + ": " + from + " > " + to + ". -> swap"); 247 + dtId + ": " + from + " > " + to + ". -> swap");
248 Date temp = from; 248 Date temp = from;
249 from = to; 249 from = to;
250 to = temp; 250 to = temp;
251 } 251 }

http://dive4elements.wald.intevation.org