changeset 4186:eba517419832

Change reference_gauge paremeter to Long Change the reference_gauge paremeter of the GaugeDischargeCurveArtifact from Double to Long. It doesn't change the behaviour but the reference is a long value in the database too.
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 19 Oct 2012 13:15:17 +0200
parents 79878efbdf07
children 21f4e4b79121
files flys-artifacts/doc/conf/artifacts/gaugedischargecurve.xml flys-artifacts/src/main/java/de/intevation/flys/artifacts/GaugeDischargeCurveArtifact.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/doc/conf/artifacts/gaugedischargecurve.xml	Fri Oct 19 09:30:37 2012 +0200
+++ b/flys-artifacts/doc/conf/artifacts/gaugedischargecurve.xml	Fri Oct 19 13:15:17 2012 +0200
@@ -3,7 +3,7 @@
     <states>
          <state id="state.gaugedischargecurve.static" description="state.gaugedischargecurve.static" state="de.intevation.flys.artifacts.states.StaticState">
             <data name="river" type="String" />
-            <data name="reference_gauge" type="Double" />
+            <data name="reference_gauge" type="Long" />
             <data name="gauge_name" type="String" />
             <outputmodes>
                 <outputmode name="discharge_curve" description="output.discharge_curve" type="chart">
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/GaugeDischargeCurveArtifact.java	Fri Oct 19 09:30:37 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/GaugeDischargeCurveArtifact.java	Fri Oct 19 13:15:17 2012 +0200
@@ -74,7 +74,7 @@
                     Resources.getMsg(callmeta,
                         "facet.gauge_discharge_curve.reference_gauge",
                         "Gauge official number"),
-                    "Double", gaugeref));
+                    "Long", gaugeref));
 
         Gauge gauge = FLYSUtils.getReferenceGauge(this);
         String gaugename = "";

http://dive4elements.wald.intevation.org