Project

General

Profile

« Previous | Next » 

Revision 6a47f57b

Added by Andreas Müller over 9 years ago

first untested version for findByIdentifier #4594

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/common/IIdentifiableDao.java
13 13

  
14 14
import org.hibernate.criterion.Criterion;
15 15

  
16
import eu.etaxonomy.cdm.model.common.Credit;
17
import eu.etaxonomy.cdm.model.common.DefinedTerm;
16 18
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
17 19
import eu.etaxonomy.cdm.model.common.IdentifiableSource;
18 20
import eu.etaxonomy.cdm.model.common.LSID;
......
65 67
	 * @return a count of Rights instances
66 68
	 */
67 69
    public int countRights(T identifiableEntity);
68
	
70
    
71
    
69 72
	/**
70 73
	 * Return a List of the rights for this identifiable entity
71 74
	 * 
......
172 175
	 */
173 176
	public abstract Long countTitleCache(Class<? extends T> clazz, String queryString, MatchMode matchMode);
174 177

  
178
	
179
    /**
180
     * Returns all {@link IdentifiableEntity identifiable entities} which have the according
181
     * identifier attached  
182
     * @param clazz the identiable entity subclass, may be null
183
     * @param identifier the identifer as {@link String}
184
     * @param identifierType the identifier type, maybe null
185
     * @param matchmode 
186
     * @param pageSize
187
     * @param pageNumber
188
     * @param orderHints
189
     * @param propertyPaths
190
     * @return
191
     */
192
    public <T extends IdentifiableEntity> List<T> findByIdentifier(T clazz, String identifier, DefinedTerm identifierType, MatchMode matchmode, Integer pageSize, Integer pageNumber, List<OrderHint> orderHints, List<String> propertyPaths);
193

  
175 194
}

Also available in: Unified diff