changeset 4518:2eabb5aa0bb6

Added logger and fixed data field checkup.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 14 Nov 2012 17:10:24 +0100
parents a5e4fae31089
children 3e1810e72199
files flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadResult.java
diffstat 1 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadResult.java	Wed Nov 14 17:06:51 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadResult.java	Wed Nov 14 17:10:24 2012 +0100
@@ -5,9 +5,13 @@
 import java.io.Serializable;
 import java.util.Set;
 
+import org.apache.log4j.Logger;
+
 public class SedimentLoadResult
 implements Serializable
 {
+    private static final Logger logger = Logger
+        .getLogger(SedimentLoadResult.class);
     protected int startYear;
     protected int endYear;
     protected SedimentLoad load;
@@ -154,30 +158,30 @@
     }
 
     public boolean hasCoarseData() {
-        return getCoarseData().length > 0;
+        return getCoarseData()[0].length > 0;
     }
 
     public boolean hasFineMiddleData() {
-        return getFineMiddleData().length > 0;
+        return getFineMiddleData()[0].length > 0;
     }
 
     public boolean hasSandData() {
-        return getSandData().length > 0;
+        return getSandData()[0].length > 0;
     }
 
     public boolean hasSuspSandData() {
-        return getSuspSandData().length > 0;
+        return getSuspSandData()[0].length > 0;
     }
 
     public boolean hasSuspSandBedData() {
-        return getSuspSandBedData().length > 0;
+        return getSuspSandBedData()[0].length > 0;
     }
 
     public boolean hasSuspSedimentData() {
-        return getSuspSedimentData().length > 0;
+        return getSuspSedimentData()[0].length > 0;
     }
 
     public boolean hasTotalData() {
-        return getTotalData().length > 0;
+        return getTotalData()[0].length > 0;
     }
 }

http://dive4elements.wald.intevation.org