org.hibernate.criterion

Interface CriteriaQuery

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
Type
getTypeUsingProjection(Criteria criteria, String propertyPath)
Get the type of a property path
TypedValue
getTypedIdentifierValue(Criteria subcriteria, Object value)
TypedValue
getTypedValue(Criteria criteria, String propertyPath, Object value)
Get the a typed value for the given property value.

Method Details

generateSQLAlias

public String generateSQLAlias()

getColumn

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

getColumnsUsingProjection

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

getEntityName

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

getEntityName

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

getFactory

public SessionFactoryImplementor getFactory()

getIdentifierColumns

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

getIdentifierType

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

getPropertyName

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

getSQLAlias

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

getSQLAlias

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

getType

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

getTypeUsingProjection

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

getTypedIdentifierValue

public TypedValue getTypedIdentifierValue(Criteria subcriteria,
                                          Object value)

getTypedValue

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