站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

CriteriaQueryTranslator (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.loader.criteria
Class CriteriaQueryTranslator

java.lang.Object
  extended byorg.hibernate.loader.criteria.CriteriaQueryTranslator
All Implemented Interfaces:
CriteriaQuery

public class CriteriaQueryTranslator
extends Object
implements CriteriaQuery

Author:
Gavin King

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

ROOT_SQL_ALIAS

public static final String ROOT_SQL_ALIAS
See Also:
Constant Field Values
Constructor Detail

CriteriaQueryTranslator

public CriteriaQueryTranslator(SessionFactoryImplementor factory,
                               CriteriaImpl criteria,
                               String rootEntityName,
                               String rootSQLAlias,
                               CriteriaQuery outerQuery)
                        throws HibernateException

CriteriaQueryTranslator

public CriteriaQueryTranslator(SessionFactoryImplementor factory,
                               CriteriaImpl criteria,
                               String rootEntityName,
                               String rootSQLAlias)
                        throws HibernateException
Method Detail

generateSQLAlias

public String generateSQLAlias()
Specified by:
generateSQLAlias in interface CriteriaQuery

getRootSQLALias

public String getRootSQLALias()

isJoin

public boolean isJoin(String path)

getJoinType

public int getJoinType(String path)

getCriteria

public Criteria getCriteria(String path)

getQuerySpaces

public Set getQuerySpaces()

getSQLAliasCount

public int getSQLAliasCount()

getRootCriteria

public CriteriaImpl getRootCriteria()

getQueryParameters

public QueryParameters getQueryParameters()

hasProjection

public boolean hasProjection()

getGroupBy

public String getGroupBy()

getSelect

public String getSelect()

getProjectedTypes

public Type[] getProjectedTypes()

getProjectedColumnAliases

public String[] getProjectedColumnAliases()

getProjectedAliases

public String[] getProjectedAliases()

getWhereCondition

public String getWhereCondition()

getOrderBy

public String getOrderBy()

getFactory

public SessionFactoryImplementor getFactory()
Specified by:
getFactory in interface CriteriaQuery

getSQLAlias

public String getSQLAlias(Criteria criteria)
Description copied from interface: CriteriaQuery
Get the root table alias of an entity

Specified by:
getSQLAlias in interface CriteriaQuery

getEntityName

public String getEntityName(Criteria criteria)
Description copied from interface: CriteriaQuery
Get the entity name of an entity

Specified by:
getEntityName in interface CriteriaQuery

getColumn

public String getColumn(Criteria criteria,
                        String propertyName)
Description copied from interface: CriteriaQuery
Get the names of the columns mapped by a property path, ignoring projection aliases

Specified by:
getColumn in interface CriteriaQuery

getColumnsUsingProjection

public String[] getColumnsUsingProjection(Criteria subcriteria,
                                          String propertyName)
                                   throws HibernateException
Get the names of the columns constrained by this criterion.

Specified by:
getColumnsUsingProjection in interface CriteriaQuery
Throws:
HibernateException

getIdentifierColumns

public String[] getIdentifierColumns(Criteria subcriteria)
Description copied from interface: CriteriaQuery
Get the identifier column names of this entity

Specified by:
getIdentifierColumns in interface CriteriaQuery

getIdentifierType

public Type getIdentifierType(Criteria subcriteria)
Description copied from interface: CriteriaQuery
Get the identifier type of this entity

Specified by:
getIdentifierType in interface CriteriaQuery

getTypedIdentifierValue

public TypedValue getTypedIdentifierValue(Criteria subcriteria,
                                          Object value)
Specified by:
getTypedIdentifierValue in interface CriteriaQuery

getTypeUsingProjection

public Type getTypeUsingProjection(Criteria subcriteria,
                                   String propertyName)
                            throws HibernateException
Description copied from interface: CriteriaQuery
Get the type of a property path

Specified by:
getTypeUsingProjection in interface CriteriaQuery
Throws:
HibernateException

getType

public Type getType(Criteria subcriteria,
                    String propertyName)
             throws HibernateException
Description copied from interface: CriteriaQuery
Get the type of a property path, ignoring projection aliases

Specified by:
getType in interface CriteriaQuery
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:
getTypedValue in interface CriteriaQuery
Throws:
HibernateException

getEntityName

public String getEntityName(Criteria subcriteria,
                            String propertyName)
Description copied from interface: CriteriaQuery
Get the entity name of an entity, taking into account the qualifier of the property path

Specified by:
getEntityName in interface CriteriaQuery

getSQLAlias

public String getSQLAlias(Criteria criteria,
                          String propertyName)
Description copied from interface: CriteriaQuery
Get the root table alias of an entity, taking into account the qualifier of the property path

Specified by:
getSQLAlias in interface CriteriaQuery

getPropertyName

public String getPropertyName(String propertyName)
Description copied from interface: CriteriaQuery
Get the property name, given a possibly qualified property name

Specified by:
getPropertyName in interface CriteriaQuery