public class

CriteriaQueryTranslator

extends Object
implements CriteriaQuery
java.lang.Object
   ↳ org.hibernate.loader.criteria.CriteriaQueryTranslator

Summary

Constants
String ROOT_SQL_ALIAS
Public Constructors
CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias, CriteriaQuery outerQuery)
CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias)
Public Methods
String[] findColumns(String propertyName, Criteria subcriteria)
Get the names of the columns mapped by a property path; if the property path is not found in subcriteria, try the "outer" query.
String generateSQLAlias()
String getColumn(Criteria criteria, String propertyName)
Get the names of the columns mapped by a property path, ignoring projection aliases
String[] getColumns(String propertyName, Criteria subcriteria)
Get the names of the columns mapped by a property path, ignoring projection aliases
String[] getColumnsUsingProjection(Criteria subcriteria, String propertyName)
Get the names of the columns constrained by this criterion.
Criteria getCriteria(String path)
String getEntityName(Criteria criteria)
Get the entity name of an entity
String getEntityName(Criteria subcriteria, String propertyName)
Get the entity name of an entity, taking into account the qualifier of the property path
SessionFactoryImplementor getFactory()
String getGroupBy()
String[] getIdentifierColumns(Criteria subcriteria)
Get the identifier column names of this entity
Type getIdentifierType(Criteria subcriteria)
Get the identifier type of this entity
int getJoinType(String path)
String getOrderBy()
String[] getProjectedAliases()
String[] getProjectedColumnAliases()
Type[] getProjectedTypes()
String getPropertyName(String propertyName)
Get the property name, given a possibly qualified property name
QueryParameters getQueryParameters()
Set getQuerySpaces()
CriteriaImpl getRootCriteria()
String getRootSQLALias()
String getSQLAlias(Criteria criteria, String propertyName)
Get the root table alias of an entity, taking into account the qualifier of the property path
String getSQLAlias(Criteria criteria)
Get the root table alias of an entity
int getSQLAliasCount()
String getSelect()
Type getType(Criteria subcriteria, String propertyName)
Get the type of a property path, ignoring projection aliases
Type getTypeUsingProjection(Criteria subcriteria, String propertyName)
Get the type of a property path
TypedValue getTypedIdentifierValue(Criteria subcriteria, Object value)
TypedValue getTypedValue(Criteria subcriteria, String propertyName, Object value)
Get the a typed value for the given property value.
String getWhereCondition()
String getWithClause(String path)
boolean hasProjection()
boolean isJoin(String path)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.criterion.CriteriaQuery

Constants

public static final String ROOT_SQL_ALIAS

Constant Value: "this_"

Public Constructors

public CriteriaQueryTranslator (SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias, CriteriaQuery outerQuery)

public CriteriaQueryTranslator (SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias)

Public Methods

public String[] findColumns (String propertyName, Criteria subcriteria)

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

public String generateSQLAlias ()

public String getColumn (Criteria criteria, String propertyName)

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

public String[] getColumns (String propertyName, Criteria subcriteria)

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

public String[] getColumnsUsingProjection (Criteria subcriteria, String propertyName)

Get the names of the columns constrained by this criterion.

public Criteria getCriteria (String path)

public String getEntityName (Criteria criteria)

Get the entity name of an entity

public String getEntityName (Criteria subcriteria, String propertyName)

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

public SessionFactoryImplementor getFactory ()

public String getGroupBy ()

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 int getJoinType (String path)

public String getOrderBy ()

public String[] getProjectedAliases ()

public String[] getProjectedColumnAliases ()

public Type[] getProjectedTypes ()

public String getPropertyName (String propertyName)

Get the property name, given a possibly qualified property name

public QueryParameters getQueryParameters ()

public Set getQuerySpaces ()

public CriteriaImpl getRootCriteria ()

public String getRootSQLALias ()

public String getSQLAlias (Criteria criteria, String propertyName)

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

public String getSQLAlias (Criteria criteria)

Get the root table alias of an entity

public int getSQLAliasCount ()

public String getSelect ()

public Type getType (Criteria subcriteria, String propertyName)

Get the type of a property path, ignoring projection aliases

public Type getTypeUsingProjection (Criteria subcriteria, String propertyName)

Get the type of a property path

public TypedValue getTypedIdentifierValue (Criteria subcriteria, Object value)

public TypedValue getTypedValue (Criteria subcriteria, String propertyName, Object value)

Get the a typed value for the given property value.

public String getWhereCondition ()

public String getWithClause (String path)

public boolean hasProjection ()

public boolean isJoin (String path)