\r
import org.apache.log4j.Logger;\r
\r
-import eu.etaxonomy.cdm.api.application.CdmApplicationController;\r
-import eu.etaxonomy.cdm.app.berlinModelImport.BerlinModelSources;\r
-import eu.etaxonomy.cdm.database.ICdmDataSource;\r
+import eu.etaxonomy.cdm.app.common.CdmDestinations;\r
import eu.etaxonomy.cdm.database.DbSchemaValidation;\r
+import eu.etaxonomy.cdm.database.ICdmDataSource;\r
import eu.etaxonomy.cdm.io.berlinModel.BerlinModelImport;\r
import eu.etaxonomy.cdm.io.berlinModel.BerlinModelImportConfigurator;\r
-import eu.etaxonomy.cdm.io.source.Source;\r
-import eu.etaxonomy.cdm.io.berlinModel.BerlinModelImportConfigurator.*;\r
+import eu.etaxonomy.cdm.io.common.IImportConfigurator.CHECK;\r
+import eu.etaxonomy.cdm.io.common.IImportConfigurator.DO_REFERENCES;\r
+import eu.etaxonomy.cdm.io.common.Source;\r
\r
\r
/**\r
//database validation status (create, update, validate ...)\r
static DbSchemaValidation hbm2dll = DbSchemaValidation.CREATE;\r
static final Source berlinModelSource = BerlinModelSources.EDIT_CICHORIEAE();\r
- static final ICdmDataSource cdmDestination = CdmDestinations.cdm_edit_cichorieae();\r
+ static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_andreasM();\r
\r
//check - import\r
static final CHECK check = CHECK.CHECK_AND_IMPORT;\r
\r
+// //authors\r
+// static final boolean doAuthors = true;\r
+// //references\r
+// static final DO_REFERENCES doReferences = DO_REFERENCES.ALL;\r
+// //names\r
+// static final boolean doTaxonNames = true;\r
+// static final boolean doRelNames = true;\r
+// static final boolean doNameStatus = true;\r
+// static final boolean doTypes = true;\r
+// static final boolean doNameFacts = true;\r
+// \r
+// //taxa\r
+// static final boolean doTaxa = true;\r
+// static final boolean doRelTaxa = true;\r
+// static final boolean doFacts = true;\r
+// static final boolean doOccurences = false;\r
+ \r
//authors\r
- static final boolean doAuthors = true;\r
+ static final boolean doAuthors = false;\r
//references\r
- static final DO_REFERENCES doReferences = DO_REFERENCES.ALL;\r
+ static final DO_REFERENCES doReferences = DO_REFERENCES.NONE;\r
//names\r
- static final boolean doTaxonNames = true;\r
- static final boolean doRelNames = true;\r
- static final boolean doNameStatus = true;\r
- static final boolean doTypes = true;\r
- static final boolean doNameFacts = true;\r
+ static final boolean doTaxonNames = false;\r
+ static final boolean doRelNames = false;\r
+ static final boolean doNameStatus = false;\r
+ static final boolean doTypes = false;\r
+ static final boolean doNameFacts = false;\r
\r
//taxa\r
- static final boolean doTaxa = true;\r
- static final boolean doRelTaxa = true;\r
+ static final boolean doTaxa = false;\r
+ static final boolean doRelTaxa = false;\r
static final boolean doFacts = true;\r
static final boolean doOccurences = false;\r
\r
+ \r
+ \r
/**\r
* @param args\r
*/\r
public static void main(String[] args) {\r
System.out.println("Start import from BerlinModel("+ berlinModelSource.getDatabase() + ") ...");\r
- CdmApplicationController cdmApp;\r
\r
//make BerlinModel Source\r
Source source = berlinModelSource;\r
bmImportConfigurator.setDoOccurrence(doOccurences);\r
bmImportConfigurator.setDbSchemaValidation(hbm2dll);\r
\r
+ bmImportConfigurator.setCheck(check);\r
+ \r
// invoke import\r
BerlinModelImport bmImport = new BerlinModelImport();\r
bmImport.invoke(bmImportConfigurator);\r