Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/ImportRiver.java @ 2817:8979f2294af9
Finished parsing MINFO specific sediment density.
flys-backend/trunk@4234 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 13 Apr 2012 11:45:29 +0000 |
parents | 3febaed762b8 |
children | 0a536eb5d668 |
comparison
equal
deleted
inserted
replaced
2816:70b4a31a3306 | 2817:8979f2294af9 |
---|---|
814 | 814 |
815 public void storeSedimentDensity() { | 815 public void storeSedimentDensity() { |
816 if (!Config.INSTANCE.skipSedimentDensity()) { | 816 if (!Config.INSTANCE.skipSedimentDensity()) { |
817 log.info("store sediment density"); | 817 log.info("store sediment density"); |
818 | 818 |
819 // TODO | 819 River river = getPeer(); |
820 | |
821 for (ImportSedimentDensity density: sedimentDensities) { | |
822 String desc = density.getDescription(); | |
823 | |
824 log.debug("name: " + desc); | |
825 | |
826 try { | |
827 density.storeDependencies(river); | |
828 } | |
829 catch (SQLException sqle) { | |
830 log.error("File '" + desc + "' is broken!"); | |
831 } | |
832 catch (ConstraintViolationException cve) { | |
833 log.error("File '" + desc + "' is broken!"); | |
834 } | |
835 } | |
820 } | 836 } |
821 } | 837 } |
822 | 838 |
823 public void storeAnnotations() { | 839 public void storeAnnotations() { |
824 if (!Config.INSTANCE.skipAnnotations()) { | 840 if (!Config.INSTANCE.skipAnnotations()) { |