org.qi4j.index.rdf.query
Class RdfQueryService.RdfEntityFinderMixin

java.lang.Object
  extended by org.qi4j.index.rdf.query.RdfQueryService.RdfEntityFinderMixin
All Implemented Interfaces:
EntityFinder
Enclosing interface:
RdfQueryService

public static class RdfQueryService.RdfEntityFinderMixin
extends java.lang.Object
implements EntityFinder

JAVADOC Add JavaDoc


Constructor Summary
RdfQueryService.RdfEntityFinderMixin()
           
 
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
 

Constructor Detail

RdfQueryService.RdfEntityFinderMixin

public RdfQueryService.RdfEntityFinderMixin()
Method Detail

findEntities

public 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)
                                                 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 - Ordering
firstResult - 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,
                                  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

countEntities

public long countEntities(java.lang.Class<?> resultType,
                          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