org.qi4j.index.sql.internal
Class SQLEntityFinder
java.lang.Object
org.qi4j.index.sql.internal.SQLEntityFinder
- All Implemented Interfaces:
- EntityFinder
public class SQLEntityFinder
- extends java.lang.Object
- implements EntityFinder
Method Summary |
long |
countEntities(java.lang.Class<?> resultType,
Specification<Composite> whereClause,
java.util.Map<java.lang.String,java.lang.Object> variables)
Count entities matching the query criterion. |
java.lang.Iterable<EntityReference> |
findEntities(java.lang.Class<?> resultType,
Specification<Composite> whereClause,
OrderBy[] orderBySegments,
java.lang.Integer firstResult,
java.lang.Integer maxResults,
java.util.Map<java.lang.String,java.lang.Object> variables)
Find entities matching the query criterion. |
EntityReference |
findEntity(java.lang.Class<?> resultType,
Specification<Composite> whereClause,
java.util.Map<java.lang.String,java.lang.Object> variables)
Find a single entity matching the query criterion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLEntityFinder
public SQLEntityFinder()
countEntities
public long countEntities(java.lang.Class<?> resultType,
@Optional
Specification<Composite> whereClause,
java.util.Map<java.lang.String,java.lang.Object> variables)
throws EntityFinderException
- Description copied from interface:
EntityFinder
- Count entities matching the query criterion.
- Specified by:
countEntities
in interface EntityFinder
- Parameters:
resultType
- Type that the entities must have.whereClause
- Where clause specification.variables
- Query variables
- Returns:
- Count entities matching the query criterion.
- Throws:
EntityFinderException
findEntities
public java.lang.Iterable<EntityReference> findEntities(java.lang.Class<?> resultType,
@Optional
Specification<Composite> whereClause,
@Optional
OrderBy[] orderBySegments,
@Optional
java.lang.Integer firstResult,
@Optional
java.lang.Integer maxResults,
java.util.Map<java.lang.String,java.lang.Object> variables)
throws EntityFinderException
- Description copied from interface:
EntityFinder
- Find entities matching the query criterion.
- Specified by:
findEntities
in interface EntityFinder
- Parameters:
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 variables
- Returns:
- Single entity matching the query criterion.
- Throws:
EntityFinderException
findEntity
public EntityReference findEntity(java.lang.Class<?> resultType,
@Optional
Specification<Composite> whereClause,
java.util.Map<java.lang.String,java.lang.Object> variables)
throws EntityFinderException
- Description copied from interface:
EntityFinder
- Find a single entity matching the query criterion.
- Specified by:
findEntity
in interface EntityFinder
- Parameters:
resultType
- Type that the entity must have.whereClause
- Where clause specification.variables
- Query variables
- Returns:
- Single entity matching the query criterion.
- Throws:
EntityFinderException