comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontalcrosssection/HorizontalCrossSectionMeshOutputState.java @ 726:8d475151b2c1

Use a better key - hash served by getHash() from StateBase - to put chart data into cache (issue201). gnv-artifacts/trunk@759 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 10 Mar 2010 15:04:30 +0000
parents c8749d83d9b6
children 452fad121560
comparison
equal deleted inserted replaced
725:dde7f51dbe1e 726:8d475151b2c1
357 357
358 protected AttributedPoint2ds getResult(String uuid, CallContext callContext) 358 protected AttributedPoint2ds getResult(String uuid, CallContext callContext)
359 throws StateException 359 throws StateException
360 { 360 {
361 CacheFactory cf = CacheFactory.getInstance(); 361 CacheFactory cf = CacheFactory.getInstance();
362 String key = uuid + super.getID(); 362 String key = getHash();
363 363
364 if (cf.isInitialized()) { 364 if (cf.isInitialized()) {
365 net.sf.ehcache.Element value = cf.getCache().get(key); 365 net.sf.ehcache.Element value = cf.getCache().get(key);
366 if (value != null) { 366 if (value != null) {
367 return (AttributedPoint2ds)value.getObjectValue(); 367 return (AttributedPoint2ds)value.getObjectValue();

http://dive4elements.wald.intevation.org