Project

General

Profile

Revision a8b0ad5f

IDa8b0ad5feef7e33aaa1b9c7191287e331af1b713
Parent 0842c388
Child 0de43613, 4e14e4cb

Added by Katja Luther almost 3 years ago

ref #5972: add service method to get count of referencing objects

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/CommonServiceImpl.java
104 104
        return this.genericDao.getReferencingObjects(referencedCdmBase);
105 105
    }
106 106

  
107
    @Override
108
    public Integer getReferencingObjectsCount(CdmBase referencedCdmBase){
109
        return this.genericDao.getReferencingObjects(referencedCdmBase).size();
110
    }
107 111

  
108 112
    @Override
109 113
    public Set<CdmBase> getReferencingObjectsForDeletion(CdmBase referencedCdmBase){
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/ICommonService.java
347 347
     */
348 348
    public <T extends IMergable> void merge(UUID mergeFirstUuid, UUID mergeSecondUuid, Class<? extends CdmBase> clazz) throws MergeException;
349 349

  
350
    /**
351
     * @param referencedCdmBase
352
     * @return
353
     */
354
    Integer getReferencingObjectsCount(CdmBase referencedCdmBase);
355

  
350 356

  
351 357
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)