public interface EntityFinder
| Modifier and Type | Method and Description |
|---|---|
long |
countEntities(Class<?> resultType,
Predicate<Composite> whereClause,
Map<String,Object> variables)
Count entities matching the query criterion.
|
Stream<EntityReference> |
findEntities(Class<?> resultType,
Predicate<Composite> whereClause,
List<OrderBy> orderBySegments,
Integer firstResult,
Integer maxResults,
Map<String,Object> variables)
Find entities matching the query criterion.
|
EntityReference |
findEntity(Class<?> resultType,
Predicate<Composite> whereClause,
Map<String,Object> variables)
Find a single entity matching the query criterion.
|
Stream<EntityReference> findEntities(Class<?> resultType, @Optional Predicate<Composite> whereClause, @Optional List<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 variablesEntityFinderException - on errorEntityReference findEntity(Class<?> resultType, @Optional Predicate<Composite> whereClause, Map<String,Object> variables) throws EntityFinderException
resultType - Type that the entity must have.whereClause - Where clause specification.variables - Query variablesEntityFinderException - on errorlong countEntities(Class<?> resultType, @Optional Predicate<Composite> whereClause, Map<String,Object> variables) throws EntityFinderException
resultType - Type that the entities must have.whereClause - Where clause specification.variables - Query variablesEntityFinderException - on error