Revision 712e980f
Added by Andreas Müller over 4 years ago
cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/fauEu2Cdm/FauEu2CdmImport.java | ||
---|---|---|
317 | 317 |
|
318 | 318 |
private <T extends LanguageStringBase> T handlePersisted(LanguageStringBase lsBase) throws IllegalAccessException, InvocationTargetException, NoSuchFieldException, SecurityException, IllegalArgumentException, NoSuchMethodException { |
319 | 319 |
T result = handlePersisted((AnnotatableEntity)lsBase); |
320 |
if (result ==null){ |
|
321 |
return null; |
|
322 |
} |
|
323 | 320 |
result.setLanguage(detache(lsBase.getLanguage())); |
324 | 321 |
return result; |
325 | 322 |
} |
326 | 323 |
|
327 |
/** |
|
328 |
* @param classification |
|
329 |
* @return |
|
330 |
* @throws InvocationTargetException |
|
331 |
* @throws IllegalAccessException |
|
332 |
* @throws IllegalArgumentException |
|
333 |
* @throws SecurityException |
|
334 |
* @throws NoSuchFieldException |
|
335 |
* @throws NoSuchMethodException |
|
336 |
*/ |
|
337 | 324 |
private <T extends IdentifiableEntity> T handlePersisted(IdentifiableEntity identifiableEntity) throws IllegalAccessException, InvocationTargetException, NoSuchFieldException, SecurityException, IllegalArgumentException, NoSuchMethodException { |
338 | 325 |
T result = handlePersisted((SourcedEntityBase)identifiableEntity); |
339 | 326 |
if (result ==null){ |
... | ... | |
348 | 335 |
|
349 | 336 |
private <T extends TeamOrPersonBase> T handlePersisted(TeamOrPersonBase teamOrPerson) throws IllegalAccessException, InvocationTargetException, NoSuchFieldException, SecurityException, IllegalArgumentException, NoSuchMethodException { |
350 | 337 |
T result = handlePersisted((AgentBase)teamOrPerson); |
351 |
if (result ==null){ |
|
352 |
return null; |
|
353 |
} |
|
354 | 338 |
return result; |
355 | 339 |
} |
356 | 340 |
|
... | ... | |
362 | 346 |
|
363 | 347 |
private <T extends TaxonBase> T handlePersisted(TaxonBase taxonBase) throws IllegalAccessException, InvocationTargetException, NoSuchFieldException, SecurityException, IllegalArgumentException, NoSuchMethodException { |
364 | 348 |
T result = handlePersisted((IdentifiableEntity)taxonBase); |
365 |
if (result ==null){ |
|
366 |
return null; |
|
367 |
} |
|
368 | 349 |
result.setName(detache(taxonBase.getName())); |
369 | 350 |
result.setSec(detache(taxonBase.getSec())); |
370 |
// handleCollection(result, IdentifiableEntity.class, "credits", Credit.class); |
|
371 |
// handleCollection(result, IdentifiableEntity.class, "extensions", Extension.class); |
|
372 |
// handleCollection(result, IdentifiableEntity.class, "identifiers", Identifier.class); |
|
373 |
// handleCollection(result, IdentifiableEntity.class, "rights", Rights.class); |
|
374 | 351 |
return result; |
375 | 352 |
} |
376 | 353 |
|
Also available in: Unified diff
cleanup