Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsFactory.java @ 8569:26c7aa469bfc
Readd StaticWQKmsCacheKey and use it again.
This class was removed under the assumption that it only
wrapped the Cache Key but the WQKmsfactory also uses this.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 26 Feb 2015 15:52:04 +0100 |
parents | 532da345d4a7 |
children | 5e38e2924c07 |
comparison
equal
deleted
inserted
replaced
8568:078b07a94023 | 8569:26c7aa469bfc |
---|---|
87 private WKmsFactory() { | 87 private WKmsFactory() { |
88 } | 88 } |
89 | 89 |
90 public static WKms getWKms(int column, int wst_id, double from, double to) { | 90 public static WKms getWKms(int column, int wst_id, double from, double to) { |
91 log.debug("WKmsFactory.getWKms"); | 91 log.debug("WKmsFactory.getWKms"); |
92 Cache cache = CacheFactory.getCache("wst-wq-value-table-static"); | 92 Cache cache = CacheFactory.getCache(StaticWQKmsCacheKey.CACHE_NAME); |
93 | 93 |
94 String cacheKey = Integer.toString(column) + ":" + Integer.toString(wst_id); | 94 String cacheKey = Integer.toString(column) + ":" + Integer.toString(wst_id); |
95 | 95 |
96 if (cache != null) { | 96 if (cache != null) { |
97 if (!Double.isNaN(from) && ! Double.isNaN(to)) { | 97 if (!Double.isNaN(from) && ! Double.isNaN(to)) { |