Project

General

Profile

Revision e14a8c4a

IDe14a8c4aec1fc6a47846f4d61fdd01acdefb755c
Parent 582cd24e

Added by Andreas Kohlbecker over 3 years ago

adding missing delete method to CommonServiceImpl

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/CommonServiceImpl.java
404 404

  
405 405
    @Override
406 406
    @Transactional(readOnly = false)
407
    public UUID delete(CdmBase instance) {
408
        return genericDao.delete(instance);
409
    }
410

  
411
    @Override
412
    @Transactional(readOnly = false)
407 413
    public UUID saveOrUpdate(CdmBase newInstance) {
408 414
        return genericDao.saveOrUpdate(newInstance);
409 415
    }
......
414 420
    public <T extends CdmBase> Map<UUID,T> save(Collection<T> newInstances) {
415 421
        //this is very ugly, I know, but for now I do not want to copy the saveAll method from CdmEntityDaoBase to genericDao
416 422
        //and generally the saveAll method should work for other CdmBase types with generics removed
417
        return (Map)originalSourceDao.saveAll((Collection)newInstances);
423
        return originalSourceDao.saveAll((Collection)newInstances);
418 424
    }
419 425

  
420 426
    @Override
......
422 428
    public <T extends CdmBase> Map<UUID,T> saveOrUpdate(Collection<T> newInstances) {
423 429
        //this is very ugly, I know, but for now I do not want to copy the saveAll method from CdmEntityDaoBase to genericDao
424 430
        //and generally the saveAll method should work for other CdmBase types with generics removed
425
        return (Map)originalSourceDao.saveOrUpdateAll((Collection)newInstances);
431
        return originalSourceDao.saveOrUpdateAll((Collection)newInstances);
426 432
    }
427 433

  
428 434

  
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ICommonService.java
344 344
    public <T extends CdmBase> Map<UUID,T> saveOrUpdate(Collection<T> entities);
345 345

  
346 346
    /**
347
     * @param instance
348
     * @return
349
     */
350
    public UUID delete(CdmBase instance);
351

  
352
    /**
347 353
     * @param mergeFirstId
348 354
     * @param mergeSecondId
349 355
     * @param clazz

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)