Mercurial > dive4elements > river
view flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/HistoricalDischargeAccess.java @ 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 | 5ff3b2f5fb1c |
children | b3aa91e45010 |
line wrap: on
line source
package de.intevation.flys.artifacts.access; import java.util.Date; import de.intevation.flys.artifacts.FLYSArtifact; import de.intevation.flys.artifacts.model.Timerange; public class HistoricalDischargeAccess extends RiverAccess { public static final String DATA_EVALUATION_TIME = "year_range"; private Timerange evaluationTimerange; public HistoricalDischargeAccess(FLYSArtifact artifact) { super(artifact); } public Timerange getEvaluationTimerange() { if (evaluationTimerange == null) { long[] startend = getLongArray(DATA_EVALUATION_TIME); if (startend != null && startend.length > 1) { Date start = new Date(startend[0]); Date end = new Date(startend[1]); evaluationTimerange = new Timerange(start, end); } } return evaluationTimerange; } }