Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/FlowVelocityMeasurementFactory.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | e4606eae8ea5 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
22 | 22 |
23 | 23 |
24 public class FlowVelocityMeasurementFactory | 24 public class FlowVelocityMeasurementFactory |
25 { | 25 { |
26 /** Private log to use here. */ | 26 /** Private log to use here. */ |
27 private static Logger log = Logger.getLogger(FlowVelocityMeasurementFactory.class); | 27 private static Logger log = Logger.getLogger( |
28 FlowVelocityMeasurementFactory.class); | |
28 | 29 |
29 /** Query to get description and start year, given name and a km range. */ | 30 /** Query to get description and start year, given name and a km range. */ |
30 public static final String SQL_SELECT_ONE = | 31 public static final String SQL_SELECT_ONE = |
31 "SELECT station, datetime, w, q, v, description " + | 32 "SELECT station, datetime, w, q, v, description " + |
32 " FROM flow_velocity_measure_values" + | 33 " FROM flow_velocity_measure_values" + |
38 | 39 |
39 | 40 |
40 public static FlowVelocityMeasurementValue.FastFlowVelocityMeasurementValue | 41 public static FlowVelocityMeasurementValue.FastFlowVelocityMeasurementValue |
41 getFlowVelocityMeasurement(int id) | 42 getFlowVelocityMeasurement(int id) |
42 { | 43 { |
43 log.debug("FlowVelocityMeasurementFactory.getFlowVelocityMeasurementValue"); | |
44 Session session = SessionHolder.HOLDER.get(); | 44 Session session = SessionHolder.HOLDER.get(); |
45 SQLQuery sqlQuery = null; | 45 SQLQuery sqlQuery = null; |
46 sqlQuery = session.createSQLQuery(SQL_SELECT_ONE) | 46 sqlQuery = session.createSQLQuery(SQL_SELECT_ONE) |
47 .addScalar("station", StandardBasicTypes.DOUBLE) | 47 .addScalar("station", StandardBasicTypes.DOUBLE) |
48 .addScalar("datetime", StandardBasicTypes.DATE) | 48 .addScalar("datetime", StandardBasicTypes.DATE) |