Mercurial > dive4elements > river
changeset 2813:f121c0f456ab
Added new importer classes used during MINFO sediment density import.
flys-backend/trunk@4230 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 13 Apr 2012 09:45:20 +0000 |
parents | a36a5407acbf |
children | bfd6a7ef0ad5 |
files | flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/importer/ImportDepth.java flys-backend/src/main/java/de/intevation/flys/importer/ImportSedimentDensity.java flys-backend/src/main/java/de/intevation/flys/importer/ImportSedimentDensityValue.java |
diffstat | 4 files changed, 135 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-backend/ChangeLog Fri Apr 13 08:16:55 2012 +0000 +++ b/flys-backend/ChangeLog Fri Apr 13 09:45:20 2012 +0000 @@ -1,3 +1,10 @@ +2012-04-13 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/importer/ImportSedimentDensity.java, + src/main/java/de/intevation/flys/importer/ImportSedimentDensityValue.java, + src/main/java/de/intevation/flys/importer/ImportDepth.java: New importer + classes used during MINFO sediment density import. + 2012-04-13 Ingo Weinzierl <ingo@intevation.de> * doc/schema/oracle-minfo.sql,
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportDepth.java Fri Apr 13 09:45:20 2012 +0000 @@ -0,0 +1,41 @@ +package de.intevation.flys.importer; + +import java.math.BigDecimal; + +import org.apache.log4j.Logger; + +import de.intevation.flys.model.Depth; + + +public class ImportDepth { + + private static Logger log = Logger.getLogger(ImportDepth.class); + + + protected Depth peer; + + protected BigDecimal lower; + protected BigDecimal upper; + + protected ImportUnit unit; + + + public ImportDepth(BigDecimal lower, BigDecimal upper, ImportUnit unit) { + this.lower = lower; + this.upper = upper; + this.unit = unit; + } + + + public void storeDependencies() { + log.info("store dependencies"); + } + + + public Depth getPeer() { + log.info("get peer"); + + return null; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportSedimentDensity.java Fri Apr 13 09:45:20 2012 +0000 @@ -0,0 +1,50 @@ +package de.intevation.flys.importer; + +import java.util.ArrayList; +import java.util.List; + +import org.apache.log4j.Logger; + +import de.intevation.flys.model.River; +import de.intevation.flys.model.SedimentDensity; + + +public class ImportSedimentDensity { + + private static Logger log = Logger.getLogger(ImportSedimentDensity.class); + + + protected SedimentDensity peer; + + protected ImportDepth depth; + + protected List<ImportSedimentDensityValue> values; + + + public ImportSedimentDensity() { + values = new ArrayList<ImportSedimentDensityValue>(); + } + + + public void setDepth(ImportDepth depth) { + this.depth = depth; + } + + + public void addValue(ImportSedimentDensityValue value) { + values.add(value); + } + + + public void storeDependencies(River river) { + log.info("store dependencies"); + } + + + public SedimentDensity getPeer(River river) { + log.info("get peer"); + + return null; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportSedimentDensityValue.java Fri Apr 13 09:45:20 2012 +0000 @@ -0,0 +1,37 @@ +package de.intevation.flys.importer; + +import java.math.BigDecimal; + +import org.apache.log4j.Logger; + +import de.intevation.flys.model.SedimentDensity; +import de.intevation.flys.model.SedimentDensityValue; + + +public class ImportSedimentDensityValue { + + private static final Logger log = + Logger.getLogger(ImportSedimentDensityValue.class); + + + protected SedimentDensityValue peer; + + protected ImportRange range; + + protected BigDecimal density; + + protected String description; + + + public void storeDependencies(SedimentDensity sedimentDensity) { + log.info("store dependencies"); + } + + + public SedimentDensityValue getPeer(SedimentDensity sedimentDensity) { + log.info("get peer"); + + return null; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :