|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.loader.criteria.CriteriaQueryTranslator
Field Summary | |
static String |
ROOT_SQL_ALIAS
|
Constructor Summary | |
CriteriaQueryTranslator(SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
String rootSQLAlias)
|
|
CriteriaQueryTranslator(SessionFactoryImplementor factory,
CriteriaImpl criteria,
String rootEntityName,
String rootSQLAlias,
CriteriaQuery outerQuery)
|
Method Summary | |
String |
generateSQLAlias()
|
String |
getColumn(Criteria criteria,
String propertyName)
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 |
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()
|
boolean |
hasProjection()
|
boolean |
isJoin(String path)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ROOT_SQL_ALIAS
Constructor Detail |
public CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias, CriteriaQuery outerQuery) throws HibernateException
public CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias) throws HibernateException
Method Detail |
public String generateSQLAlias()
generateSQLAlias
in interface CriteriaQuery
public String getRootSQLALias()
public boolean isJoin(String path)
public int getJoinType(String path)
public Criteria getCriteria(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 CriteriaQuery
public String getSQLAlias(Criteria criteria)
CriteriaQuery
getSQLAlias
in interface CriteriaQuery
public String getEntityName(Criteria criteria)
CriteriaQuery
getEntityName
in interface CriteriaQuery
public String getColumn(Criteria criteria, String propertyName)
CriteriaQuery
getColumn
in interface CriteriaQuery
public String[] getColumnsUsingProjection(Criteria subcriteria, String propertyName) throws HibernateException
getColumnsUsingProjection
in interface CriteriaQuery
HibernateException
public String[] getIdentifierColumns(Criteria subcriteria)
CriteriaQuery
getIdentifierColumns
in interface CriteriaQuery
public Type getIdentifierType(Criteria subcriteria)
CriteriaQuery
getIdentifierType
in interface CriteriaQuery
public TypedValue getTypedIdentifierValue(Criteria subcriteria, Object value)
getTypedIdentifierValue
in interface CriteriaQuery
public Type getTypeUsingProjection(Criteria subcriteria, String propertyName) throws HibernateException
CriteriaQuery
getTypeUsingProjection
in interface CriteriaQuery
HibernateException
public Type getType(Criteria subcriteria, String propertyName) throws HibernateException
CriteriaQuery
getType
in interface CriteriaQuery
HibernateException
public TypedValue getTypedValue(Criteria subcriteria, String propertyName, Object value) throws HibernateException
getTypedValue
in interface CriteriaQuery
HibernateException
public String getEntityName(Criteria subcriteria, String propertyName)
CriteriaQuery
getEntityName
in interface CriteriaQuery
public String getSQLAlias(Criteria criteria, String propertyName)
CriteriaQuery
getSQLAlias
in interface CriteriaQuery
public String getPropertyName(String propertyName)
CriteriaQuery
getPropertyName
in interface CriteriaQuery
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |