org.qi4j.index.sql.internal
Class SQLEntityFinder

java.lang.Object
  extended by org.qi4j.index.sql.internal.SQLEntityFinder
All Implemented Interfaces:
EntityFinder

public class SQLEntityFinder
extends Object
implements EntityFinder


Constructor Summary
SQLEntityFinder()
           
 
Method Summary
 long countEntities(Class<?> resultType, BooleanExpression whereClause)
           
 Iterable<EntityReference> findEntities(Class<?> resultType, BooleanExpression whereClause, OrderBy[] orderBySegments, Integer firstResult, Integer maxResults)
           
 EntityReference findEntity(Class<?> resultType, BooleanExpression whereClause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLEntityFinder

public SQLEntityFinder()
Method Detail

countEntities

public long countEntities(Class<?> resultType,
                          BooleanExpression whereClause)
                   throws EntityFinderException
Specified by:
countEntities in interface EntityFinder
Throws:
EntityFinderException

findEntities

public Iterable<EntityReference> findEntities(Class<?> resultType,
                                              BooleanExpression whereClause,
                                              OrderBy[] orderBySegments,
                                              Integer firstResult,
                                              Integer maxResults)
                                       throws EntityFinderException
Specified by:
findEntities in interface EntityFinder
Throws:
EntityFinderException

findEntity

public EntityReference findEntity(Class<?> resultType,
                                  BooleanExpression whereClause)
                           throws EntityFinderException
Specified by:
findEntity in interface EntityFinder
Throws:
EntityFinderException