Revision 2d481abb
Added by Katja Luther almost 10 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/faunaEuropaea/FaunaEuropaeaRefImport.java | ||
---|---|---|
208 | 208 |
|
209 | 209 |
if ((i++ % limit) == 0) { |
210 | 210 |
|
211 |
txStatus = startTransaction(); |
|
211 |
txStatus = startTransactionForImports();
|
|
212 | 212 |
references = new HashMap<Integer,Reference>(limit); |
213 | 213 |
authors = new HashMap<String,TeamOrPersonBase>(limit); |
214 | 214 |
|
... | ... | |
281 | 281 |
|
282 | 282 |
|
283 | 283 |
} |
284 |
rsRefs = null; |
|
284 | 285 |
if (references != null){ |
285 | 286 |
commitReferences(references, authors, referenceUuids, i, txStatus); |
286 | 287 |
references= null; |
... | ... | |
290 | 291 |
logger.error("SQLException:" + e); |
291 | 292 |
state.setUnsuccessfull(); |
292 | 293 |
} |
294 |
references = null; |
|
295 |
authors = null; |
|
293 | 296 |
|
294 | 297 |
} |
295 | 298 |
|
... | ... | |
453 | 456 |
logger.error("SQLException:" + e); |
454 | 457 |
state.setUnsuccessfull(); |
455 | 458 |
} |
459 |
taxonUuids = null; |
|
460 |
references = null; |
|
461 |
taxonList = null; |
|
462 |
fauEuTaxonMap = null; |
|
463 |
referenceIDs = null; |
|
464 |
referenceList = null; |
|
465 |
|
|
466 |
|
|
456 | 467 |
} |
457 | 468 |
|
458 | 469 |
private void commitTaxaReferenceRel(Set<UUID> taxonUuids, |
... | ... | |
492 | 503 |
Set<Taxon> acceptedTaxa = syn.getAcceptedTaxa(); |
493 | 504 |
if (acceptedTaxa.size() > 0) { |
494 | 505 |
taxon = syn.getAcceptedTaxa().iterator().next(); |
506 |
logger.warn("Synonym (" + taxonBase.getUuid() + ") has accepted taxon" + taxon.getUuid()); |
|
495 | 507 |
} else { |
496 | 508 |
// if (logger.isDebugEnabled()) { |
497 |
logger.warn("Synonym (" + taxonBase.getUuid() + ") does not have accepted taxa");
|
|
509 |
logger.warn("Synonym (" + taxonBase.getUuid() + ") does not have accepted taxa"); |
|
498 | 510 |
// } |
499 | 511 |
} |
500 | 512 |
} else { |
Also available in: Unified diff
changes in Fauna Europeae Import and Index Fungorum Import and PESI Export