Revision ffd6058e
Added by Andreas Müller over 4 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/indexFungorum/IndexFungorumDistributionImport.java | ||
---|---|---|
68 | 68 |
} |
69 | 69 |
|
70 | 70 |
@Override |
71 |
public boolean doPartition(ResultSetPartitioner partitioner, IndexFungorumImportState state) { |
|
71 |
public boolean doPartition(@SuppressWarnings("rawtypes") ResultSetPartitioner partitioner, |
|
72 |
IndexFungorumImportState state) { |
|
73 |
|
|
72 | 74 |
boolean success = true; |
73 | 75 |
// Reference sourceReference = state.getRelatedObject(NAMESPACE_REFERENCE, SOURCE_REFERENCE, Reference.class); |
74 | 76 |
ResultSet rs = partitioner.getResultSet(); |
... | ... | |
153 | 155 |
nameSpace = NAMESPACE_SPECIES; |
154 | 156 |
cdmClass = TaxonBase.class; |
155 | 157 |
idSet = taxonIdSet; |
156 |
Map<String, TaxonBase> taxonMap = (Map<String, TaxonBase>)getCommonService().getSourcedObjectsByIdInSource(cdmClass, idSet, nameSpace); |
|
158 |
@SuppressWarnings({ "unchecked", "rawtypes" }) |
|
159 |
Map<String, TaxonBase> taxonMap = (Map<String, TaxonBase>)getCommonService().getSourcedObjectsByIdInSource(cdmClass, idSet, nameSpace); |
|
157 | 160 |
result.put(nameSpace, taxonMap); |
158 | 161 |
|
159 | 162 |
//sourceReference |
Also available in: Unified diff
ref #2826 cleanup IF import