org.hibernate.criterion
Interface CriteriaQuery

All Known Implementing Classes:
CriteriaQueryTranslator

public interface CriteriaQuery

An instance of CriteriaQuery is passed to criterion, order and projection instances when actually compiling and executing the query. This interface is not used by application code.

Author:
Gavin King

Method Summary
 String generateSQLAlias()
           
 String getColumn(Criteria criteria, String propertyPath)
          Get the names of the columns mapped by a property path, ignoring projection aliases
 String[] getColumnsUsingProjection(Criteria criteria, String propertyPath)
          Get the names of the columns mapped by a property path
 String getEntityName(Criteria criteria)
          Get the entity name of an entity
 String getEntityName(Criteria criteria, String propertyPath)
          Get the entity name of an entity, taking into account the qualifier of the property path
 SessionFactoryImplementor getFactory()
           
 String[] getIdentifierColumns(Criteria subcriteria)
          Get the identifier column names of this entity
 Type getIdentifierType(Criteria subcriteria)
          Get the identifier type of this entity
 String getPropertyName(String propertyName)
          Get the property name, given a possibly qualified property name
 String getSQLAlias(Criteria subcriteria)
          Get the root table alias of an entity
 String getSQLAlias(Criteria criteria, String propertyPath)
          Get the root table alias of an entity, taking into account the qualifier of the property path
 Type getType(Criteria criteria, String propertyPath)
          Get the type of a property path, ignoring projection aliases
 TypedValue getTypedIdentifierValue(Criteria subcriteria, Object value)
           
 TypedValue getTypedValue(Criteria criteria, String propertyPath, Object value)
          Get the a typed value for the given property value.
 Type getTypeUsingProjection(Criteria criteria, String propertyPath)
          Get the type of a property path
 

Method Detail

getFactory

SessionFactoryImplementor getFactory()

getColumn

String getColumn(Criteria criteria,
                 String propertyPath)
                 throws HibernateException
Get the names of the columns mapped by a property path, ignoring projection aliases

Throws:
HibernateException

getType

Type getType(Criteria criteria,
             String propertyPath)
             throws HibernateException
Get the type of a property path, ignoring projection aliases

Throws:
HibernateException

getColumnsUsingProjection

String[] getColumnsUsingProjection(Criteria criteria,
                                   String propertyPath)
                                   throws HibernateException
Get the names of the columns mapped by a property path

Throws:
HibernateException

getTypeUsingProjection

Type getTypeUsingProjection(Criteria criteria,
                            String propertyPath)
                            throws HibernateException
Get the type of a property path

Throws:
HibernateException

getTypedValue

TypedValue getTypedValue(Criteria criteria,
                         String propertyPath,
                         Object value)
                         throws HibernateException
Get the a typed value for the given property value.

Throws:
HibernateException

getEntityName

String getEntityName(Criteria criteria)
Get the entity name of an entity


getEntityName

String getEntityName(Criteria criteria,
                     String propertyPath)
Get the entity name of an entity, taking into account the qualifier of the property path


getSQLAlias

String getSQLAlias(Criteria subcriteria)
Get the root table alias of an entity


getSQLAlias

String getSQLAlias(Criteria criteria,
                   String propertyPath)
Get the root table alias of an entity, taking into account the qualifier of the property path


getPropertyName

String getPropertyName(String propertyName)
Get the property name, given a possibly qualified property name


getIdentifierColumns

String[] getIdentifierColumns(Criteria subcriteria)
Get the identifier column names of this entity


getIdentifierType

Type getIdentifierType(Criteria subcriteria)
Get the identifier type of this entity


getTypedIdentifierValue

TypedValue getTypedIdentifierValue(Criteria subcriteria,
                                   Object value)

generateSQLAlias

String generateSQLAlias()


Copyright © 2009 Hibernate.org. All Rights Reserved.