import org.apache.log4j.Logger;\r
\r
import eu.etaxonomy.cdm.database.ICdmDataSource;\r
+import eu.etaxonomy.cdm.io.berlinModel.BerlinModelTransformer;\r
+import eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelTaxonImport.PublishMarkerChooser;\r
+import eu.etaxonomy.cdm.io.berlinModel.in.validation.BerlinModelGeneralImportValidator;\r
import eu.etaxonomy.cdm.io.common.IImportConfigurator;\r
import eu.etaxonomy.cdm.io.common.ImportConfiguratorBase;\r
import eu.etaxonomy.cdm.io.common.ImportStateBase;\r
import eu.etaxonomy.cdm.io.common.Source;\r
+import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;\r
+import eu.etaxonomy.cdm.io.erms.ErmsTransformer;\r
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;\r
-import eu.etaxonomy.cdm.model.reference.IDatabase;\r
import eu.etaxonomy.cdm.model.reference.ReferenceBase;\r
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;\r
import eu.etaxonomy.cdm.model.taxon.Synonym;\r
-import eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelTaxonImport.PublishMarkerChooser;\r
\r
/**\r
* @author a.mueller\r
\r
private PublishMarkerChooser taxonPublishMarker = PublishMarkerChooser.ALL;\r
\r
- /* Max number of taxa to be saved with one service call */\r
- private int limitSave = 1000;\r
+ //TODO\r
+ private static IInputTransformer defaultTransformer = null;\r
+ \r
+ \r
+ /* Max number of records to be saved with one service call */\r
+ private int recordsPerTransaction = 1000;\r
\r
private Method namerelationshipTypeMethod;\r
private Method uuidForDefTermMethod;\r
\r
protected void makeIoClassList(){\r
ioClassList = new Class[]{\r
- BerlinModelGeneralImport.class,\r
- BerlinModelUserImport.class,\r
- BerlinModelAuthorImport.class,\r
- BerlinModelAuthorTeamImport.class\r
+ BerlinModelGeneralImportValidator.class\r
+ , BerlinModelUserImport.class\r
+ , BerlinModelAuthorImport.class\r
+ , BerlinModelAuthorTeamImport.class\r
+ , BerlinModelRefDetailImport.class\r
, BerlinModelReferenceImport.class\r
, BerlinModelTaxonNameImport.class\r
, BerlinModelTaxonNameRelationImport.class\r
* @param destination\r
*/\r
private BerlinModelImportConfigurator(Source berlinModelSource, ICdmDataSource destination) {\r
- super();\r
+ super(defaultTransformer);\r
setNomenclaturalCode(NomenclaturalCode.ICBN); //default for Berlin Model\r
setSource(berlinModelSource);\r
setDestination(destination);\r
/**\r
* @return the limitSave\r
*/\r
- public int getLimitSave() {\r
- return limitSave;\r
+ public int getRecordsPerTransaction() {\r
+ return recordsPerTransaction;\r
}\r
\r
/**\r
* @param limitSave the limitSave to set\r
*/\r
- public void setLimitSave(int limitSave) {\r
- this.limitSave = limitSave;\r
+ public void setRecordsPerTransaction(int recordsPerTransaction) {\r
+ this.recordsPerTransaction = recordsPerTransaction;\r
}\r
\r
}\r