comparison flys-aft/src/main/java/de/intevation/aft/DischargeTable.java @ 4110:06891562e633

Extracted and documented the error messages of the process. flys-aft/trunk@4054 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 16 Feb 2012 11:26:56 +0000
parents 309d4ca09816
children 9c78264109ad
comparison
equal deleted inserted replaced
4109:8ba11e13ae8a 4110:06891562e633
101 while (rs.next()) { 101 while (rs.next()) {
102 int id = rs.getInt("id"); 102 int id = rs.getInt("id");
103 double w = rs.getDouble("w"); 103 double w = rs.getDouble("w");
104 double q = rs.getDouble("q"); 104 double q = rs.getDouble("q");
105 if (!values.add(new WQ(id, w, q))) { 105 if (!values.add(new WQ(id, w, q))) {
106 log.warn("Value duplication w="+w+" q="+q+". -> ignore."); 106 log.warn("FLYS/AFT: Value duplication w="+w+" q="+q+". -> ignore.");
107 } 107 }
108 } 108 }
109 rs.close(); 109 rs.close();
110 } 110 }
111 111
227 int dtId = rs.getInt("ABFLUSSTAFEL_NR"); 227 int dtId = rs.getInt("ABFLUSSTAFEL_NR");
228 Date from = rs.getDate("GUELTIG_VON"); 228 Date from = rs.getDate("GUELTIG_VON");
229 Date to = rs.getDate("GUELTIG_BIS"); 229 Date to = rs.getDate("GUELTIG_BIS");
230 230
231 if (from != null && to != null && from.compareTo(to) > 0) { 231 if (from != null && to != null && from.compareTo(to) > 0) {
232 log.warn("AFT: ABFLUSSTAFEL_NR = " 232 log.warn("AFT: ABFLUSSTAFEL_NR = "
233 + dtId + ": " + from + " > " + to + ". -> swap"); 233 + dtId + ": " + from + " > " + to + ". -> swap");
234 Date temp = from; 234 Date temp = from;
235 from = to; 235 from = to;
236 to = temp; 236 to = temp;
237 } 237 }

http://dive4elements.wald.intevation.org