comparison backend/src/main/java/org/dive4elements/river/importer/ImportWst.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 5358a5497b2b
children 392bbcd8a88b 0a5239a1e46e
comparison
equal deleted inserted replaced
8855:d7c005e12af0 8856:5e38e2924c07
63 63
64 public ImportWst(String description) { 64 public ImportWst(String description) {
65 this(description, COLUMN_FACTORY); 65 this(description, COLUMN_FACTORY);
66 } 66 }
67 67
68 public ImportWst(String description, ImportWstColumnFactory columnFactory) { 68 public ImportWst(
69 String description,
70 ImportWstColumnFactory columnFactory
71 ) {
69 this(columnFactory); 72 this(columnFactory);
70 this.description = description; 73 this.description = description;
71 } 74 }
72 75
73 public String getDescription() { 76 public String getDescription() {
148 } 151 }
149 152
150 /** Get corresponding mapped wst (from database). */ 153 /** Get corresponding mapped wst (from database). */
151 public Wst getPeer(River river) { 154 public Wst getPeer(River river) {
152 if (peer == null) { 155 if (peer == null) {
153 Session session = ImporterSession.getInstance().getDatabaseSession(); 156 Session session = ImporterSession.getInstance()
157 .getDatabaseSession();
154 Query query = session.createQuery( 158 Query query = session.createQuery(
155 "from Wst where " + 159 "from Wst where " +
156 "river=:river and description=:description and kind=:kind"); 160 "river=:river and description=:description and kind=:kind");
157 query.setParameter("river", river); 161 query.setParameter("river", river);
158 query.setParameter("description", description); 162 query.setParameter("description", description);

http://dive4elements.wald.intevation.org