Project

General

Profile

« Previous | Next » 

Revision 79c223b6

Added by Andreas Müller over 4 years ago

cleanup

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/ErmsNotesImport.java
96 96
			nameSpace = ErmsImportBase.TAXON_NAMESPACE;
97 97
			cdmClass = TaxonBase.class;
98 98
			idSet = taxonIdSet;
99
			Map<String, TaxonBase<?>> taxonMap = (Map<String, TaxonBase<?>>)getCommonService().getSourcedObjectsByIdInSource(cdmClass, idSet, nameSpace);
99
			@SuppressWarnings("unchecked")
100
            Map<String, TaxonBase<?>> taxonMap = (Map<String, TaxonBase<?>>)getCommonService().getSourcedObjectsByIdInSource(cdmClass, idSet, nameSpace);
100 101
			result.put(nameSpace, taxonMap);
101 102

  
102 103
			//language map
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiDescriptionExport.java
182 182
		int pastCount = 0;
183 183
		boolean success = true;
184 184
		//int limit = state.getConfig().getLimitSave();
185
		int limit = 500;
185
		int limit = 1000;
186 186

  
187 187
		List<Taxon> taxonList = null;
188 188

  
......
198 198
		int partitionCount = 0;
199 199
		while ((taxonList = getNextTaxonPartition(Taxon.class, limit, partitionCount++, propPath )) != null   ) {
200 200

  
201
			logger.info("Fetched " + taxonList.size() + " " + pluralString + ". Exporting...");
201
			if (logger.isDebugEnabled()) {
202
                logger.info("Fetched " + taxonList.size() + " " + pluralString + ". Exporting...");
203
            }
202 204

  
203 205
			for (Taxon taxon : taxonList) {
204 206
				countTaxa++;
......
250 252
		int pastCount = 0;
251 253
		boolean success = true;
252 254
		//int limit = state.getConfig().getLimitSave();
253
		int limit = 100;
255
		int limit = 2000;
254 256
		List<TaxonNameDescription> nameDescList = null;
255 257

  
256 258
		TransactionStatus txStatus = startTransaction(true);
......
487 489

  
488 490
		// Get the limit for objects to save within a single transaction.
489 491
		//int limit = state.getConfig().getLimitSave();
490
		int limit = 100;
492
		int limit = 2000;
491 493
		txStatus = startTransaction(true);
492 494
		ExtensionType taxCommentExtensionType = (ExtensionType)getTermService().find(PesiTransformer.taxCommentUuid);
493 495
		ExtensionType fauCommentExtensionType = (ExtensionType)getTermService().find(PesiTransformer.fauCommentUuid);
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/out/PesiTransformer.java
1523 1523
        } else if (feature.getUuid().equals(ErmsTransformer.uuidReproduction)) {
1524 1524
            return NoteCategory_Reproduction;
1525 1525
        } else if (feature.getUuid().equals(ErmsTransformer.uuidSourceOfSynonymy)) {
1526
		    logger.warn("Source of synonymy not yet handled");
1526
		    logger.debug("Source of synonymy not yet handled");
1527 1527
		    return null;
1528 1528
		} else if (feature.equals(Feature.CITATION())) {
1529 1529
			return null;  //citations are handled differently

Also available in: Unified diff