comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportBedHeightEpoch.java @ 3957:3825aad9fb41

Documentation (d o c u m e n t a t i o n). flys-backend/trunk@5616 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 27 Sep 2012 12:53:09 +0000
parents 145b87bcb10a
children 4ee97d914501
comparison
equal deleted inserted replaced
3956:323063c0f7a0 3957:3825aad9fb41
14 import de.intevation.flys.model.Range; 14 import de.intevation.flys.model.Range;
15 import de.intevation.flys.model.River; 15 import de.intevation.flys.model.River;
16 import de.intevation.flys.model.TimeInterval; 16 import de.intevation.flys.model.TimeInterval;
17 17
18 18
19 /** Import Bed Height Data, 'epoch' type from csv file. */
19 public class ImportBedHeightEpoch implements ImportBedHeight { 20 public class ImportBedHeightEpoch implements ImportBedHeight {
20 21
22 /** Private logger. */
21 private static Logger log = Logger.getLogger(ImportBedHeightEpoch.class); 23 private static Logger log = Logger.getLogger(ImportBedHeightEpoch.class);
22 24
23 protected String evaluationBy; 25 protected String evaluationBy;
26
27 /** De facto the file name. */
24 protected String description; 28 protected String description;
25 29
26 protected ImportTimeInterval timeInterval; 30 protected ImportTimeInterval timeInterval;
27 protected ImportRange range; 31 protected ImportRange range;
28 protected ImportElevationModel curElevationModel; 32 protected ImportElevationModel curElevationModel;
67 71
68 public void setOldElevationModel(ImportElevationModel oldElevationModel) { 72 public void setOldElevationModel(ImportElevationModel oldElevationModel) {
69 this.oldElevationModel = oldElevationModel; 73 this.oldElevationModel = oldElevationModel;
70 } 74 }
71 75
76 /** Does nothing. */
72 public void setYear(int year) { 77 public void setYear(int year) {
73 // do nothing 78 // do nothing
74 } 79 }
75 80
81 /** Does nothing. */
76 public void setSoundingWidth(int soundingWidth) { 82 public void setSoundingWidth(int soundingWidth) {
77 // do nothing 83 // do nothing
78 } 84 }
79 85
86
87 /** Does nothing. */
80 public void setLocationSystem(ImportLocationSystem locationSystem) { 88 public void setLocationSystem(ImportLocationSystem locationSystem) {
81 // do nothing 89 // do nothing
82 } 90 }
83 91
92
93 /** Does nothing. */
84 public void setType(ImportBedHeightType type) { 94 public void setType(ImportBedHeightType type) {
85 // do nothing 95 // do nothing
86 } 96 }
87 97
88 @Override 98 @Override
115 125
116 Session session = ImporterSession.getInstance().getDatabaseSession(); 126 Session session = ImporterSession.getInstance().getDatabaseSession();
117 session.flush(); 127 session.flush();
118 } 128 }
119 129
130 /**
131 * Asserts all dependent entities (ElevationModel, TimeInterval, Range,
132 * BedHeighEpoch) are in db and returns bound (either newly created or
133 * freshly fetched) BedHeightEpoch.
134 */
120 @Override 135 @Override
121 public BedHeightEpoch getPeer(River river) { 136 public BedHeightEpoch getPeer(River river) {
122 if (peer == null) { 137 if (peer == null) {
123 ElevationModel theCurModel = null; 138 ElevationModel theCurModel = null;
124 if (curElevationModel != null) { 139 if (curElevationModel != null) {

http://dive4elements.wald.intevation.org