Package org.hibernate.criterion
Interface CriteriaQuery
- All 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.
-
Method Summary
Modifier and TypeMethodDescriptionString[]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.Get the names of the columns mapped by a property path, ignoring projection aliasesString[]getColumns(String propertyPath, Criteria criteria) Get the names of the columns mapped by a property path, ignoring projection aliasesString[]getColumnsUsingProjection(Criteria criteria, String propertyPath) Get the names of the columns mapped by a property pathgetEntityName(Criteria criteria) Get the entity name of an entitygetEntityName(Criteria criteria, String propertyPath) 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 entitygetPropertyName(String propertyName) Get the property name, given a possibly qualified property namegetSQLAlias(Criteria subcriteria) Get the root table alias of an entitygetSQLAlias(Criteria criteria, String propertyPath) Get the root table alias of an entity, taking into account the qualifier of the property pathGet the type of a property path, ignoring projection aliasesgetTypedIdentifierValue(Criteria subcriteria, Object value) getTypedValue(Criteria criteria, String propertyPath, Object value) Get the a typed value for the given property value.getTypeUsingProjection(Criteria criteria, String propertyPath) Get the type of a property path
-
Method Details
-
getFactory
SessionFactoryImplementor getFactory() -
getColumn
Get the names of the columns mapped by a property path, ignoring projection aliases- Throws:
QueryException- if the property maps to more than 1 columnHibernateException
-
getColumns
Get the names of the columns mapped by a property path, ignoring projection aliases- Throws:
HibernateException
-
findColumns
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.- Throws:
HibernateException
-
getType
Get the type of a property path, ignoring projection aliases- Throws:
HibernateException
-
getColumnsUsingProjection
String[] getColumnsUsingProjection(Criteria criteria, String propertyPath) throws HibernateException Get the names of the columns mapped by a property path- Throws:
HibernateException
-
getTypeUsingProjection
Get the type of a property path- Throws:
HibernateException
-
getTypedValue
TypedValue getTypedValue(Criteria criteria, String propertyPath, Object value) throws HibernateException Get the a typed value for the given property value.- Throws:
HibernateException
-
getEntityName
Get the entity name of an entity -
getEntityName
Get the entity name of an entity, taking into account the qualifier of the property path -
getSQLAlias
Get the root table alias of an entity -
getSQLAlias
Get the root table alias of an entity, taking into account the qualifier of the property path -
getPropertyName
Get the property name, given a possibly qualified property name -
getIdentifierColumns
Get the identifier column names of this entity -
getIdentifierType
Get the identifier type of this entity -
getTypedIdentifierValue
-
generateSQLAlias
String generateSQLAlias()
-