comparison 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
comparison
equal deleted inserted replaced
7260:0b32f8980fed 7261:a56fe3bc6700
98 public MeasurementStation getMeasurementStation() { 98 public MeasurementStation getMeasurementStation() {
99 if (measurementStation != null) { 99 if (measurementStation != null) {
100 return measurementStation; 100 return measurementStation;
101 } 101 }
102 List<MeasurementStation> candidates = MeasurementStation.getStationsAtKM( 102 List<MeasurementStation> candidates = MeasurementStation.getStationsAtKM(
103 getRiver(), getLocation()); 103 getRiverName(), getLocation());
104 if (candidates != null) { 104 if (candidates != null) {
105 // Just take the first one as we only use the name 105 // Just take the first one as we only use the name
106 // and that "should" be unique at the location 106 // and that "should" be unique at the location
107 measurementStation = candidates.get(0); 107 measurementStation = candidates.get(0);
108 } 108 }

http://dive4elements.wald.intevation.org