comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/MorphologicWidthFactory.java @ 8856:5e38e2924c07 3.2.x

Fix code style.
author Tom Gottfried <tom@intevation.de>
date Thu, 18 Jan 2018 20:12:01 +0100
parents e4606eae8ea5
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
24 24
25 25
26 public class MorphologicWidthFactory 26 public class MorphologicWidthFactory
27 { 27 {
28 /** Private log to use here. */ 28 /** Private log to use here. */
29 private static Logger log = Logger.getLogger(MorphologicWidthFactory.class); 29 private static Logger log = Logger.getLogger(
30 MorphologicWidthFactory.class);
30 31
31 public static final String SQL_SELECT = 32 public static final String SQL_SELECT =
32 "SELECT mwv.station AS station, mwv.width AS width " + 33 "SELECT mwv.station AS station, mwv.width AS width " +
33 " FROM morphologic_width mw" + 34 " FROM morphologic_width mw" +
34 " JOIN morphologic_width_values mwv on mwv.morphologic_width_id = mw.id" + 35 " JOIN morphologic_width_values mwv " +
36 " ON mwv.morphologic_width_id = mw.id" +
35 " WHERE mw.id = :width_id"; 37 " WHERE mw.id = :width_id";
36 38
37 private MorphologicWidthFactory() { 39 private MorphologicWidthFactory() {
38 } 40 }
39 41
41 /** 43 /**
42 * Get WKms for given column and wst_id, caring about the cache. 44 * Get WKms for given column and wst_id, caring about the cache.
43 */ 45 */
44 public static MorphologicWidth getWidth(int width_id) { 46 public static MorphologicWidth getWidth(int width_id) {
45 log.debug("MorphologicWidthFactory.getWidth"); 47 log.debug("MorphologicWidthFactory.getWidth");
46 Cache cache = CacheFactory.getCache(StaticMorphoWidthCacheKey.CACHE_NAME); 48 Cache cache = CacheFactory.getCache(
49 StaticMorphoWidthCacheKey.CACHE_NAME);
47 50
48 StaticMorphoWidthCacheKey cacheKey; 51 StaticMorphoWidthCacheKey cacheKey;
49 52
50 if (cache != null) { 53 if (cache != null) {
51 cacheKey = new StaticMorphoWidthCacheKey(width_id); 54 cacheKey = new StaticMorphoWidthCacheKey(width_id);

http://dive4elements.wald.intevation.org