Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/FlowDepthKmLineImport.java @ 9656:31549fdfaf4f
Importer (s/u-info) extensions: flow-depth: uniform formatting of from-to series names,
warning instead of cancelling in case of missing column values,
detecting, logging and skipping columns with wrong unit,
better counting of inserted/updated values for each column
author | mschaefer |
---|---|
date | Mon, 23 Mar 2020 15:21:39 +0100 |
parents | 50416a0df385 |
children |
comparison
equal
deleted
inserted
replaced
9655:1f57381b3bb5 | 9656:31549fdfaf4f |
---|---|
44 | 44 |
45 /***** METHODS *****/ | 45 /***** METHODS *****/ |
46 | 46 |
47 @Override | 47 @Override |
48 protected FlowDepthValue queryValueItem(final Session session, final FlowDepthColumn parent) { | 48 protected FlowDepthValue queryValueItem(final Session session, final FlowDepthColumn parent) { |
49 final Query query = session.createQuery("FROM FlowDepthValue WHERE (FlowDepthColumn=:parent)" | 49 final Query query = session.createQuery("FROM FlowDepthValue WHERE (flowDepthColumn=:parent)" |
50 + " AND (station BETWEEN (:station-0.0001) AND (:station+0.0001))"); | 50 + " AND (station BETWEEN (:station-0.0001) AND (:station+0.0001))"); |
51 query.setParameter("parent", parent); | 51 query.setParameter("parent", parent); |
52 query.setParameter("station", this.station); | 52 query.setParameter("station", this.station); |
53 final List rows = query.list(); | 53 final List rows = query.list(); |
54 if (!rows.isEmpty()) | 54 if (!rows.isEmpty()) |