diff flys-aft/src/main/java/de/intevation/aft/Rivers.java @ 4094:b20b710aa86f

Bubble up modifications up to main(). flys-aft/trunk@3605 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 05 Jan 2012 18:58:49 +0000
parents 44dc38ca8492
children a310aceb2e51
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/aft/Rivers.java	Thu Jan 05 17:46:18 2012 +0000
+++ b/flys-aft/src/main/java/de/intevation/aft/Rivers.java	Thu Jan 05 18:58:49 2012 +0000
@@ -20,7 +20,7 @@
     public Rivers() {
     }
 
-    public void sync(SyncContext context) throws SQLException {
+    public boolean sync(SyncContext context) throws SQLException {
 
         log.info("sync: rivers");
 
@@ -57,9 +57,13 @@
 
         aftRs.close();
 
+        boolean modified = false;
+
         for (River river: commonRivers) {
-            river.sync(context);
+            modified |= river.sync(context);
         }
+
+        return modified;
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org