public class CriteriaQueryTranslator extends Object implements CriteriaQuery
| Modifier and Type | Field and Description |
|---|---|
static String |
ROOT_SQL_ALIAS |
| Constructor and Description |
|---|
CriteriaQueryTranslator(SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
String rootSQLAlias) |
CriteriaQueryTranslator(SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
String rootSQLAlias,
CriteriaQuery outerQuery) |
| Modifier and Type | Method and Description |
|---|---|
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
|
JoinType |
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 |
getSelect() |
String |
getSQLAlias(Criteria criteria)
Get the root table alias of an entity
|
String |
getSQLAlias(Criteria criteria,
String propertyName)
Get the root table alias of an entity, taking into account
the qualifier of the property path
|
int |
getSQLAliasCount() |
Type |
getType(Criteria subcriteria,
String propertyName)
Get the type of a property path, ignoring projection aliases
|
TypedValue |
getTypedIdentifierValue(Criteria subcriteria,
Object value) |
TypedValue |
getTypedValue(Criteria subcriteria,
String propertyName,
Object value)
Get the a typed value for the given property value.
|
Type |
getTypeUsingProjection(Criteria subcriteria,
String propertyName)
Get the type of a property path
|
String |
getWhereCondition() |
String |
getWithClause(String path) |
boolean |
hasProjection() |
boolean |
hasRestriction(String path) |
boolean |
isJoin(String path) |
public static final String ROOT_SQL_ALIAS
public CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias, CriteriaQuery outerQuery) throws HibernateException
HibernateExceptionpublic CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias) throws HibernateException
HibernateExceptionpublic String generateSQLAlias()
generateSQLAlias in interface CriteriaQuerypublic String getRootSQLALias()
public boolean isJoin(String path)
public Set getQuerySpaces()
public int getSQLAliasCount()
public CriteriaImpl getRootCriteria()
public QueryParameters getQueryParameters()
public boolean hasProjection()
public String getGroupBy()
public String getSelect()
public Type[] getProjectedTypes()
public String[] getProjectedColumnAliases()
public String[] getProjectedAliases()
public String getWhereCondition()
public String getOrderBy()
public SessionFactoryImplementor getFactory()
getFactory in interface CriteriaQuerypublic String getSQLAlias(Criteria criteria)
CriteriaQuerygetSQLAlias in interface CriteriaQuerypublic String getEntityName(Criteria criteria)
CriteriaQuerygetEntityName in interface CriteriaQuerypublic String getColumn(Criteria criteria, String propertyName)
CriteriaQuerygetColumn in interface CriteriaQuerypublic String[] getColumnsUsingProjection(Criteria subcriteria, String propertyName) throws HibernateException
getColumnsUsingProjection in interface CriteriaQueryHibernateExceptionpublic String[] getIdentifierColumns(Criteria subcriteria)
CriteriaQuerygetIdentifierColumns in interface CriteriaQuerypublic Type getIdentifierType(Criteria subcriteria)
CriteriaQuerygetIdentifierType in interface CriteriaQuerypublic TypedValue getTypedIdentifierValue(Criteria subcriteria, Object value)
getTypedIdentifierValue in interface CriteriaQuerypublic String[] getColumns(String propertyName, Criteria subcriteria) throws HibernateException
CriteriaQuerygetColumns in interface CriteriaQueryHibernateExceptionpublic String[] findColumns(String propertyName, Criteria subcriteria) throws HibernateException
findColumns in interface CriteriaQueryHibernateExceptionpublic Type getTypeUsingProjection(Criteria subcriteria, String propertyName) throws HibernateException
CriteriaQuerygetTypeUsingProjection in interface CriteriaQueryHibernateExceptionpublic Type getType(Criteria subcriteria, String propertyName) throws HibernateException
CriteriaQuerygetType in interface CriteriaQueryHibernateExceptionpublic TypedValue getTypedValue(Criteria subcriteria, String propertyName, Object value) throws HibernateException
getTypedValue in interface CriteriaQueryHibernateExceptionpublic String getEntityName(Criteria subcriteria, String propertyName)
CriteriaQuerygetEntityName in interface CriteriaQuerypublic String getSQLAlias(Criteria criteria, String propertyName)
CriteriaQuerygetSQLAlias in interface CriteriaQuerypublic String getPropertyName(String propertyName)
CriteriaQuerygetPropertyName in interface CriteriaQuerypublic boolean hasRestriction(String path)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.