Revision 892efc69
Added by Andreas Kohlbecker almost 14 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelImportConfigurator.java | ||
---|---|---|
19 | 19 |
import org.apache.log4j.Logger; |
20 | 20 |
|
21 | 21 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
22 |
import eu.etaxonomy.cdm.io.berlinModel.BerlinModelTransformer; |
|
23 | 22 |
import eu.etaxonomy.cdm.io.berlinModel.in.BerlinModelTaxonImport.PublishMarkerChooser; |
24 | 23 |
import eu.etaxonomy.cdm.io.berlinModel.in.validation.BerlinModelGeneralImportValidator; |
25 | 24 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator; |
... | ... | |
27 | 26 |
import eu.etaxonomy.cdm.io.common.ImportStateBase; |
28 | 27 |
import eu.etaxonomy.cdm.io.common.Source; |
29 | 28 |
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer; |
30 |
import eu.etaxonomy.cdm.io.erms.ErmsTransformer; |
|
31 | 29 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
32 | 30 |
import eu.etaxonomy.cdm.model.reference.ReferenceBase; |
33 | 31 |
import eu.etaxonomy.cdm.model.reference.ReferenceFactory; |
... | ... | |
50 | 48 |
//TODO |
51 | 49 |
private static IInputTransformer defaultTransformer = null; |
52 | 50 |
|
51 |
private boolean doCommonNames = true; |
|
52 |
|
|
53 | 53 |
|
54 | 54 |
/* Max number of records to be saved with one service call */ |
55 | 55 |
private int recordsPerTransaction = 1000; |
... | ... | |
83 | 83 |
, BerlinModelTypesImport.class |
84 | 84 |
, BerlinModelTaxonImport.class |
85 | 85 |
, BerlinModelTaxonRelationImport.class |
86 |
, BerlinModelCommonNamesImport.class |
|
86 | 87 |
, BerlinModelFactsImport.class |
87 | 88 |
, BerlinModelOccurrenceImport.class |
89 |
, BerlinModelOccurrenceSourceImport.class |
|
88 | 90 |
, BerlinModelWebMarkerCategoryImport.class |
89 | 91 |
, BerlinModelWebMarkerImport.class |
90 | 92 |
}; |
... | ... | |
129 | 131 |
if (sourceReference == null){ |
130 | 132 |
sourceReference = refFactory.newDatabase(); |
131 | 133 |
if (getSource() != null){ |
132 |
sourceReference.setTitleCache(getSource().getDatabase()); |
|
134 |
sourceReference.setTitleCache(getSource().getDatabase(), true);
|
|
133 | 135 |
} |
134 | 136 |
} |
135 | 137 |
return sourceReference; |
... | ... | |
325 | 327 |
this.recordsPerTransaction = recordsPerTransaction; |
326 | 328 |
} |
327 | 329 |
|
330 |
|
|
331 |
public boolean isDoCommonNames() { |
|
332 |
return doCommonNames; |
|
333 |
} |
|
334 |
|
|
335 |
|
|
336 |
/** |
|
337 |
* @param doCommonNames |
|
338 |
*/ |
|
339 |
public void setDoCommonNames(boolean doCommonNames) { |
|
340 |
this.doCommonNames = doCommonNames; |
|
341 |
|
|
342 |
} |
|
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
|
328 | 347 |
} |
Also available in: Unified diff
merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk