Java org.hibernate Criteria fields, constructors, methods, implement or subclass

Example usage for Java org.hibernate Criteria fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.hibernate Criteria.

The text is from its open source code.

Implementation

org.hibernate.Criteria has the following implementations.
Click this link to see all its implementation.

Method

Criteriaadd(Criterion criterion)
Add a Criterion restriction to constrain the results to be retrieved.
CriteriaaddOrder(Order order)
Add an Order ordering to the result set.
CriteriacreateAlias(String associationPath, String alias)
Join an association, assigning an alias to the joined association.
CriteriacreateAlias(String associationPath, String alias, JoinType joinType)
Join an association using the specified join-type, assigning an alias to the joined association.
CriteriacreateAlias(String associationPath, String alias, int joinType)
Join an association using the specified join-type, assigning an alias to the joined association.
CriteriacreateAlias(String associationPath, String alias, JoinType joinType, Criterion withClause)
Join an association using the specified join-type, assigning an alias to the joined association.
CriteriacreateAlias(String associationPath, String alias, int joinType, Criterion withClause)
Join an association using the specified join-type, assigning an alias to the joined association.
CriteriacreateCriteria(String associationPath)
Create a new Criteria, "rooted" at the associated entity.
CriteriacreateCriteria(String associationPath, JoinType joinType)
Create a new Criteria, "rooted" at the associated entity, using the specified join type.
CriteriacreateCriteria(String associationPath, int joinType)
Create a new Criteria, "rooted" at the associated entity, using the specified join type.
CriteriacreateCriteria(String associationPath, String alias)
Create a new Criteria, "rooted" at the associated entity, assigning the given alias.
CriteriacreateCriteria(String associationPath, String alias, JoinType joinType)
Create a new Criteria, "rooted" at the associated entity, assigning the given alias and using the specified join type.
CriteriacreateCriteria(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.
CriteriacreateCriteria(String associationPath, String alias, JoinType joinType, Criterion withClause)
Create a new Criteria, "rooted" at the associated entity, assigning the given alias and using the specified join type.
CriteriacreateCriteria(String associationPath, String alias, int joinType, Criterion withClause)
Create a new Criteria, "rooted" at the associated entity, assigning the given alias and using the specified join type.
StringgetAlias()
Get the alias of the entity encapsulated by this criteria instance.
Listlist()
Get the results.
ScrollableResultsscroll()
Get the results as an instance of ScrollableResults .
ScrollableResultsscroll(ScrollMode scrollMode)
Get the results as an instance of ScrollableResults based on the given scroll mode.
CriteriasetCacheable(boolean cacheable)
Enable caching of this query result, provided query caching is enabled for the underlying session factory.
CriteriasetCacheMode(CacheMode cacheMode)
Override the cache mode for this particular query.
CriteriasetCacheRegion(String cacheRegion)
Set the name of the cache region to use for query result caching.
CriteriasetComment(String comment)
Add a comment to the generated SQL.
CriteriasetFetchMode(String associationPath, FetchMode mode)
Specify an association fetching strategy for an association or a collection of values.
CriteriasetFetchSize(int fetchSize)
Set a fetch size for the underlying JDBC query.
CriteriasetFirstResult(int firstResult)
Set the first result to be retrieved.
CriteriasetFlushMode(FlushMode flushMode)
Override the flush mode for this particular query.
CriteriasetLockMode(LockMode lockMode)
Set the lock mode of the current entity.
CriteriasetMaxResults(int maxResults)
Set a limit upon the number of objects to be retrieved.
CriteriasetProjection(Projection projection)
Used to specify that the query results will be a projection (scalar in nature).
CriteriasetReadOnly(boolean readOnly)
Set the read-only/modifiable mode for entities and proxies loaded by this Criteria.
CriteriasetResultTransformer(ResultTransformer resultTransformer)
Set a strategy for handling the query results.
CriteriasetTimeout(int timeout)
Set a timeout for the underlying JDBC query.
ObjectuniqueResult()
Convenience method to return a single instance that matches the query, or null if the query returns no results.