Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/access/SQRelationAccess.java @ 8412:17db08570637
SCHEMA CHANGE: removed superfluous columns station and river_id from measurement_stations and adapted other components accordingly.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 19:20:26 +0200 |
parents | d8d0caaf60a2 |
children | 8cc192731c7d 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8411:b8c6cb36607e | 8412:17db08570637 |
---|---|
97 | 97 |
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 |
103 getRiverName(), getLocation()); | 103 .getStationsAtKM(getRiver(), getLocation()); |
104 if (candidates != null && !candidates.isEmpty()) { | 104 if (candidates != null && !candidates.isEmpty()) { |
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 } |