org.hibernate.shards.criteria
Class ExitOperationsCriteriaCollector

java.lang.Object
  extended by org.hibernate.shards.criteria.ExitOperationsCriteriaCollector
All Implemented Interfaces:
ExitOperationsCollector

public class ExitOperationsCriteriaCollector
extends Object
implements ExitOperationsCollector

Implements the ExitOperationsCollector interface for Critierias

Author:
Maulik Shah

Constructor Summary
ExitOperationsCriteriaCollector()
           
 
Method Summary
 ExitOperationsCollector addOrder(org.hibernate.criterion.Order order)
          Add the given Order
 ExitOperationsCollector addProjection(org.hibernate.criterion.Projection projection)
          Adds the given projection.
 List<Object> apply(List<Object> result)
           
 ExitOperationsCollector setFirstResult(int firstResult)
          Sets the index of the first result requested by the client
 ExitOperationsCollector setMaxResults(int maxResults)
          Sets the maximum number of results requested by the client
 void setSessionFactory(org.hibernate.engine.SessionFactoryImplementor sessionFactoryImplementor)
          Sets the session factory implementor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExitOperationsCriteriaCollector

public ExitOperationsCriteriaCollector()
Method Detail

setMaxResults

public ExitOperationsCollector setMaxResults(int maxResults)
Sets the maximum number of results requested by the client

Parameters:
maxResults - maximum number of results requested by the client
Returns:
this

setFirstResult

public ExitOperationsCollector setFirstResult(int firstResult)
Sets the index of the first result requested by the client

Parameters:
firstResult - index of the first result requested by the client
Returns:
this

addProjection

public ExitOperationsCollector addProjection(org.hibernate.criterion.Projection projection)
Adds the given projection.

Parameters:
projection - the projection to add
Returns:
this

addOrder

public ExitOperationsCollector addOrder(org.hibernate.criterion.Order order)
Add the given Order

Parameters:
order - the order to add
Returns:
this

apply

public List<Object> apply(List<Object> result)
Specified by:
apply in interface ExitOperationsCollector

setSessionFactory

public void setSessionFactory(org.hibernate.engine.SessionFactoryImplementor sessionFactoryImplementor)
Sets the session factory implementor

Specified by:
setSessionFactory in interface ExitOperationsCollector
Parameters:
sessionFactoryImplementor - the session factory implementor to set