Revision 51171c9d
Added by Andreas Müller about 13 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelOccurrenceSourceImport.java | ||
---|---|---|
22 | 22 |
import org.springframework.stereotype.Component; |
23 | 23 |
|
24 | 24 |
import eu.etaxonomy.cdm.common.CdmUtils; |
25 |
import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper; |
|
26 |
import eu.etaxonomy.cdm.io.berlinModel.BerlinModelTransformer; |
|
27 |
import eu.etaxonomy.cdm.io.berlinModel.in.validation.BerlinModelOccurrenceImportValidator; |
|
28 | 25 |
import eu.etaxonomy.cdm.io.berlinModel.in.validation.BerlinModelOccurrenceSourceImportValidator; |
29 |
import eu.etaxonomy.cdm.io.common.ICdmIO; |
|
30 | 26 |
import eu.etaxonomy.cdm.io.common.IOValidator; |
31 |
import eu.etaxonomy.cdm.io.common.MapWrapper; |
|
32 | 27 |
import eu.etaxonomy.cdm.io.common.ResultSetPartitioner; |
33 | 28 |
import eu.etaxonomy.cdm.io.common.Source; |
34 | 29 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
35 | 30 |
import eu.etaxonomy.cdm.model.common.DescriptionElementSource; |
36 | 31 |
import eu.etaxonomy.cdm.model.description.DescriptionElementBase; |
37 | 32 |
import eu.etaxonomy.cdm.model.description.Distribution; |
38 |
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTermBase; |
|
39 |
import eu.etaxonomy.cdm.model.description.TaxonDescription; |
|
40 |
import eu.etaxonomy.cdm.model.location.NamedArea; |
|
41 |
import eu.etaxonomy.cdm.model.location.TdwgArea; |
|
42 | 33 |
import eu.etaxonomy.cdm.model.name.NonViralName; |
43 | 34 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
44 | 35 |
import eu.etaxonomy.cdm.model.reference.Reference; |
45 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
|
46 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
|
47 |
import eu.etaxonomy.cdm.strategy.exceptions.UnknownCdmTypeException; |
|
48 |
import eu.etaxonomy.cdm.strategy.parser.NonViralNameParserImpl; |
|
49 | 36 |
|
50 | 37 |
|
51 | 38 |
/** |
... | ... | |
92 | 79 |
|
93 | 80 |
|
94 | 81 |
@Override |
95 |
protected boolean doInvoke(BerlinModelImportState state) {
|
|
82 |
protected void doInvoke(BerlinModelImportState state) {
|
|
96 | 83 |
try { |
97 | 84 |
sourceNumberRefIdMap = makeSourceNameReferenceIdMap(state); |
98 | 85 |
} catch (SQLException e) { |
99 | 86 |
e.printStackTrace(); |
100 | 87 |
throw new RuntimeException(e); |
101 | 88 |
} |
102 |
boolean result = super.doInvoke(state);
|
|
89 |
super.doInvoke(state); |
|
103 | 90 |
sourceNumberRefIdMap = null; |
104 |
return result;
|
|
91 |
return; |
|
105 | 92 |
} |
106 | 93 |
|
107 | 94 |
/* (non-Javadoc) |
Also available in: Unified diff
last updates for Taxon Excel Import and moving all success variables to state