Revision 3581c717
Added by Andreas Müller over 3 years ago
cdm-eflora/src/main/java/eu/etaxonomy/cdm/io/eflora/centralAfrica/checklist/CentralAfricaChecklistSynonymImport.java | ||
---|---|---|
29 | 29 |
import eu.etaxonomy.cdm.model.name.IBotanicalName; |
30 | 30 |
import eu.etaxonomy.cdm.model.name.Rank; |
31 | 31 |
import eu.etaxonomy.cdm.model.name.TaxonNameFactory; |
32 |
import eu.etaxonomy.cdm.model.reference.ISourceable; |
|
32 | 33 |
import eu.etaxonomy.cdm.model.reference.Reference; |
33 | 34 |
import eu.etaxonomy.cdm.model.taxon.Synonym; |
34 | 35 |
import eu.etaxonomy.cdm.model.taxon.SynonymType; |
... | ... | |
96 | 97 |
@Override |
97 | 98 |
public Map<Object, Map<String, ? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs, CentralAfricaChecklistImportState state) { |
98 | 99 |
String nameSpace; |
99 |
Class<?> cdmClass; |
|
100 |
Class<? extends ISourceable> cdmClass;
|
|
100 | 101 |
Set<String> idSet; |
101 | 102 |
Map<Object, Map<String, ? extends CdmBase>> result = new HashMap<Object, Map<String, ? extends CdmBase>>(); |
102 | 103 |
|
... | ... | |
110 | 111 |
nameSpace = TAXON_NAMESPACE; |
111 | 112 |
cdmClass = Taxon.class; |
112 | 113 |
idSet = taxonIdSet; |
113 |
Map<String, Taxon> taxonMap = (Map<String, Taxon>)getCommonService().getSourcedObjectsByIdInSource(cdmClass, idSet, nameSpace); |
|
114 |
Map<String, Taxon> taxonMap = (Map<String, Taxon>)getCommonService().getSourcedObjectsByIdInSourceC(cdmClass, idSet, nameSpace);
|
|
114 | 115 |
result.put(nameSpace, taxonMap); |
115 | 116 |
|
116 | 117 |
} catch (SQLException e) { |
Also available in: Unified diff
fix some compile errors in eflora