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

Uses of Interface org.hibernate.Criteria (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


Uses of Interface
org.hibernate.Criteria

Packages that use Criteria
org.hibernate This package defines the central Hibernate APIs. 
org.hibernate.criterion A framework for defining restriction criteria and order criteria. 
org.hibernate.impl This package contains implementations of the central Hibernate APIs, especially the Hibernate session. 
org.hibernate.loader.criteria This package defines the criteria query compiler and loader  
 

Uses of Criteria in org.hibernate
 

Methods in org.hibernate that return Criteria
 Criteria StatelessSession.createCriteria(Class persistentClass)
          Create a new Criteria instance, for the given entity class, or a superclass of an entity class.
 Criteria StatelessSession.createCriteria(Class persistentClass, String alias)
          Create a new Criteria instance, for the given entity class, or a superclass of an entity class, with the given alias.
 Criteria StatelessSession.createCriteria(String entityName)
          Create a new Criteria instance, for the given entity name.
 Criteria StatelessSession.createCriteria(String entityName, String alias)
          Create a new Criteria instance, for the given entity name, with the given alias.
 Criteria Session.createCriteria(Class persistentClass)
          Create a new Criteria instance, for the given entity class, or a superclass of an entity class.
 Criteria Session.createCriteria(Class persistentClass, String alias)
          Create a new Criteria instance, for the given entity class, or a superclass of an entity class, with the given alias.
 Criteria Session.createCriteria(String entityName)
          Create a new Criteria instance, for the given entity name.
 Criteria Session.createCriteria(String entityName, String alias)
          Create a new Criteria instance, for the given entity name, with the given alias.
 Criteria Criteria.setProjection(Projection projection)
          Used to specify that the query results will be a projection (scalar in nature).
 Criteria Criteria.add(Criterion criterion)
          Add a restriction to constrain the results to be retrieved.
 Criteria Criteria.addOrder(Order order)
          Add an ordering to the result set.
 Criteria Criteria.setFetchMode(String associationPath, FetchMode mode)
          Specify an association fetching strategy for an association or a collection of values.
 Criteria Criteria.setLockMode(LockMode lockMode)
          Set the lock mode of the current entity
 Criteria Criteria.setLockMode(String alias, LockMode lockMode)
          Set the lock mode of the aliased entity
 Criteria Criteria.createAlias(String associationPath, String alias)
          Join an association, assigning an alias to the joined association.
 Criteria Criteria.createAlias(String associationPath, String alias, int joinType)
          Join an association using the specified join-type, assigning an alias to the joined association.
 Criteria Criteria.createCriteria(String associationPath)
          Create a new Criteria, "rooted" at the associated entity.
 Criteria Criteria.createCriteria(String associationPath, int joinType)
          Create a new Criteria, "rooted" at the associated entity, using the specified join type.
 Criteria Criteria.createCriteria(String associationPath, String alias)
          Create a new Criteria, "rooted" at the associated entity, assigning the given alias.
 Criteria Criteria.createCriteria(String associationPath, String alias, int joinType)
          Create a new Criteria, "rooted" at the associated entity, assigning the given alias and using the specified join type.
 Criteria Criteria.setResultTransformer(ResultTransformer resultTransformer)
          Set a strategy for handling the query results.
 Criteria Criteria.setMaxResults(int maxResults)
          Set a limit upon the number of objects to be retrieved.
 Criteria Criteria.setFirstResult(int firstResult)
          Set the first result to be retrieved.
 Criteria Criteria.setFetchSize(int fetchSize)
          Set a fetch size for the underlying JDBC query.
 Criteria Criteria.setTimeout(int timeout)
          Set a timeout for the underlying JDBC query.
 Criteria Criteria.setCacheable(boolean cacheable)
          Enable caching of this query result, provided query caching is enabled for the underlying session factory.
 Criteria Criteria.setCacheRegion(String cacheRegion)
          Set the name of the cache region to use for query result caching.
 Criteria Criteria.setComment(String comment)
          Add a comment to the generated SQL.
 Criteria Criteria.setFlushMode(FlushMode flushMode)
          Override the flush mode for this particular query.
 Criteria Criteria.setCacheMode(CacheMode cacheMode)
          Override the cache mode for this particular query.
 

Uses of Criteria in org.hibernate.criterion
 

Methods in org.hibernate.criterion that return Criteria
 Criteria DetachedCriteria.getExecutableCriteria(Session session)
          Get an executable instance of Criteria, to actually run the query.
 

Methods in org.hibernate.criterion with parameters of type Criteria
protected abstract  String SubqueryExpression.toLeftSqlString(Criteria criteria, CriteriaQuery outerQuery)
           
 String SubqueryExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] SubqueryExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String SQLProjection.toSqlString(Criteria criteria, int loc, CriteriaQuery criteriaQuery)
           
 String SQLProjection.toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] SQLProjection.getTypes(Criteria crit, CriteriaQuery criteriaQuery)
           
 Type[] SQLProjection.getTypes(String alias, Criteria crit, CriteriaQuery criteriaQuery)
           
 String SQLCriterion.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] SQLCriterion.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String SizeExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] SizeExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] SimpleSubqueryExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
protected  String SimpleSubqueryExpression.toLeftSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] SimpleProjection.getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery)
           
 String SimpleProjection.toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String SimpleExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] SimpleExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] RowCountProjection.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String RowCountProjection.toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery)
           
protected  String PropertySubqueryExpression.toLeftSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] PropertyProjection.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String PropertyProjection.toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery)
           
 String PropertyProjection.toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String PropertyExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] PropertyExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] ProjectionList.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String ProjectionList.toSqlString(Criteria criteria, int loc, CriteriaQuery criteriaQuery)
           
 String ProjectionList.toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] ProjectionList.getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery)
           
 String Projection.toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery)
          Render the SQL fragment
 String Projection.toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
          Render the SQL fragment to be used in the group by clause
 Type[] Projection.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
          Return types returned by the rendered SQL fragment
 Type[] Projection.getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery)
          Return types for a particular user-visible alias
 String Order.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
          Render the SQL fragment
 String NullExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] NullExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String NotNullExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] NotNullExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String NotExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] NotExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] NaturalIdentifier.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String NaturalIdentifier.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] LogicalExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String LogicalExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String LikeExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] LikeExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] Junction.getTypedValues(Criteria crit, CriteriaQuery criteriaQuery)
           
 String Junction.toSqlString(Criteria crit, CriteriaQuery criteriaQuery)
           
 String InExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] InExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String IlikeExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] IlikeExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] IdentifierProjection.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String IdentifierProjection.toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery)
           
 String IdentifierProjection.toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String IdentifierEqExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] IdentifierEqExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
protected  String ExistsSubqueryExpression.toLeftSqlString(Criteria criteria, CriteriaQuery outerQuery)
           
 String Example.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] Example.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
protected  void Example.addComponentTypedValues(String path, Object component, AbstractComponentType type, List list, Criteria criteria, CriteriaQuery criteriaQuery)
           
protected  void Example.appendPropertyCondition(String propertyName, Object propertyValue, Criteria criteria, CriteriaQuery cq, StringBuffer buf)
           
protected  void Example.appendComponentCondition(String path, Object component, AbstractComponentType type, Criteria criteria, CriteriaQuery criteriaQuery, StringBuffer buf)
           
 String Distinct.toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery)
           
 String Distinct.toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] Distinct.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] Distinct.getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery)
           
 String Criterion.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
          Render the SQL fragment
 TypedValue[] Criterion.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
          Return typed values for all parameters in the rendered SQL fragment
 String CriteriaQuery.getColumn(Criteria criteria, String propertyPath)
          Get the names of the columns mapped by a property path, ignoring projection aliases
 Type CriteriaQuery.getType(Criteria criteria, String propertyPath)
          Get the type of a property path, ignoring projection aliases
 String[] CriteriaQuery.getColumnsUsingProjection(Criteria criteria, String propertyPath)
          Get the names of the columns mapped by a property path
 Type CriteriaQuery.getTypeUsingProjection(Criteria criteria, String propertyPath)
          Get the type of a property path
 TypedValue CriteriaQuery.getTypedValue(Criteria criteria, String propertyPath, Object value)
          Get the a typed value for the given property value.
 String CriteriaQuery.getEntityName(Criteria criteria)
          Get the entity name of an entity
 String CriteriaQuery.getEntityName(Criteria criteria, String propertyPath)
          Get the entity name of an entity, taking into account the qualifier of the property path
 String CriteriaQuery.getSQLAlias(Criteria subcriteria)
          Get the root table alias of an entity
 String CriteriaQuery.getSQLAlias(Criteria criteria, String propertyPath)
          Get the root table alias of an entity, taking into account the qualifier of the property path
 String[] CriteriaQuery.getIdentifierColumns(Criteria subcriteria)
          Get the identifier column names of this entity
 Type CriteriaQuery.getIdentifierType(Criteria subcriteria)
          Get the identifier type of this entity
 TypedValue CriteriaQuery.getTypedIdentifierValue(Criteria subcriteria, Object value)
           
 Type[] CountProjection.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String CountProjection.toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery)
           
 String BetweenExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] BetweenExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] AvgProjection.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String AliasedProjection.toSqlString(Criteria criteria, int position, CriteriaQuery criteriaQuery)
           
 String AliasedProjection.toGroupSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] AliasedProjection.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] AliasedProjection.getTypes(String alias, Criteria criteria, CriteriaQuery criteriaQuery)
           
 Type[] AggregateProjection.getTypes(Criteria criteria, CriteriaQuery criteriaQuery)
           
 String AggregateProjection.toSqlString(Criteria criteria, int loc, CriteriaQuery criteriaQuery)
           
 String AbstractEmptinessExpression.toSqlString(Criteria criteria, CriteriaQuery criteriaQuery)
           
 TypedValue[] AbstractEmptinessExpression.getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery)
           
 

Constructors in org.hibernate.criterion with parameters of type Criteria
DetachedCriteria(CriteriaImpl impl, Criteria criteria)
           
 

Uses of Criteria in org.hibernate.impl
 

Classes in org.hibernate.impl that implement Criteria
 class CriteriaImpl
          Implementation of the Criteria interface
 class CriteriaImpl.Subcriteria
           
 

Methods in org.hibernate.impl that return Criteria
 Criteria StatelessSessionImpl.createCriteria(Class persistentClass, String alias)
           
 Criteria StatelessSessionImpl.createCriteria(String entityName, String alias)
           
 Criteria StatelessSessionImpl.createCriteria(Class persistentClass)
           
 Criteria StatelessSessionImpl.createCriteria(String entityName)
           
 Criteria SessionImpl.createCriteria(Class persistentClass, String alias)
           
 Criteria SessionImpl.createCriteria(String entityName, String alias)
           
 Criteria SessionImpl.createCriteria(Class persistentClass)
           
 Criteria SessionImpl.createCriteria(String entityName)
           
 Criteria CriteriaImpl.getProjectionCriteria()
           
 Criteria CriteriaImpl.add(Criteria criteriaInst, Criterion expression)
           
 Criteria CriteriaImpl.setProjection(Projection projection)
           
 Criteria CriteriaImpl.add(Criterion expression)
           
 Criteria CriteriaImpl.addOrder(Order ordering)
           
 Criteria CriteriaImpl.setFetchMode(String associationPath, FetchMode mode)
           
 Criteria CriteriaImpl.setLockMode(LockMode lockMode)
           
 Criteria CriteriaImpl.setLockMode(String alias, LockMode lockMode)
           
 Criteria CriteriaImpl.createAlias(String associationPath, String alias)
           
 Criteria CriteriaImpl.createAlias(String associationPath, String alias, int joinType)
           
 Criteria CriteriaImpl.createCriteria(String associationPath)
           
 Criteria CriteriaImpl.createCriteria(String associationPath, int joinType)
           
 Criteria CriteriaImpl.createCriteria(String associationPath, String alias)
           
 Criteria CriteriaImpl.createCriteria(String associationPath, String alias, int joinType)
           
 Criteria CriteriaImpl.setResultTransformer(ResultTransformer tupleMapper)
           
 Criteria CriteriaImpl.setMaxResults(int maxResults)
           
 Criteria CriteriaImpl.setFirstResult(int firstResult)
           
 Criteria CriteriaImpl.setFetchSize(int fetchSize)
           
 Criteria CriteriaImpl.setTimeout(int timeout)
           
 Criteria CriteriaImpl.setCacheable(boolean cacheable)
           
 Criteria CriteriaImpl.setCacheRegion(String cacheRegion)
           
 Criteria CriteriaImpl.setComment(String comment)
           
 Criteria CriteriaImpl.setFlushMode(FlushMode flushMode)
           
 Criteria CriteriaImpl.setCacheMode(CacheMode cacheMode)
           
 Criteria CriteriaImpl.Subcriteria.getParent()
           
 Criteria CriteriaImpl.Subcriteria.setLockMode(LockMode lockMode)
           
 Criteria CriteriaImpl.Subcriteria.add(Criterion expression)
           
 Criteria CriteriaImpl.Subcriteria.addOrder(Order order)
           
 Criteria CriteriaImpl.Subcriteria.createAlias(String associationPath, String alias)
           
 Criteria CriteriaImpl.Subcriteria.createAlias(String associationPath, String alias, int joinType)
           
 Criteria CriteriaImpl.Subcriteria.createCriteria(String associationPath)
           
 Criteria CriteriaImpl.Subcriteria.createCriteria(String associationPath, int joinType)
           
 Criteria CriteriaImpl.Subcriteria.createCriteria(String associationPath, String alias)
           
 Criteria CriteriaImpl.Subcriteria.createCriteria(String associationPath, String alias, int joinType)
           
 Criteria CriteriaImpl.Subcriteria.setCacheable(boolean cacheable)
           
 Criteria CriteriaImpl.Subcriteria.setCacheRegion(String cacheRegion)
           
 Criteria CriteriaImpl.Subcriteria.setFetchMode(String associationPath, FetchMode mode)
           
 Criteria CriteriaImpl.Subcriteria.setFlushMode(FlushMode flushMode)
           
 Criteria CriteriaImpl.Subcriteria.setCacheMode(CacheMode cacheMode)
           
 Criteria CriteriaImpl.Subcriteria.setFirstResult(int firstResult)
           
 Criteria CriteriaImpl.Subcriteria.setMaxResults(int maxResults)
           
 Criteria CriteriaImpl.Subcriteria.setTimeout(int timeout)
           
 Criteria CriteriaImpl.Subcriteria.setFetchSize(int fetchSize)
           
 Criteria CriteriaImpl.Subcriteria.setLockMode(String alias, LockMode lockMode)
           
 Criteria CriteriaImpl.Subcriteria.setResultTransformer(ResultTransformer resultProcessor)
           
 Criteria CriteriaImpl.Subcriteria.setComment(String comment)
           
 Criteria CriteriaImpl.Subcriteria.setProjection(Projection projection)
           
 Criteria CriteriaImpl.CriterionEntry.getCriteria()
           
 Criteria CriteriaImpl.OrderEntry.getCriteria()
           
 

Methods in org.hibernate.impl with parameters of type Criteria
 Criteria CriteriaImpl.add(Criteria criteriaInst, Criterion expression)
           
 

Uses of Criteria in org.hibernate.loader.criteria
 

Methods in org.hibernate.loader.criteria that return Criteria
 Criteria CriteriaQueryTranslator.getCriteria(String path)
           
 

Methods in org.hibernate.loader.criteria with parameters of type Criteria
 String CriteriaQueryTranslator.getSQLAlias(Criteria criteria)
           
 String CriteriaQueryTranslator.getEntityName(Criteria criteria)
           
 String CriteriaQueryTranslator.getColumn(Criteria criteria, String propertyName)
           
 String[] CriteriaQueryTranslator.getColumnsUsingProjection(Criteria subcriteria, String propertyName)
          Get the names of the columns constrained by this criterion.
 String[] CriteriaQueryTranslator.getIdentifierColumns(Criteria subcriteria)
           
 Type CriteriaQueryTranslator.getIdentifierType(Criteria subcriteria)
           
 TypedValue CriteriaQueryTranslator.getTypedIdentifierValue(Criteria subcriteria, Object value)
           
 Type CriteriaQueryTranslator.getTypeUsingProjection(Criteria subcriteria, String propertyName)
           
 Type CriteriaQueryTranslator.getType(Criteria subcriteria, String propertyName)
           
 TypedValue CriteriaQueryTranslator.getTypedValue(Criteria subcriteria, String propertyName, Object value)
          Get the a typed value for the given property value.
 String CriteriaQueryTranslator.getEntityName(Criteria subcriteria, String propertyName)
           
 String CriteriaQueryTranslator.getSQLAlias(Criteria criteria, String propertyName)