org.hibernate.shards.criteria
Class CriteriaFactoryImpl

java.lang.Object
  extended by org.hibernate.shards.criteria.CriteriaFactoryImpl
All Implemented Interfaces:
CriteriaFactory

public class CriteriaFactoryImpl
extends Object
implements CriteriaFactory

Implementation of the CriteriaFactory interface.

Author:
maxr@google.com (Max Ross)
See Also:
Session.createCriteria(Class), Session.createCriteria(Class, String), Session.createCriteria(String), Session.createCriteria(String, String)

Constructor Summary
CriteriaFactoryImpl(Class persistentClass)
          Create a CriteriaFactoryImpl.
CriteriaFactoryImpl(Class persistentClass, String alias)
          Create a CriteriaFactoryImpl.
CriteriaFactoryImpl(String entityName)
          Create a CriteriaFactoryImpl.
CriteriaFactoryImpl(String entityName, String alias)
          Create a CriteriaFactoryImpl.
 
Method Summary
 org.hibernate.Criteria createCriteria(org.hibernate.Session session)
          Create a Criteria for the given Session
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriteriaFactoryImpl

public CriteriaFactoryImpl(Class persistentClass)
Create a CriteriaFactoryImpl.

Parameters:
persistentClass - the Class of the Criteria we're creating.

CriteriaFactoryImpl

public CriteriaFactoryImpl(Class persistentClass,
                           String alias)
Create a CriteriaFactoryImpl.

Parameters:
persistentClass - the Class of the Criteria we're creating.
alias - the alias of the Criteria we're creating.

CriteriaFactoryImpl

public CriteriaFactoryImpl(String entityName)
Create a CriteriaFactoryImpl.

Parameters:
entityName - the entity name of the Criteria we're creating.

CriteriaFactoryImpl

public CriteriaFactoryImpl(String entityName,
                           String alias)
Create a CriteriaFactoryImpl.

Parameters:
entityName - the entity name of the Criteria we're creating.
alias - the alias of the Criteria we're creating.
Method Detail

createCriteria

public org.hibernate.Criteria createCriteria(org.hibernate.Session session)
Description copied from interface: CriteriaFactory
Create a Criteria for the given Session

Specified by:
createCriteria in interface CriteriaFactory
Parameters:
session - the Session to be used when creating the Criteria
Returns:
a Criteria associated with the given Session