Top Description Methods
org.hibernate.criterion

public Interface CriteriaQuery

Known Direct Implementers
org.hibernate.loader.criteria.CriteriaQueryTranslator
Imports
org.hibernate.Criteria, .HibernateException, org.hibernate.engine.SessionFactoryImplementor, .TypedValue, org.hibernate.type.Type

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

Modifier and TypeMethod and Description
public String[]
findColumns(String propertyPath, Criteria criteria)

Get the names of the columns mapped by a property path; if the property path is not found in criteria, try the "outer" query.

public String
public String
getColumn(Criteria criteria, String propertyPath)

Get the names of the columns mapped by a property path, ignoring projection aliases

public String[]
getColumns(String propertyPath, Criteria criteria)

Get the names of the columns mapped by a property path, ignoring projection aliases

public String[]
getColumnsUsingProjection(Criteria criteria, String propertyPath)

Get the names of the columns mapped by a property path

public String
getEntityName(Criteria criteria)

Get the entity name of an entity

public String
getEntityName(Criteria criteria, String propertyPath)

Get the entity name of an entity, taking into account the qualifier of the property path

public SessionFactoryImplementor
public String[]
getIdentifierColumns(Criteria subcriteria)

Get the identifier column names of this entity

public Type
getIdentifierType(Criteria subcriteria)

Get the identifier type of this entity

public String
getPropertyName(String propertyName)

Get the property name, given a possibly qualified property name

public String
getSQLAlias(Criteria subcriteria)

Get the root table alias of an entity

public String
getSQLAlias(Criteria criteria, String propertyPath)

Get the root table alias of an entity, taking into account the qualifier of the property path

public Type
getType(Criteria criteria, String propertyPath)

Get the type of a property path, ignoring projection aliases

public TypedValue
public TypedValue
getTypedValue(Criteria criteria, String propertyPath, Object value)

Get the a typed value for the given property value.

public Type
getTypeUsingProjection(Criteria criteria, String propertyPath)

Get the type of a property path

Method Detail

findColumnsback to summary
public String[] findColumns(String propertyPath, Criteria criteria) throws HibernateException

Get the names of the columns mapped by a property path; if the property path is not found in criteria, try the "outer" query. Projection aliases are ignored.

generateSQLAliasback to summary
public String generateSQLAlias()
getColumnback to summary
public String getColumn(Criteria criteria, String propertyPath) throws HibernateException

Get the names of the columns mapped by a property path, ignoring projection aliases

Exceptions
QueryException:
if the property maps to more than 1 column
getColumnsback to summary
public String[] getColumns(String propertyPath, Criteria criteria) throws HibernateException

Get the names of the columns mapped by a property path, ignoring projection aliases

getColumnsUsingProjectionback to summary
public String[] getColumnsUsingProjection(Criteria criteria, String propertyPath) throws HibernateException

Get the names of the columns mapped by a property path

getEntityNameback to summary
public String getEntityName(Criteria criteria)

Get the entity name of an entity

getEntityNameback to summary
public String getEntityName(Criteria criteria, String propertyPath)

Get the entity name of an entity, taking into account the qualifier of the property path

getFactoryback to summary
public SessionFactoryImplementor getFactory()
getIdentifierColumnsback to summary
public String[] getIdentifierColumns(Criteria subcriteria)

Get the identifier column names of this entity

getIdentifierTypeback to summary
public Type getIdentifierType(Criteria subcriteria)

Get the identifier type of this entity

getPropertyNameback to summary
public String getPropertyName(String propertyName)

Get the property name, given a possibly qualified property name

getSQLAliasback to summary
public String getSQLAlias(Criteria subcriteria)

Get the root table alias of an entity

getSQLAliasback to summary
public String getSQLAlias(Criteria criteria, String propertyPath)

Get the root table alias of an entity, taking into account the qualifier of the property path

getTypeback to summary
public Type getType(Criteria criteria, String propertyPath) throws HibernateException

Get the type of a property path, ignoring projection aliases

getTypedIdentifierValueback to summary
public TypedValue getTypedIdentifierValue(Criteria subcriteria, Object value)
getTypedValueback to summary
public TypedValue getTypedValue(Criteria criteria, String propertyPath, Object value) throws HibernateException

Get the a typed value for the given property value.

getTypeUsingProjectionback to summary
public Type getTypeUsingProjection(Criteria criteria, String propertyPath) throws HibernateException

Get the type of a property path