Revision b313991f
Added by Andreas Müller over 4 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/ErmsLinkImport.java | ||
---|---|---|
34 | 34 |
* @since 20.02.2010 |
35 | 35 |
*/ |
36 | 36 |
@Component |
37 |
public class ErmsLinkImport extends ErmsImportBase<TaxonBase> { |
|
37 |
public class ErmsLinkImport |
|
38 |
extends ErmsImportBase<TaxonBase> { |
|
38 | 39 |
|
39 | 40 |
private static final long serialVersionUID = 1270264097223862441L; |
40 | 41 |
@SuppressWarnings("unused") |
... | ... | |
86 | 87 |
|
87 | 88 |
@Override |
88 | 89 |
public Map<Object, Map<String, ? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs, ErmsImportState state) { |
89 |
String nameSpace; |
|
90 |
Class<?> cdmClass;
|
|
90 |
|
|
91 |
String nameSpace;
|
|
91 | 92 |
Set<String> idSet; |
92 | 93 |
Map<Object, Map<String, ? extends CdmBase>> result = new HashMap<>(); |
93 | 94 |
|
... | ... | |
99 | 100 |
|
100 | 101 |
//taxon map |
101 | 102 |
nameSpace = TAXON_NAMESPACE; |
102 |
cdmClass = TaxonBase.class; |
|
103 | 103 |
idSet = taxonIdSet; |
104 |
Map<String, TaxonBase> taxonMap = (Map<String, TaxonBase>)getCommonService().getSourcedObjectsByIdInSource(cdmClass, idSet, nameSpace); |
|
104 |
@SuppressWarnings("rawtypes") |
|
105 |
Map<String, TaxonBase> taxonMap = getCommonService().getSourcedObjectsByIdInSourceC(TaxonBase.class, idSet, nameSpace); |
|
105 | 106 |
result.put(nameSpace, taxonMap); |
106 | 107 |
|
107 | 108 |
} catch (SQLException e) { |
Also available in: Unified diff
adapt some classes to new CommonService.getSourcedObjectSByIdInSource and cleanup