Mercurial > dive4elements > river
comparison backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/DepthEvolutionSeriesImport.java @ 9032:1f63e9d3b0ec
New columns for bed_height, tkh and depth_evolution, a few syntactic corrections for Oracle
author | mschaefer |
---|---|
date | Fri, 27 Apr 2018 17:35:12 +0200 |
parents | 50416a0df385 |
children | 4c5eeaff554c |
comparison
equal
deleted
inserted
replaced
9031:efd2de78d158 | 9032:1f63e9d3b0ec |
---|---|
14 | 14 |
15 import org.apache.log4j.Logger; | 15 import org.apache.log4j.Logger; |
16 import org.dive4elements.river.importer.common.AbstractSeriesImport; | 16 import org.dive4elements.river.importer.common.AbstractSeriesImport; |
17 import org.dive4elements.river.model.River; | 17 import org.dive4elements.river.model.River; |
18 import org.dive4elements.river.model.sinfo.DepthEvolution; | 18 import org.dive4elements.river.model.sinfo.DepthEvolution; |
19 import org.dive4elements.river.model.sinfo.DepthEvolution.Group; | |
19 import org.dive4elements.river.model.sinfo.DepthEvolutionValue; | 20 import org.dive4elements.river.model.sinfo.DepthEvolutionValue; |
20 import org.hibernate.SQLQuery; | 21 import org.hibernate.SQLQuery; |
21 import org.hibernate.Session; | 22 import org.hibernate.Session; |
22 | 23 |
23 /** | 24 /** |
29 public class DepthEvolutionSeriesImport extends AbstractSeriesImport<DepthEvolution, DepthEvolutionValue, DepthEvolutionKmLineImport> { | 30 public class DepthEvolutionSeriesImport extends AbstractSeriesImport<DepthEvolution, DepthEvolutionValue, DepthEvolutionKmLineImport> { |
30 | 31 |
31 /***** FIELDS *****/ | 32 /***** FIELDS *****/ |
32 | 33 |
33 private static Logger log = Logger.getLogger(DepthEvolutionSeriesImport.class); | 34 private static Logger log = Logger.getLogger(DepthEvolutionSeriesImport.class); |
35 | |
36 private Group group; | |
34 | 37 |
35 private Integer start_year; | 38 private Integer start_year; |
36 | 39 |
37 private Integer reference_year; | 40 private Integer reference_year; |
38 | 41 |
51 super(filename); | 54 super(filename); |
52 } | 55 } |
53 | 56 |
54 | 57 |
55 /***** METHODS *****/ | 58 /***** METHODS *****/ |
59 | |
60 public void setGroup(final Group group) { | |
61 this.group = group; | |
62 } | |
56 | 63 |
57 public void setStart_year(final Integer start_year) { | 64 public void setStart_year(final Integer start_year) { |
58 this.start_year = start_year; | 65 this.start_year = start_year; |
59 } | 66 } |
60 | 67 |
98 | 105 |
99 | 106 |
100 @Override | 107 @Override |
101 public DepthEvolution createSeriesItem(final River river) { | 108 public DepthEvolution createSeriesItem(final River river) { |
102 return new DepthEvolution(river, this.filename, this.kmrange_info, this.comment, this.start_year, this.reference_year, this.curr_sounding, | 109 return new DepthEvolution(river, this.filename, this.kmrange_info, this.comment, this.start_year, this.reference_year, this.curr_sounding, |
103 this.old_sounding, this.curr_glw, this.old_glw); | 110 this.old_sounding, this.curr_glw, this.old_glw, this.group); |
104 } | 111 } |
105 } | 112 } |