Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java @ 7304:615795d54831
cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 14 Oct 2013 09:51:27 +0200 |
parents | fe32a7f9655e |
children | 2e4ffd35cafa |
comparison
equal
deleted
inserted
replaced
7303:cb3238edf0ee | 7304:615795d54831 |
---|---|
56 | 56 |
57 /** Query to get description of single sediment_yield. */ | 57 /** Query to get description of single sediment_yield. */ |
58 public static final String SQL_SELECT_SINGLE_BY_ID = | 58 public static final String SQL_SELECT_SINGLE_BY_ID = |
59 "SELECT DISTINCT " + | 59 "SELECT DISTINCT " + |
60 " sy.description AS description " + | 60 " sy.description AS description " + |
61 " FROM sediment_yield sy " + | 61 " FROM sediment_yield sy " + |
62 " WHERE sy.id = :id "; | 62 " WHERE sy.id = :id "; |
63 | 63 |
64 /** Query to get description, name and time range for official | 64 /** Query to get description, name and time range for official |
65 * epoch-type sediment yields. */ | 65 * epoch-type sediment yields. */ |
66 public static final String SQL_SELECT_OFFEPOCHS = | 66 public static final String SQL_SELECT_OFFEPOCHS = |
291 sqlQuery.setDouble("id", id); | 291 sqlQuery.setDouble("id", id); |
292 | 292 |
293 List<Object> results = sqlQuery.list(); | 293 List<Object> results = sqlQuery.list(); |
294 | 294 |
295 return (String) results.get(0); | 295 return (String) results.get(0); |
296 | |
297 } | 296 } |
298 | 297 |
299 | 298 |
300 /** | 299 /** |
301 * Get sediment loads from db. | 300 * Get sediment loads from db. |