comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportSQRelationValue.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
comparison
equal deleted inserted replaced
3327:bf8d9a4f4cd4 3328:a41f279a66e2
1 package de.intevation.flys.importer;
2
3 import java.sql.SQLException;
4
5 import org.apache.log4j.Logger;
6
7 import org.hibernate.exception.ConstraintViolationException;
8
9 import de.intevation.flys.model.SQRelation;
10 import de.intevation.flys.model.SQRelationValue;
11
12
13 public class ImportSQRelationValue {
14
15 private static Logger log = Logger.getLogger(ImportSQRelationValue.class);
16
17
18 private SQRelationValue peer;
19
20 private String parameter;
21 private String fraction;
22 private String function;
23
24 private double km;
25 private double a;
26 private double b;
27
28
29 public ImportSQRelationValue(
30 String parameter,
31 String fraction,
32 String function,
33 double km,
34 double a,
35 double b
36 ) {
37 this.parameter = parameter;
38 this.fraction = fraction;
39 this.function = function;
40 this.km = km;
41 this.a = a;
42 this.b = b;
43 }
44
45
46 public void storeDependencies(SQRelation owner)
47 throws SQLException, ConstraintViolationException
48 {
49 log.info("store dependencies");
50 log.warn("TODO: IMPLEMENT 'storeDependencies()'");
51 }
52
53
54 public SQRelationValue getPeer() {
55 log.debug("getPeer()");
56
57 if (peer == null) {
58 // TODO
59 }
60
61 return peer;
62 }
63 }
64 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org