comparison etl/src/main/java/org/dive4elements/river/etl/aft/DischargeTable.java @ 5917:c73977be1795

ETL: Do not ignore open ended discharge tables.
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 07 May 2013 19:53:48 +0200
parents 8bd9b551456c
children 6f80d5f375fd
comparison
equal deleted inserted replaced
5916:d6bf8353e0fc 5917:c73977be1795
263 Date to = rs.getDate("GUELTIG_BIS"); 263 Date to = rs.getDate("GUELTIG_BIS");
264 264
265 if (from == null) { 265 if (from == null) {
266 log.warn("AFT: ABFLUSSTAFEL_NR = " 266 log.warn("AFT: ABFLUSSTAFEL_NR = "
267 + dtId + ": GUELTIG_VON = NULL -> ignored."); 267 + dtId + ": GUELTIG_VON = NULL -> ignored.");
268 }
269
270 if (to == null) {
271 log.warn("AFT: ABFLUSSTAFEL_NR = "
272 + dtId + ": GUELTIG_BIS = NULL -> ignored.");
273 }
274
275 if (from == null || to == null) {
276 continue; 268 continue;
277 } 269 }
278 270
279 if (from.compareTo(to) > 0) { 271 if (to != null && from.after(to)) {
280 log.warn("AFT: ABFLUSSTAFEL_NR = " 272 log.warn("AFT: ABFLUSSTAFEL_NR = "
281 + dtId + ": " + from + " > " + to + ". -> swap"); 273 + dtId + ": " + from + " > " + to + ". -> swap");
282 Date temp = from; 274 Date temp = from;
283 from = to; 275 from = to;
284 to = temp; 276 to = temp;

http://dive4elements.wald.intevation.org