Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/sq/SQStaticState.java @ 7261:a56fe3bc6700
Refactoring: Let RiverAccess.getRiver return an River.
Renamed getRiver in getRiverName. Update Callers.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 08 Oct 2013 14:50:58 +0200 |
parents | a9bd4a23a852 |
children | 9f5059f4f01a |
comparison
equal
deleted
inserted
replaced
7260:0b32f8980fed | 7261:a56fe3bc6700 |
---|---|
70 // If the next line fails a traceback is the best debug output anyhow | 70 // If the next line fails a traceback is the best debug output anyhow |
71 sqRelations = StaticSQFactory.getDistinctRelation(static_id); | 71 sqRelations = StaticSQFactory.getDistinctRelation(static_id); |
72 log.debug("Got a distinct relation" + sqRelations); | 72 log.debug("Got a distinct relation" + sqRelations); |
73 } else { | 73 } else { |
74 StaticSQRelationAccess access = new StaticSQRelationAccess(artifact); | 74 StaticSQRelationAccess access = new StaticSQRelationAccess(artifact); |
75 String river = access.getRiver(); | 75 String river = access.getRiverName(); |
76 String measurementStation = access.getMeasurementStation(); | 76 String measurementStation = access.getMeasurementStation(); |
77 | 77 |
78 int ms = -1; | 78 int ms = -1; |
79 try { | 79 try { |
80 ms = Integer.parseInt(measurementStation); | 80 ms = Integer.parseInt(measurementStation); |