Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportHYKEntry.java @ 1221:979ff070e368
Store HYK data structures to database. Needs testing.
flys-backend/trunk@2347 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 17 Jul 2011 22:59:26 +0000 |
parents | 00e37d22a589 |
children | ca7d461a53f1 |
comparison
equal
deleted
inserted
replaced
1220:3c860d3e79d9 | 1221:979ff070e368 |
---|---|
49 formations.add(formation); | 49 formations.add(formation); |
50 formation.setFormationNum(numFormation); | 50 formation.setFormationNum(numFormation); |
51 formation.setEntry(this); | 51 formation.setEntry(this); |
52 } | 52 } |
53 | 53 |
54 public void storeDependencies() { | |
55 getPeer(); | |
56 for (ImportHYKFormation formation: formations) { | |
57 formation.storeDependencies(); | |
58 } | |
59 } | |
60 | |
54 public HYKEntry getPeer() { | 61 public HYKEntry getPeer() { |
55 if (peer == null) { | 62 if (peer == null) { |
56 HYK h = hyk.getPeer(); | 63 HYK h = hyk.getPeer(); |
57 Session session = ImporterSession.getInstance() | 64 Session session = ImporterSession.getInstance() |
58 .getDatabaseSession(); | 65 .getDatabaseSession(); |