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, javax.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 Criteria |
allEq, and, between, cache, eq, eqAll, eqAll, eqProperty, exists, ge, geAll, geAll, geProperty, geSome, geSome, gt, gtAll, gtAll, gtProperty, gtSome, gtSome, gte, idEq, idEquals, ilike, in, in, in, in, inList, inList, inList, inList, isEmpty, isNotEmpty, isNotNull, isNull, le, leAll, leAll, leProperty, leSome, leSome, like, lt, ltAll, ltAll, ltProperty, ltSome, ltSome, lte, ne, neProperty, not, notExists, notIn, notIn, or, order, order, order, readOnly, rlike, sizeEq, sizeGe, sizeGt, sizeLe, sizeLt, sizeNe |
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