Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsFactory.java @ 8550:532da345d4a7
(issue1754) Fix wst static cache name.
You should not base your implementation on a broken one. (see next commit)
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 16 Feb 2015 15:28:51 +0100 |
parents | 04367906f158 |
children | 26c7aa469bfc |
comparison
equal
deleted
inserted
replaced
8549:1cff4c98df76 | 8550:532da345d4a7 |
---|---|
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("waterlevels-static"); | 92 Cache cache = CacheFactory.getCache("wst-wq-value-table-static"); |
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)) { |