private static final Logger logger = Logger.getLogger(FaunaEuropaeaActivator.class);\r
\r
static final Source faunaEuropaeaSource = FaunaEuropaeaSources.faunEu();\r
- static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_jaxb();\r
+ static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_anahit();\r
\r
// static final CHECK check = CHECK.CHECK_AND_IMPORT;\r
static final CHECK check = CHECK.IMPORT_WITHOUT_CHECK;\r
// static DbSchemaValidation dbSchemaValidation = DbSchemaValidation.CREATE;\r
-// static DbSchemaValidation dbSchemaValidation = DbSchemaValidation.VALIDATE;\r
static DbSchemaValidation dbSchemaValidation = DbSchemaValidation.UPDATE;\r
+// static DbSchemaValidation dbSchemaValidation = DbSchemaValidation.VALIDATE;\r
static final NomenclaturalCode nomenclaturalCode = NomenclaturalCode.ICZN;\r
\r
// ****************** ALL *****************************************\r
\r
static final int limitSave = 1000;\r
\r
- static final boolean doAuthors = true;\r
- static final boolean doTaxa = true;\r
- static final DO_REFERENCES doReferences = DO_REFERENCES.ALL;\r
- static final boolean doDistributions = true;\r
- \r
- static final boolean doBasionyms = true;\r
- static final boolean doTaxonomicallyIncluded = true;\r
- static final boolean doMisappliedNames = true;\r
- static final boolean doHeterotypicSynonyms = true;\r
+// static final boolean doAuthors = true;\r
+// static final boolean doTaxa = true;\r
+// static final boolean doBasionyms = true;\r
+// static final boolean doTaxonomicallyIncluded = true;\r
+// static final boolean doMisappliedNames = true;\r
+// static final boolean doHeterotypicSynonyms = true;\r
+// static final DO_REFERENCES doReferences = DO_REFERENCES.ALL;\r
+// static final boolean doDistributions = true;\r
+// static final boolean makeFeatureTree = true;\r
\r
// ************************ NONE **************************************** //\r
\r
-// static final boolean doAuthors = false;\r
-// static final DO_REFERENCES doReferences = DO_REFERENCES.NONE;\r
-// static final boolean doTaxa = false;\r
-// static final boolean doSynonyms = false;\r
-// static final boolean doRelTaxa = false;\r
-// static final boolean doDistributions = false;\r
+ static final boolean doAuthors = false;\r
+ static final boolean doTaxa = false;\r
+ static final boolean doBasionyms = false;\r
+ static final boolean doTaxonomicallyIncluded = false;\r
+ static final boolean doMisappliedNames = true;\r
+ static final boolean doHeterotypicSynonyms = false;\r
+ static final DO_REFERENCES doReferences = DO_REFERENCES.NONE;\r
+ static final boolean doDistributions = false;\r
+ static final boolean makeFeatureTree = false;\r
\r
\r
/**\r
\r
//make feature tree\r
\r
- FeatureTree featureTree = FeatureTree.NewInstance(UUID.fromString("ff59b9ad-1fb8-4aa4-a8ba-79d62123d0fb"));\r
- FeatureNode root = featureTree.getRoot();\r
- \r
- CdmApplicationController app = fauEuImport.getCdmAppController();\r
- Feature citationFeature = (Feature)app.getTermService().getTermByUuid(UUID.fromString("99b2842f-9aa7-42fa-bd5f-7285311e0101"));\r
- FeatureNode citationNode = FeatureNode.NewInstance(citationFeature);\r
- root.addChild(citationNode);\r
- Feature distributionFeature = (Feature)app.getTermService().getTermByUuid(UUID.fromString("9fc9d10c-ba50-49ee-b174-ce83fc3f80c6"));\r
- FeatureNode distributionNode = FeatureNode.NewInstance(distributionFeature);\r
- root.addChild(distributionNode);\r
- \r
- app.getDescriptionService().saveFeatureTree(featureTree);\r
+ if (makeFeatureTree == true) {\r
+ FeatureTree featureTree = FeatureTree.NewInstance(UUID.fromString("ff59b9ad-1fb8-4aa4-a8ba-79d62123d0fb"));\r
+ FeatureNode root = featureTree.getRoot();\r
+\r
+ CdmApplicationController app = fauEuImport.getCdmAppController();\r
+ Feature citationFeature = (Feature)app.getTermService().getTermByUuid(UUID.fromString("99b2842f-9aa7-42fa-bd5f-7285311e0101"));\r
+ FeatureNode citationNode = FeatureNode.NewInstance(citationFeature);\r
+ root.addChild(citationNode);\r
+ Feature distributionFeature = (Feature)app.getTermService().getTermByUuid(UUID.fromString("9fc9d10c-ba50-49ee-b174-ce83fc3f80c6"));\r
+ FeatureNode distributionNode = FeatureNode.NewInstance(distributionFeature);\r
+ root.addChild(distributionNode);\r
+\r
+ app.getDescriptionService().saveFeatureTree(featureTree);\r
+ }\r
\r
System.out.println("End import from Fauna Europaea ("+ faunaEuropaeaSource.getDatabase() + ")...");\r
}\r