diff artifacts/src/main/java/org/dive4elements/river/artifacts/access/SQRelationAccess.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 3ccbc278f2e6
children d8d0caaf60a2
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/access/SQRelationAccess.java	Tue Oct 08 12:07:18 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/access/SQRelationAccess.java	Tue Oct 08 14:50:58 2013 +0200
@@ -100,7 +100,7 @@
             return measurementStation;
         }
         List<MeasurementStation> candidates = MeasurementStation.getStationsAtKM(
-                getRiver(), getLocation());
+                getRiverName(), getLocation());
         if (candidates != null) {
             // Just take the first one as we only use the name
             // and that "should" be unique at the location

http://dive4elements.wald.intevation.org