public interface EntityFinder
| Modifier and Type | Method and Description | 
|---|---|
long | 
countEntities(Class<?> resultType,
             Specification<Composite> whereClause,
             Map<String,Object> variables)
Count entities matching the query criterion. 
 | 
Iterable<EntityReference> | 
findEntities(Class<?> resultType,
            Specification<Composite> whereClause,
            OrderBy[] orderBySegments,
            Integer firstResult,
            Integer maxResults,
            Map<String,Object> variables)
Find entities matching the query criterion. 
 | 
EntityReference | 
findEntity(Class<?> resultType,
          Specification<Composite> whereClause,
          Map<String,Object> variables)
Find a single entity matching the query criterion. 
 | 
Iterable<EntityReference> findEntities(Class<?> resultType, @Optional Specification<Composite> whereClause, @Optional OrderBy[] orderBySegments, @Optional Integer firstResult, @Optional Integer maxResults, Map<String,Object> variables) throws EntityFinderException
resultType - Type that the entities must have.whereClause - Where clause specification.orderBySegments - OrderingfirstResult - Index of the first returned entity.maxResults - Maximum returned entities.variables - Query variablesEntityFinderExceptionEntityReference findEntity(Class<?> resultType, @Optional Specification<Composite> whereClause, Map<String,Object> variables) throws EntityFinderException
resultType - Type that the entity must have.whereClause - Where clause specification.variables - Query variablesEntityFinderExceptionlong countEntities(Class<?> resultType, @Optional Specification<Composite> whereClause, Map<String,Object> variables) throws EntityFinderException
resultType - Type that the entities must have.whereClause - Where clause specification.variables - Query variablesEntityFinderException