Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadFactory.java @ 4434:60c728e557f4
Backed out changeset e8a4d2fd25cc
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 07 Nov 2012 12:28:50 +0100 |
parents | 41738deb2b43 |
children | a5e4fae31089 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadFactory.java Wed Nov 07 09:47:44 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/minfo/SedimentLoadFactory.java Wed Nov 07 12:28:50 2012 +0100 @@ -27,7 +27,7 @@ public static final String LOADS_CACHE_NAME = "sedimentloads"; public static final String LOAD_DATA_CACHE_NAME = "sedimentload-data"; - /** Query to get description and start year, given name and a km range. */ + /** Query to get km and ws for wst_id and column_pos. */ public static final String SQL_SELECT_SINGLES = "SELECT DISTINCT " + " sy.description AS description, " + @@ -40,7 +40,7 @@ " AND ti.stop_time IS NULL " + " AND syv.station BETWEEN :startKm AND :endKm"; - /** Query to get start time, stop time and description. */ + /** Query to get name for wst_id and column_pos. */ public static final String SQL_SELECT_EPOCHS = "SELECT DISTINCT " + " sy.description AS description, " + @@ -92,7 +92,9 @@ private SedimentLoadFactory() { } - + /** + * + */ public static SedimentLoad[] getLoads( String river, String type, @@ -276,7 +278,6 @@ List<Object []> results = sqlQuery.list(); SedimentLoad load = new SedimentLoad(); Object[] row = results.get(0); - // TODO Handle empty result. load = new SedimentLoad( (String) row[0], (Date) row[1], @@ -373,4 +374,3 @@ } } } -// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :