Revision 9900f429
Added by Andreas Müller about 10 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/indexFungorum/IndexFungorumDistributionImport.java | ||
---|---|---|
146 | 146 |
return taxon; |
147 | 147 |
} |
148 | 148 |
|
149 |
/* (non-Javadoc) |
|
150 |
* @see eu.etaxonomy.cdm.io.berlinModel.in.IPartitionedIO#getRelatedObjectsForPartition(java.sql.ResultSet) |
|
151 |
*/ |
|
152 |
public Map<Object, Map<String, ? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs) { |
|
149 |
|
|
150 |
@Override |
|
151 |
public Map<Object, Map<String, ? extends CdmBase>> getRelatedObjectsForPartition(ResultSet rs, IndexFungorumImportState state) { |
|
153 | 152 |
String nameSpace; |
154 |
Class cdmClass; |
|
153 |
Class<?> cdmClass;
|
|
155 | 154 |
Set<String> idSet; |
156 | 155 |
Map<Object, Map<String, ? extends CdmBase>> result = new HashMap<Object, Map<String, ? extends CdmBase>>(); |
157 | 156 |
|
... | ... | |
181 | 180 |
} |
182 | 181 |
|
183 | 182 |
|
184 |
|
|
185 |
/* (non-Javadoc) |
|
186 |
* @see eu.etaxonomy.cdm.io.common.CdmIoBase#doCheck(eu.etaxonomy.cdm.io.common.IImportConfigurator) |
|
187 |
*/ |
|
188 | 183 |
@Override |
189 | 184 |
protected boolean doCheck(IndexFungorumImportState state){ |
190 | 185 |
return true; |
191 | 186 |
} |
192 | 187 |
|
193 |
/* (non-Javadoc) |
|
194 |
* @see eu.etaxonomy.cdm.io.common.CdmIoBase#isIgnore(eu.etaxonomy.cdm.io.common.IImportConfigurator) |
|
195 |
*/ |
|
188 |
@Override |
|
196 | 189 |
protected boolean isIgnore(IndexFungorumImportState state){ |
197 | 190 |
return ! state.getConfig().isDoOccurrence(); |
198 | 191 |
} |
Also available in: Unified diff
adapt pesi import to new IPartionedIO signature