public interface

CriteriaQuery

org.hibernate.criterion.CriteriaQuery
Known Indirect Subclasses

Class Overview

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.

Summary

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

Public Methods

public abstract 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. Projection aliases are ignored.

public abstract String generateSQLAlias ()

public abstract String getColumn (Criteria criteria, String propertyPath)

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

Throws
QueryException if the property maps to more than 1 column
HibernateException

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

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

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

Get the names of the columns mapped by a property path

public abstract String getEntityName (Criteria criteria)

Get the entity name of an entity

public abstract String getEntityName (Criteria criteria, String propertyPath)

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

public abstract SessionFactoryImplementor getFactory ()

public abstract String[] getIdentifierColumns (Criteria subcriteria)

Get the identifier column names of this entity

public abstract Type getIdentifierType (Criteria subcriteria)

Get the identifier type of this entity

public abstract String getPropertyName (String propertyName)

Get the property name, given a possibly qualified property name

public abstract String getSQLAlias (Criteria subcriteria)

Get the root table alias of an entity

public abstract String getSQLAlias (Criteria criteria, String propertyPath)

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

public abstract Type getType (Criteria criteria, String propertyPath)

Get the type of a property path, ignoring projection aliases

public abstract Type getTypeUsingProjection (Criteria criteria, String propertyPath)

Get the type of a property path

public abstract TypedValue getTypedIdentifierValue (Criteria subcriteria, Object value)

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

Get the a typed value for the given property value.