Mercurial > dive4elements > river
diff flys-backend/src/main/java/de/intevation/flys/importer/ImportSQRelation.java @ 3328:a41f279a66e2
Added parser and import classes to import MINFO sq relations.
flys-backend/trunk@4646 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 13 Jun 2012 06:22:04 +0000 |
parents | |
children | cc8fc6b29649 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-backend/src/main/java/de/intevation/flys/importer/ImportSQRelation.java Wed Jun 13 06:22:04 2012 +0000 @@ -0,0 +1,62 @@ +package de.intevation.flys.importer; + +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.List; + +import org.apache.log4j.Logger; + +import org.hibernate.exception.ConstraintViolationException; + +import de.intevation.flys.model.River; +import de.intevation.flys.model.SQRelation; + + +public class ImportSQRelation { + + private static Logger log = Logger.getLogger(ImportSQRelation.class); + + + private ImportTimeInterval timeInterval; + + private List<ImportSQRelationValue> values; + + private SQRelation peer; + + + public ImportSQRelation() { + this.values = new ArrayList<ImportSQRelationValue>(); + } + + + public void storeDependencies(River river) + throws SQLException, ConstraintViolationException + { + log.info("store dependencies"); + log.warn("TODO: IMPLEMENT 'storeDependencies()'"); + } + + + public SQRelation getPeer() { + log.debug("getPeer()"); + + if (peer == null) { + // TODO + } + + return peer; + } + + + public void setTimeInterval(ImportTimeInterval timeInterval) { + this.timeInterval = timeInterval; + } + + + public void addValue(ImportSQRelationValue value) { + if (value != null) { + this.values.add(value); + } + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :