public interface BuildableCriteria extends org.hibernate.Criteria
Fields inherited from class | Fields |
---|---|
interface org.hibernate.Criteria |
ROOT_ALIAS, ALIAS_TO_ENTITY_MAP, ROOT_ENTITY, DISTINCT_ROOT_ENTITY, PROJECTION, INNER_JOIN, FULL_JOIN, LEFT_JOIN |
Type Params | Return Type | Name and description |
---|---|---|
|
public BuildableCriteria |
cache(boolean cache) Whether to cache the query |
|
public java.lang.Object |
get(groovy.lang.Closure closure) Defines and executes a get query ( a single result) in a single call. |
|
public java.lang.Class |
getTargetClass()
|
|
public BuildableCriteria |
join(java.lang.String property) Whether to join on an association |
|
public BuildableCriteria |
join(java.lang.String property, jakarta.persistence.criteria.JoinType joinType) Whether to join on an association |
|
public java.lang.Object |
list(groovy.lang.Closure closure) Defines and executes a list query in a single call. |
|
public java.lang.Object |
list(java.util.Map params, groovy.lang.Closure closure) Defines and executes a list query in a single call. |
|
public java.lang.Object |
listDistinct(groovy.lang.Closure closure) Defines and executes a list distinct query in a single call. |
|
public BuildableCriteria |
readOnly(boolean readOnly) Whether to cache the query should be readOnly |
|
public java.lang.Object |
scroll(groovy.lang.Closure closure) Defines and executes a scroll query in a single call. |
|
public BuildableCriteria |
select(java.lang.String property) Whether to select on an association |
Methods inherited from class | Name |
---|---|
interface org.hibernate.Criteria |
org.hibernate.Criteria#setTimeout(int), org.hibernate.Criteria#getAlias(), org.hibernate.Criteria#setFetchSize(int), org.hibernate.Criteria#setLockMode(java.lang.String, org.hibernate.LockMode), org.hibernate.Criteria#setLockMode(org.hibernate.LockMode), org.hibernate.Criteria#setProjection(org.hibernate.criterion.Projection), org.hibernate.Criteria#addOrder(org.hibernate.criterion.Order), org.hibernate.Criteria#setFetchMode(java.lang.String, org.hibernate.FetchMode), org.hibernate.Criteria#createCriteria(java.lang.String, java.lang.String, org.hibernate.sql.JoinType), org.hibernate.Criteria#createCriteria(java.lang.String, java.lang.String), org.hibernate.Criteria#createCriteria(java.lang.String, int), org.hibernate.Criteria#createCriteria(java.lang.String, java.lang.String, int), org.hibernate.Criteria#createCriteria(java.lang.String, java.lang.String, org.hibernate.sql.JoinType, org.hibernate.criterion.Criterion), org.hibernate.Criteria#createCriteria(java.lang.String, java.lang.String, int, org.hibernate.criterion.Criterion), org.hibernate.Criteria#createCriteria(java.lang.String, org.hibernate.sql.JoinType), org.hibernate.Criteria#createCriteria(java.lang.String), org.hibernate.Criteria#setResultTransformer(org.hibernate.transform.ResultTransformer), org.hibernate.Criteria#setFirstResult(int), org.hibernate.Criteria#isReadOnlyInitialized(), org.hibernate.Criteria#setCacheable(boolean), org.hibernate.Criteria#setCacheRegion(java.lang.String), org.hibernate.Criteria#addQueryHint(java.lang.String), org.hibernate.Criteria#setFlushMode(org.hibernate.FlushMode), org.hibernate.Criteria#setCacheMode(org.hibernate.CacheMode), org.hibernate.Criteria#scroll(), org.hibernate.Criteria#scroll(org.hibernate.ScrollMode), org.hibernate.Criteria#uniqueResult(), org.hibernate.Criteria#createAlias(java.lang.String, java.lang.String), org.hibernate.Criteria#createAlias(java.lang.String, java.lang.String, int), org.hibernate.Criteria#createAlias(java.lang.String, java.lang.String, org.hibernate.sql.JoinType, org.hibernate.criterion.Criterion), org.hibernate.Criteria#createAlias(java.lang.String, java.lang.String, int, org.hibernate.criterion.Criterion), org.hibernate.Criteria#createAlias(java.lang.String, java.lang.String, org.hibernate.sql.JoinType), org.hibernate.Criteria#setMaxResults(int), org.hibernate.Criteria#add(org.hibernate.criterion.Criterion), org.hibernate.Criteria#list(), org.hibernate.Criteria#setReadOnly(boolean), org.hibernate.Criteria#isReadOnly(), org.hibernate.Criteria#setComment(java.lang.String) |
Whether to cache the query
cache
- True if the query should be cachedDefines and executes a get query ( a single result) in a single call. Example: Foo.createCriteria().get { }
closure
- The closure to execute
Whether to join on an association
property
- The property to join onWhether to join on an association
property
- The property to join onjoinType
- The type of joinDefines and executes a list query in a single call. Example: Foo.createCriteria().list { }
closure
- The closure to executeDefines and executes a list query in a single call. Example: Foo.createCriteria().list { }
params
- pagination parameters (max, offset, etc...)closure
- The closure to executeDefines and executes a list distinct query in a single call. Example: Foo.createCriteria().listDistinct { }
closure
- The closure to executeWhether to cache the query should be readOnly
readOnly
- True if the results should be read-onlyDefines and executes a scroll query in a single call. Example: Foo.createCriteria().scroll { }
closure
- The closure to executeWhether to select on an association
property
- The property to join on