Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java @ 2827:85b25e74594f
Added temp classes used during the import process of flow velocity data.
flys-backend/trunk@4244 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 17 Apr 2012 08:50:15 +0000 |
parents | c3f8cf0cdf69 |
children | ac13e466a55e |
comparison
equal
deleted
inserted
replaced
2826:c3f8cf0cdf69 | 2827:85b25e74594f |
---|---|
110 | 110 |
111 protected List<ImportSedimentDensity> sedimentDensities; | 111 protected List<ImportSedimentDensity> sedimentDensities; |
112 | 112 |
113 protected List<ImportMorphWidth> morphologicalWidths; | 113 protected List<ImportMorphWidth> morphologicalWidths; |
114 | 114 |
115 protected List<ImportFlowVelocityModel> flowVelocityModels; | |
116 | |
115 protected ImportWst wst; | 117 protected ImportWst wst; |
116 | 118 |
117 protected ImportUnit wstUnit; | 119 protected ImportUnit wstUnit; |
118 | 120 |
119 protected AnnotationClassifier annotationClassifier; | 121 protected AnnotationClassifier annotationClassifier; |
128 officialLines = new ArrayList<ImportWst>(); | 130 officialLines = new ArrayList<ImportWst>(); |
129 floodWater = new ArrayList<ImportWst>(); | 131 floodWater = new ArrayList<ImportWst>(); |
130 floodProtection = new ArrayList<ImportWst>(); | 132 floodProtection = new ArrayList<ImportWst>(); |
131 sedimentDensities = new ArrayList<ImportSedimentDensity>(); | 133 sedimentDensities = new ArrayList<ImportSedimentDensity>(); |
132 morphologicalWidths = new ArrayList<ImportMorphWidth>(); | 134 morphologicalWidths = new ArrayList<ImportMorphWidth>(); |
135 flowVelocityModels = new ArrayList<ImportFlowVelocityModel>(); | |
133 } | 136 } |
134 | 137 |
135 public ImportRiver( | 138 public ImportRiver( |
136 String name, | 139 String name, |
137 File wstFile, | 140 File wstFile, |
942 | 945 |
943 public void storeFlowVelocity() { | 946 public void storeFlowVelocity() { |
944 if (!Config.INSTANCE.skipFlowVelocity()) { | 947 if (!Config.INSTANCE.skipFlowVelocity()) { |
945 log.info("store flow velocity"); | 948 log.info("store flow velocity"); |
946 | 949 |
947 // TODO | 950 River river = getPeer(); |
951 | |
952 for (ImportFlowVelocityModel flowVelocityModel: flowVelocityModels){ | |
953 try { | |
954 flowVelocityModel.storeDependencies(river); | |
955 } | |
956 catch (SQLException sqle) { | |
957 log.error("Error while storing flow velocity model.", sqle); | |
958 } | |
959 catch (ConstraintViolationException cve) { | |
960 log.error("Error while storing flow velocity model.", cve); | |
961 } | |
962 } | |
948 } | 963 } |
949 } | 964 } |
950 | 965 |
951 public void storeAnnotations() { | 966 public void storeAnnotations() { |
952 if (!Config.INSTANCE.skipAnnotations()) { | 967 if (!Config.INSTANCE.skipAnnotations()) { |