Revision 7e96b3c1
Added by Andreas Müller over 11 years ago
app-import/src/main/java/eu/etaxonomy/cdm/app/dwca/DwcaImportActivator.java | ||
---|---|---|
31 | 31 |
|
32 | 32 |
/** |
33 | 33 |
* @author a.mueller |
34 |
* @created 16.12.2010 |
|
35 |
* @version 1.0 |
|
34 |
* @created 10.11.2011 |
|
36 | 35 |
*/ |
37 | 36 |
public class DwcaImportActivator { |
38 | 37 |
private static final Logger logger = Logger.getLogger(DwcaImportActivator.class); |
... | ... | |
41 | 40 |
static DbSchemaValidation hbm2dll = DbSchemaValidation.CREATE; |
42 | 41 |
// static final URI source = dwca_test_in(); |
43 | 42 |
// static final URI source = dwca_test_cich_len(); |
44 |
static final URI source = dwca_test_col_cichorium(); |
|
43 |
static final URI source = dwca_test_col_sapindaceae(); |
|
44 |
// static final URI source = dwca_test_col_cichorium(); |
|
45 | 45 |
// static final URI source = dwca_test_scratch_test(); |
46 | 46 |
// static final URI source = dwca_test_col_All_Pesi2(); |
47 | 47 |
// static final URI source = dwca_test_col_All(); |
... | ... | |
53 | 53 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql_test(); |
54 | 54 |
// static final ICdmDataSource cdmDestination = CdmDestinations.localH2(); |
55 | 55 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql_pesi_test(); |
56 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql_test();
|
|
56 |
// static final ICdmDataSource cdmDestination = CdmDestinations.cdm_test_local_mysql(); |
|
57 | 57 |
|
58 | 58 |
|
59 | 59 |
//classification |
... | ... | |
65 | 65 |
|
66 | 66 |
//check - import |
67 | 67 |
static final CHECK check = CHECK.IMPORT_WITHOUT_CHECK; |
68 |
static int partitionSize = 5; |
|
68 | 69 |
|
69 | 70 |
//config |
70 | 71 |
static DatasetUse datasetUse = DatasetUse.SECUNDUM; |
... | ... | |
98 | 99 |
|
99 | 100 |
config.setScientificNameIdAsOriginalSourceId(scientificNameIdAsOriginalSourceId); |
100 | 101 |
config.setValidateRankConsistency(validateRankConsistency); |
102 |
config.setDefaultPartitionSize(partitionSize); |
|
101 | 103 |
config.setNomenclaturalCode(defaultNomCode); |
102 | 104 |
config.setDatasetUse(datasetUse); |
103 | 105 |
config.setGuessNomenclaturalReferences(guessNomRef); |
... | ... | |
161 | 163 |
return sourceUrl; |
162 | 164 |
} |
163 | 165 |
|
166 |
//Dwca |
|
167 |
public static URI dwca_test_col_sapindaceae() { |
|
168 |
URI sourceUrl = URI.create("file:///C:/localCopy/Data/dwca/import/CoL/Sapindaceae/archive-family-Sapindaceae-bl3.zip"); |
|
169 |
return sourceUrl; |
|
170 |
} |
|
171 |
|
|
164 | 172 |
//CoL |
165 | 173 |
public static URI dwca_test_col_All() { |
166 | 174 |
URI sourceUrl = URI.create("file:///C:/localCopy/Data/dwca/import/CoL/All/archive-complete.zip"); |
Also available in: Unified diff
resolved conflicts