changeset 191:c4fb5141ce11

Propagate river into storing of gauges. flys-backend/trunk@1529 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 21 Mar 2011 10:01:56 +0000
parents d40da430d2fe
children f1fce41347ea
files flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/importer/ImportGauge.java flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java
diffstat 3 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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	<sascha.teichmann@intevation.de>
+2011-03-21	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* 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	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/importer/Importer.java:
 	  Added code to store rivers not only annotations.
--- 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) {
         }
--- 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() {

http://dive4elements.wald.intevation.org