comparison backend/src/main/java/org/dive4elements/river/importer/ImportOfficialLine.java @ 6347:75c483450c96

Backend: Store official lines from config if they are any.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 14 Jun 2013 18:25:12 +0200
parents bc28de00e423
children 5910ada51a9f
comparison
equal deleted inserted replaced
6346:b966c67a476d 6347:75c483450c96
30 public ImportOfficialLine(String name, ImportWstColumn wstColumn) { 30 public ImportOfficialLine(String name, ImportWstColumn wstColumn) {
31 this.name = name; 31 this.name = name;
32 this.wstColumn = wstColumn; 32 this.wstColumn = wstColumn;
33 } 33 }
34 34
35 public String getName() {
36 return name;
37 }
38
39 public void setName(String name) {
40 this.name = name;
41 }
42
35 public OfficialLine getPeer(River river) { 43 public OfficialLine getPeer(River river) {
36 if (peer == null) { 44 if (peer == null) {
37 // XXX: This is a bit odd. We do not have not enough infos here 45 // XXX: This is a bit odd. We do not have not enough infos here
38 // to create a new NamedMainValue. So we just look for existing ones. 46 // to create a new NamedMainValue. So we just look for existing ones.
39 Session session = ImporterSession.getInstance().getDatabaseSession(); 47 Session session = ImporterSession.getInstance().getDatabaseSession();

http://dive4elements.wald.intevation.org