Revision 5f0f426e
Added by Andreas Müller about 10 years ago
cdm-eflora/src/main/java/eu/etaxonomy/cdm/io/eflora/centralAfrica/checklist/CentralAfricaChecklistSynonymImport.java | ||
---|---|---|
39 | 39 |
/** |
40 | 40 |
* @author a.mueller |
41 | 41 |
* @created 20.02.2010 |
42 |
* @version 1.0 |
|
43 | 42 |
*/ |
44 | 43 |
@Component |
45 | 44 |
public class CentralAfricaChecklistSynonymImport extends CentralAfricaChecklistImportBase<TaxonBase> implements IMappingImport<TaxonBase, CentralAfricaChecklistImportState>{ |
... | ... | |
48 | 47 |
private NonViralNameParserImpl parser = NonViralNameParserImpl.NewInstance(); |
49 | 48 |
|
50 | 49 |
|
51 |
private DbImportMapping mapping; |
|
50 |
private DbImportMapping<?, ?> mapping;
|
|
52 | 51 |
|
53 | 52 |
//second path is not used anymore, there is now an ErmsTaxonRelationImport class instead |
54 |
private boolean isSecondPath = false; |
|
53 |
// private boolean isSecondPath = false;
|
|
55 | 54 |
|
56 |
private int modCount = 10000; |
|
55 |
// private int modCount = 10000;
|
|
57 | 56 |
private static final String pluralString = "synonyms"; |
58 | 57 |
private static final String dbTableName = "synonyms"; |
59 |
private static final Class cdmTargetClass = TaxonBase.class; |
|
58 |
private static final Class<?> cdmTargetClass = TaxonBase.class;
|
|
60 | 59 |
private static final String strOrderBy = ""; |
61 | 60 |
|
62 | 61 |
public CentralAfricaChecklistSynonymImport(){ |
... | ... | |
101 | 100 |
return strRecordQuery; |
102 | 101 |
} |
103 | 102 |
|
104 |
|
|
105 |
/* (non-Javadoc) |
|
106 |
* @see eu.etaxonomy.cdm.io.berlinModel.in.IPartitionedIO#getRelatedObjectsForPartition(java.sql.ResultSet) |
|
107 |
*/ |
|
108 |
public Map<Object, Map<String, ? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs) { |
|
103 |
@Override |
|
104 |
public Map<Object, Map<String, ? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs, CentralAfricaChecklistImportState state) { |
|
109 | 105 |
String nameSpace; |
110 |
Class cdmClass; |
|
106 |
Class<?> cdmClass;
|
|
111 | 107 |
Set<String> idSet; |
112 | 108 |
Map<Object, Map<String, ? extends CdmBase>> result = new HashMap<Object, Map<String, ? extends CdmBase>>(); |
113 | 109 |
|
Also available in: Unified diff
Change signature for IPartionedIO.setRelatedObjects in cdm-eflora