// FaunaEuropaeaAuthorImport.class,\r
// FaunaEuropaeaNameImport.class,\r
// FaunaEuropaeaRelShipImport.class,\r
- FaunaEuropaeaRelTaxonIncludeImport.class,\r
+ FaunaEuropaeaRelTaxonIncludeImport.class\r
// FaunaEuropaeaRefImport.class,\r
// FaunaEuropaeaDistributionImport.class\r
};\r
if (logger.isDebugEnabled()) {\r
logger.debug("Taxon created (" + taxonId + ")");\r
}\r
-\r
-// if (fauEuConfig.isDoBasionyms()) {\r
-// if (fauEuTaxon.isParenthesis() && (fauEuTaxon.getOriginalGenusId() != 0)\r
-// && (fauEuTaxon.getParentId() != fauEuTaxon.getOriginalGenusId())) {\r
-//\r
-// // create basionym\r
-// ZoologicalName basionym = ZoologicalName.NewInstance(rank);\r
-// basionym.setNameCache(localName);\r
-// basionym.setCombinationAuthorTeam(author);\r
-// basionym.setPublicationYear(year);\r
-// zooName.addBasionym(basionym, sourceReference, null, null);\r
-// zooName.setBasionymAuthorTeam(author);\r
-// if (logger.isDebugEnabled()) {\r
-// logger.debug("Basionym created (" + taxonId + ")");\r
-// }\r
-//\r
-// // create homotypic synonym\r
-// Synonym homotypicSynonym = Synonym.NewInstance(basionym, sourceReference);\r
-//// SynonymRelationship synRel = \r
-//// taxon.addSynonym(homotypicSynonym, SynonymRelationshipType.HOMOTYPIC_SYNONYM_OF(), \r
-//// sourceReference, null);\r
-//// homotypicSynonym.addRelationship(synRel);\r
-// taxon.addHomotypicSynonym(homotypicSynonym, sourceReference, null);\r
-// if (logger.isDebugEnabled()) {\r
-// logger.debug("Homotypic synonym created (" + taxonId + ")");\r
-// }\r
-//\r
-// }\r
-// }\r
- \r
}\r
taxonBase = taxon;\r
} else if ((status == T_STATUS_NOT_ACCEPTED) && (autId != A_AUCT)) { // synonym\r
if (parent == null) {\r
nameCacheStringBuilder.append(fauEuTaxon.getLocalName());\r
if (logger.isInfoEnabled()) {\r
- logger.info("Parent of (" + fauEuTaxon.getId() + " is null");\r
+ logger.info("Parent of (" + fauEuTaxon.getId() + ") is null");\r
}\r
return nameCacheStringBuilder.toString();\r
}\r
\r
protected boolean doInvoke(FaunaEuropaeaImportState state) { \r
\r
+ Map<String, MapWrapper<? extends CdmBase>> stores = state.getStores();\r
+ MapWrapper<TaxonBase> taxonStore = (MapWrapper<TaxonBase>)stores.get(ICdmIO.TAXON_STORE);\r
+ taxonStore.makeEmpty();\r
+ MapWrapper<TeamOrPersonBase> authorStore = (MapWrapper<TeamOrPersonBase>)stores.get(ICdmIO.TEAM_STORE);\r
+ authorStore.makeEmpty();\r
+ \r
boolean success = true;\r
\r
if(logger.isInfoEnabled()) { logger.info("Start making taxa..."); }\r
* This takes about 2min for a block of 5000.*/\r
private boolean createRelationships(FaunaEuropaeaImportState state) {\r
\r
- Map<String, MapWrapper<? extends CdmBase>> stores = state.getStores();\r
- MapWrapper<TaxonBase> taxonStore = (MapWrapper<TaxonBase>)stores.get(ICdmIO.TAXON_STORE);\r
- taxonStore.makeEmpty();\r
Map<UUID, UUID> childParentUuidMap = state.getChildParentMap();\r
ReferenceBase<?> sourceRef = state.getConfig().getSourceReference();\r
\r