teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5994: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5994: * documentation coming with Dive4Elements River for details. teichmann@5863: */ teichmann@5863: teichmann@5831: package org.dive4elements.river.artifacts.access; rrenkert@5501: rrenkert@5501: import org.apache.log4j.Logger; rrenkert@5501: teichmann@5867: import org.dive4elements.river.artifacts.D4EArtifact; rrenkert@5501: rrenkert@5501: rrenkert@5501: public class StaticSQRelationAccess rrenkert@5501: extends RiverAccess rrenkert@5501: { teichmann@8202: /** The log that is used in this state. */ teichmann@8202: private static final Logger log = rrenkert@5501: Logger.getLogger(StaticSQRelationAccess.class); rrenkert@5501: rrenkert@5501: private String measurementStation; rrenkert@5501: teichmann@5867: public StaticSQRelationAccess(D4EArtifact artifact) { rrenkert@5501: super(artifact); rrenkert@5501: } rrenkert@5501: rrenkert@5501: /** Get measurement station */ rrenkert@5501: public String getMeasurementStation() { rrenkert@5501: if (measurementStation == null) { rrenkert@5501: measurementStation = getString("station"); rrenkert@5501: } teichmann@8202: if (log.isDebugEnabled()) { teichmann@8202: log.debug("measurement station: '" + measurementStation + "'"); rrenkert@5501: } rrenkert@5501: return measurementStation; rrenkert@5501: } rrenkert@5501: }