Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/TkhSeriesImport.java @ 9010:dcbdff96d1a8
Tkh import with day instead of year
author | mschaefer |
---|---|
date | Wed, 18 Apr 2018 07:42:06 +0200 |
parents | 50416a0df385 |
children | 1f63e9d3b0ec |
comparison
equal
deleted
inserted
replaced
9009:6fd0f20b58aa | 9010:dcbdff96d1a8 |
---|---|
8 * documentation coming with Dive4Elements River for details. | 8 * documentation coming with Dive4Elements River for details. |
9 */ | 9 */ |
10 | 10 |
11 package org.dive4elements.river.importer.sinfo.importitem; | 11 package org.dive4elements.river.importer.sinfo.importitem; |
12 | 12 |
13 import java.util.Date; | |
13 import java.util.List; | 14 import java.util.List; |
14 | 15 |
15 import org.apache.log4j.Logger; | 16 import org.apache.log4j.Logger; |
16 import org.dive4elements.river.importer.ImporterSession; | 17 import org.dive4elements.river.importer.ImporterSession; |
17 import org.dive4elements.river.importer.common.StoreMode; | 18 import org.dive4elements.river.importer.common.StoreMode; |
39 | 40 |
40 private String kmrange_info; | 41 private String kmrange_info; |
41 | 42 |
42 private String comment; | 43 private String comment; |
43 | 44 |
44 private int year; | 45 private Date day; |
45 | 46 |
46 private String sounding_info; | 47 private String sounding_info; |
47 | 48 |
48 private String evaluation_by; | 49 private String evaluation_by; |
49 | 50 |
79 | 80 |
80 public void setComment(final String comment) { | 81 public void setComment(final String comment) { |
81 this.comment = comment; | 82 this.comment = comment; |
82 } | 83 } |
83 | 84 |
84 public int getYear() { | 85 public Date getDay() { |
85 return this.year; | 86 return this.day; |
86 } | 87 } |
87 | 88 |
88 public void setYear(final int year) { | 89 public void setDay(final Date day) { |
89 this.year = year; | 90 this.day = day; |
90 } | 91 } |
91 | 92 |
92 public String getSounding_info() { | 93 public String getSounding_info() { |
93 return this.sounding_info; | 94 return this.sounding_info; |
94 } | 95 } |
138 query.setParameter("filename", this.filename.toLowerCase()); | 139 query.setParameter("filename", this.filename.toLowerCase()); |
139 return query.list(); | 140 return query.list(); |
140 } | 141 } |
141 | 142 |
142 private Tkh createSeriesItem(final River river) { | 143 private Tkh createSeriesItem(final River river) { |
143 return new Tkh(river, this.filename, this.kmrange_info, this.comment, this.year, this.sounding_info, this.evaluation_by); | 144 return new Tkh(river, this.filename, this.kmrange_info, this.comment, this.day, this.sounding_info, this.evaluation_by); |
144 } | 145 } |
145 } | 146 } |