Package org.hibernate.loader.criteria
Class CriteriaQueryTranslator
java.lang.Object
org.hibernate.loader.criteria.CriteriaQueryTranslator
- All Implemented Interfaces:
CriteriaQuery
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias) CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias, CriteriaQuery outerQuery) -
Method Summary
Modifier and TypeMethodDescriptionString[]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.Get the names of the columns mapped by a property path, ignoring projection aliasesString[]getColumns(String propertyName, Criteria subcriteria) Get the names of the columns mapped by a property path, ignoring projection aliasesString[]getColumnsUsingProjection(Criteria subcriteria, String propertyName) Get the names of the columns constrained by this criterion.getCriteria(String path) getEntityName(Criteria criteria) Get the entity name of an entitygetEntityName(Criteria subcriteria, String propertyName) Get the entity name of an entity, taking into account the qualifier of the property pathString[]getIdentifierColumns(Criteria subcriteria) Get the identifier column names of this entitygetIdentifierType(Criteria subcriteria) Get the identifier type of this entityintgetJoinType(String path) String[]String[]Type[]getPropertyName(String propertyName) Get the property name, given a possibly qualified property namegetSQLAlias(Criteria criteria) Get the root table alias of an entitygetSQLAlias(Criteria criteria, String propertyName) Get the root table alias of an entity, taking into account the qualifier of the property pathintGet the type of a property path, ignoring projection aliasesgetTypedIdentifierValue(Criteria subcriteria, Object value) getTypedValue(Criteria subcriteria, String propertyName, Object value) Get the a typed value for the given property value.getTypeUsingProjection(Criteria subcriteria, String propertyName) Get the type of a property pathgetWithClause(String path) booleanbooleanhasRestriction(String path) boolean
-
Field Details
-
ROOT_SQL_ALIAS
- See Also:
-
-
Constructor Details
-
CriteriaQueryTranslator
public CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias, CriteriaQuery outerQuery) throws HibernateException - Throws:
HibernateException
-
CriteriaQueryTranslator
public CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias) throws HibernateException - Throws:
HibernateException
-
-
Method Details
-
generateSQLAlias
- Specified by:
generateSQLAliasin interfaceCriteriaQuery
-
getRootSQLALias
-
isJoin
-
getJoinType
-
getCriteria
-
getQuerySpaces
-
getSQLAliasCount
public int getSQLAliasCount() -
getRootCriteria
-
getQueryParameters
-
hasProjection
public boolean hasProjection() -
getGroupBy
-
getSelect
-
getProjectedTypes
-
getProjectedColumnAliases
-
getProjectedAliases
-
getWhereCondition
-
getOrderBy
-
getFactory
- Specified by:
getFactoryin interfaceCriteriaQuery
-
getSQLAlias
Description copied from interface:CriteriaQueryGet the root table alias of an entity- Specified by:
getSQLAliasin interfaceCriteriaQuery
-
getEntityName
Description copied from interface:CriteriaQueryGet the entity name of an entity- Specified by:
getEntityNamein interfaceCriteriaQuery
-
getColumn
Description copied from interface:CriteriaQueryGet the names of the columns mapped by a property path, ignoring projection aliases- Specified by:
getColumnin interfaceCriteriaQuery
-
getColumnsUsingProjection
public String[] getColumnsUsingProjection(Criteria subcriteria, String propertyName) throws HibernateException Get the names of the columns constrained by this criterion.- Specified by:
getColumnsUsingProjectionin interfaceCriteriaQuery- Throws:
HibernateException
-
getIdentifierColumns
Description copied from interface:CriteriaQueryGet the identifier column names of this entity- Specified by:
getIdentifierColumnsin interfaceCriteriaQuery
-
getIdentifierType
Description copied from interface:CriteriaQueryGet the identifier type of this entity- Specified by:
getIdentifierTypein interfaceCriteriaQuery
-
getTypedIdentifierValue
- Specified by:
getTypedIdentifierValuein interfaceCriteriaQuery
-
getColumns
Description copied from interface:CriteriaQueryGet the names of the columns mapped by a property path, ignoring projection aliases- Specified by:
getColumnsin interfaceCriteriaQuery- Throws:
HibernateException
-
findColumns
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.- Specified by:
findColumnsin interfaceCriteriaQuery- Throws:
HibernateException
-
getTypeUsingProjection
public Type getTypeUsingProjection(Criteria subcriteria, String propertyName) throws HibernateException Description copied from interface:CriteriaQueryGet the type of a property path- Specified by:
getTypeUsingProjectionin interfaceCriteriaQuery- Throws:
HibernateException
-
getType
Description copied from interface:CriteriaQueryGet the type of a property path, ignoring projection aliases- Specified by:
getTypein interfaceCriteriaQuery- Throws:
HibernateException
-
getTypedValue
public TypedValue getTypedValue(Criteria subcriteria, String propertyName, Object value) throws HibernateException Get the a typed value for the given property value.- Specified by:
getTypedValuein interfaceCriteriaQuery- Throws:
HibernateException
-
getEntityName
Description copied from interface:CriteriaQueryGet the entity name of an entity, taking into account the qualifier of the property path- Specified by:
getEntityNamein interfaceCriteriaQuery
-
getSQLAlias
Description copied from interface:CriteriaQueryGet the root table alias of an entity, taking into account the qualifier of the property path- Specified by:
getSQLAliasin interfaceCriteriaQuery
-
getPropertyName
Description copied from interface:CriteriaQueryGet the property name, given a possibly qualified property name- Specified by:
getPropertyNamein interfaceCriteriaQuery
-
getWithClause
-
hasRestriction
-