# HG changeset patch # User Sascha L. Teichmann # Date 1300701716 0 # Node ID c4fb5141ce114e331f6ea4f2a338832c0e34d770 # Parent d40da430d2fe6e770cc127a3b824ec7209057420 Propagate river into storing of gauges. flys-backend/trunk@1529 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r d40da430d2fe -r c4fb5141ce11 flys-backend/ChangeLog --- a/flys-backend/ChangeLog Mon Mar 21 09:52:26 2011 +0000 +++ b/flys-backend/ChangeLog Mon Mar 21 10:01:56 2011 +0000 @@ -1,4 +1,10 @@ -2011-03-17 Sascha L. Teichmann +2011-03-21 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/importer/ImportRiver.java, + src/main/java/de/intevation/flys/importer/ImportGauge.java: + Propagate river into storing of gauges. + +2011-03-21 Sascha L. Teichmann * src/main/java/de/intevation/flys/importer/Importer.java: Added code to store rivers not only annotations. diff -r d40da430d2fe -r c4fb5141ce11 flys-backend/src/main/java/de/intevation/flys/importer/ImportGauge.java --- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportGauge.java Mon Mar 21 09:52:26 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportGauge.java Mon Mar 21 10:01:56 2011 +0000 @@ -80,6 +80,10 @@ sfp.parse(this); } + public void storeDependencies(River river) { + // TODO: Implement me! + } + public Gauge getPeer(River river) { if (peer == null) { } diff -r d40da430d2fe -r c4fb5141ce11 flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java --- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java Mon Mar 21 09:52:26 2011 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java Mon Mar 21 10:01:56 2011 +0000 @@ -110,7 +110,10 @@ } public void storeGauges() { - // TODO: Implements me! + River river = getPeer(); + for (ImportGauge gauge: gauges) { + gauge.storeDependencies(river); + } } public River getPeer() {