comparison 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
comparison
equal deleted inserted replaced
4093:7bddd4601707 4094:b20b710aa86f
18 private static Logger log = Logger.getLogger(Rivers.class); 18 private static Logger log = Logger.getLogger(Rivers.class);
19 19
20 public Rivers() { 20 public Rivers() {
21 } 21 }
22 22
23 public void sync(SyncContext context) throws SQLException { 23 public boolean sync(SyncContext context) throws SQLException {
24 24
25 log.info("sync: rivers"); 25 log.info("sync: rivers");
26 26
27 ConnectedStatements flysStatements = context.getFlysStatements(); 27 ConnectedStatements flysStatements = context.getFlysStatements();
28 ConnectedStatements aftStatements = context.getAftStatements(); 28 ConnectedStatements aftStatements = context.getAftStatements();
55 } 55 }
56 } 56 }
57 57
58 aftRs.close(); 58 aftRs.close();
59 59
60 boolean modified = false;
61
60 for (River river: commonRivers) { 62 for (River river: commonRivers) {
61 river.sync(context); 63 modified |= river.sync(context);
62 } 64 }
65
66 return modified;
63 } 67 }
64 } 68 }
65 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 69 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org