comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/SingleInputTransition.java @ 207:d87347142702

Store the Results of an Artifact not in the Artifact but in an ehcache instance. issue3 gnv-artifacts/trunk@263 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 23 Oct 2009 08:50:50 +0000
parents 7fb9441dd8af
children ee2d4134d0b3
comparison
equal deleted inserted replaced
206:01ac348ac4a4 207:d87347142702
45 * java.lang.String) 45 * java.lang.String)
46 */ 46 */
47 @Override 47 @Override
48 protected void purifyResult(Collection<Result> result, String uuid) { 48 protected void purifyResult(Collection<Result> result, String uuid) {
49 log.debug("SingleInputTransition.purifyResult"); 49 log.debug("SingleInputTransition.purifyResult");
50 if (this.descibeData == null) { 50 Collection<Object> describeData = this.getDescibeData(uuid);
51 this.descibeData = new ArrayList<Object>(); 51 if (describeData == null) {
52 describeData = new ArrayList<Object>();
52 } 53 }
53 String value = null; 54 String value = null;
54 if (result != null && result.size() == 1) { 55 if (result != null && result.size() == 1) {
55 Result tmpItem = result.iterator().next(); 56 Result tmpItem = result.iterator().next();
56 value = tmpItem.getObject("MAX").toString(); 57 value = tmpItem.getObject("MAX").toString();
57 } else { 58 } else {
58 value = ""; 59 value = "";
59 } 60 }
60 61
61 this.descibeData.add(new DefaultSingleValueDescribeData(this.dataName, 62 describeData.add(new DefaultSingleValueDescribeData(this.dataName,value));
62 value)); 63 this.setDescibeData(uuid, describeData);
63 } 64 }
64 65
65 } 66 }

http://dive4elements.wald.intevation.org