Example usage for Java org.hibernate Criteria fields, constructors, methods, implement or subclass
The text is from its open source code.
Criteria | add(Criterion criterion) Add a Criterion restriction to constrain the results to be retrieved. |
Criteria | addOrder(Order order) Add an Order ordering to the result set. |
Criteria | createAlias(String associationPath, String alias) Join an association, assigning an alias to the joined association. |
Criteria | createAlias(String associationPath, String alias, JoinType joinType) Join an association using the specified join-type, assigning an alias to the joined association. |
Criteria | createAlias(String associationPath, String alias, int joinType) Join an association using the specified join-type, assigning an alias to the joined association. |
Criteria | createAlias(String associationPath, String alias, JoinType joinType, Criterion withClause) Join an association using the specified join-type, assigning an alias to the joined association. |
Criteria | createAlias(String associationPath, String alias, int joinType, Criterion withClause) Join an association using the specified join-type, assigning an alias to the joined association. |
Criteria | createCriteria(String associationPath) Create a new Criteria, "rooted" at the associated entity. |
Criteria | createCriteria(String associationPath, JoinType joinType) Create a new Criteria, "rooted" at the associated entity, using the specified join type. |
Criteria | createCriteria(String associationPath, int joinType) Create a new Criteria, "rooted" at the associated entity, using the specified join type. |
Criteria | createCriteria(String associationPath, String alias) Create a new Criteria, "rooted" at the associated entity, assigning the given alias. |
Criteria | createCriteria(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. |
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 | createCriteria(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. |
Criteria | createCriteria(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. |
String | getAlias() Get the alias of the entity encapsulated by this criteria instance. |
List | list() Get the results. |
ScrollableResults | scroll() Get the results as an instance of ScrollableResults . |
ScrollableResults | scroll(ScrollMode scrollMode) Get the results as an instance of ScrollableResults based on the given scroll mode. |
Criteria | setCacheable(boolean cacheable) Enable caching of this query result, provided query caching is enabled for the underlying session factory. |
Criteria | setCacheMode(CacheMode cacheMode) Override the cache mode for this particular query. |
Criteria | setCacheRegion(String cacheRegion) Set the name of the cache region to use for query result caching. |
Criteria | setComment(String comment) Add a comment to the generated SQL. |
Criteria | setFetchMode(String associationPath, FetchMode mode) Specify an association fetching strategy for an association or a collection of values. |
Criteria | setFetchSize(int fetchSize) Set a fetch size for the underlying JDBC query. |
Criteria | setFirstResult(int firstResult) Set the first result to be retrieved. |
Criteria | setFlushMode(FlushMode flushMode) Override the flush mode for this particular query. |
Criteria | setLockMode(LockMode lockMode) Set the lock mode of the current entity. |
Criteria | setMaxResults(int maxResults) Set a limit upon the number of objects to be retrieved. |
Criteria | setProjection(Projection projection) Used to specify that the query results will be a projection (scalar in nature). |
Criteria | setReadOnly(boolean readOnly) Set the read-only/modifiable mode for entities and proxies loaded by this Criteria. |
Criteria | setResultTransformer(ResultTransformer resultTransformer) Set a strategy for handling the query results. |
Criteria | setTimeout(int timeout) Set a timeout for the underlying JDBC query. |
Object | uniqueResult() Convenience method to return a single instance that matches the query, or null if the query returns no results. |