|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.loader.criteria.CriteriaQueryTranslator
public class 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[] |
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)
|
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
HibernateException
public CriteriaQueryTranslator(SessionFactoryImplementor factory, CriteriaImpl criteria, String rootEntityName, String rootSQLAlias) throws HibernateException
HibernateException
Method Detail |
---|
public String generateSQLAlias()
generateSQLAlias
in interface CriteriaQuery
public String getRootSQLALias()
public boolean isJoin(String path)
public JoinType 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 String[] getColumns(String propertyName, Criteria subcriteria) throws HibernateException
CriteriaQuery
getColumns
in interface CriteriaQuery
HibernateException
public String[] findColumns(String propertyName, Criteria subcriteria) throws HibernateException
findColumns
in interface CriteriaQuery
HibernateException
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
public String getWithClause(String path)
public boolean hasRestriction(String path)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |