diff flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java @ 201:3169b559ca3c

Build models for wsts, wst columns and q ranges and store them in the backend. flys-backend/trunk@1549 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 23 Mar 2011 15:22:32 +0000
parents c0dcc2357106
children 3a99d0295006
line wrap: on
line diff
--- a/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java	Wed Mar 23 10:46:58 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java	Wed Mar 23 15:22:32 2011 +0000
@@ -30,6 +30,8 @@
 
     protected List<ImportAnnotation> annotations;
 
+    protected ImportWst wst;
+
     protected River peer;
 
     public ImportRiver() {
@@ -65,6 +67,14 @@
         this.bbInfoFile = bbInfoFile;
     }
 
+    public ImportWst getWst() {
+        return wst;
+    }
+
+    public void setWst(ImportWst wst) {
+        this.wst = wst;
+    }
+
     public void parseDependencies() throws IOException {
         parseGauges();
         parseAnnotations();
@@ -74,6 +84,7 @@
     public void parseWst() throws IOException {
         WstParser wstParser = new WstParser();
         wstParser.parse(wstFile);
+        wst = wstParser.getWst();
     }
 
     public void parseGauges() throws IOException {
@@ -106,6 +117,12 @@
     public void storeDependencies() {
         storeAnnotations();
         storeGauges();
+        storeWst();
+    }
+
+    public void storeWst() {
+        River river = getPeer();
+        wst.storeDependencies(river);
     }
 
     public void storeAnnotations() {

http://dive4elements.wald.intevation.org