teichmann@5863: /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde teichmann@5863: * Software engineering by Intevation GmbH teichmann@5863: * teichmann@5863: * This file is Free Software under the GNU AGPL (>=v3) teichmann@5863: * and comes with ABSOLUTELY NO WARRANTY! Check out the teichmann@5863: * 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: { rrenkert@5501: /** The logger that is used in this state. */ rrenkert@5501: private static final Logger logger = 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: } rrenkert@5501: if (logger.isDebugEnabled()) { rrenkert@5501: logger.debug("measurement station: '" + measurementStation + "'"); rrenkert@5501: } rrenkert@5501: return measurementStation; rrenkert@5501: } rrenkert@5501: }