Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/StaticSQRelationAccess.java @ 5540:25c2505df28f
Merged
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Wed, 03 Apr 2013 16:00:21 +0200 |
parents | 9a14eac637ec |
children |
comparison
equal
deleted
inserted
replaced
5539:8d0af912351c | 5540:25c2505df28f |
---|---|
1 package de.intevation.flys.artifacts.access; | |
2 | |
3 import org.apache.log4j.Logger; | |
4 | |
5 import de.intevation.flys.artifacts.FLYSArtifact; | |
6 | |
7 | |
8 public class StaticSQRelationAccess | |
9 extends RiverAccess | |
10 { | |
11 /** The logger that is used in this state. */ | |
12 private static final Logger logger = | |
13 Logger.getLogger(StaticSQRelationAccess.class); | |
14 | |
15 private String measurementStation; | |
16 | |
17 public StaticSQRelationAccess(FLYSArtifact artifact) { | |
18 super(artifact); | |
19 } | |
20 | |
21 /** Get measurement station */ | |
22 public String getMeasurementStation() { | |
23 if (measurementStation == null) { | |
24 measurementStation = getString("station"); | |
25 } | |
26 if (logger.isDebugEnabled()) { | |
27 logger.debug("measurement station: '" + measurementStation + "'"); | |
28 } | |
29 return measurementStation; | |
30 } | |
31 } |