Interface for the implementations that construct of criteria queries.
Type Params | Return Type | Name and description |
---|---|---|
|
Criteria |
allEq(java.util.Map<java.lang.String, java.lang.Object> propertyValues) Apply an "equals" constraint to each property in the key set of a Map |
|
Criteria |
and(groovy.lang.Closure callable) Creates a logical conjunction |
|
Criteria |
between(java.lang.String propertyName, java.lang.Object start, java.lang.Object finish) Restricts the results by the given property value range (inclusive) |
|
Criteria |
cache(boolean shouldCache) |
|
Criteria |
eq(java.lang.String propertyName, java.lang.Object propertyValue) Creates an "equals" Criterion based on the specified property name and value |
|
Criteria |
eqAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is equals to all the given returned values |
|
Criteria |
eqAll(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is equal to all the given returned values |
|
Criteria |
eqProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be equal to a specified other property |
|
Criteria |
exists(QueryableCriteria<?> subquery) Executes an exists subquery |
|
Criteria |
ge(java.lang.String property, java.lang.Object value) Used to restrict a value to be greater than or equal to the given value |
|
Criteria |
geAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is greater than or equals to all the given returned values |
|
Criteria |
geAll(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is greater than all the given returned values |
|
Criteria |
geProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be greater than or equal to a specified other property |
|
Criteria |
geSome(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is greater than or equal to some of the given values |
|
Criteria |
geSome(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is greater than or equal to some of the given values |
|
Criteria |
gt(java.lang.String property, java.lang.Object value) Used to restrict a value to be greater than or equal to the given value |
|
Criteria |
gtAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is greater than all the given returned values |
|
Criteria |
gtAll(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is greater than all the given returned values |
|
Criteria |
gtProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be greater than a specified other property |
|
Criteria |
gtSome(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is greater than some of the given values |
|
Criteria |
gtSome(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is greater than some of the given values |
|
Criteria |
gte(java.lang.String property, java.lang.Object value) Used to restrict a value to be greater than or equal to the given value |
|
Criteria |
idEq(java.lang.Object propertyValue) Creates an "equals" Criterion based on the specified property name and value |
|
Criteria |
idEquals(java.lang.Object value) Creates a criterion that restricts the id to the given value |
|
Criteria |
ilike(java.lang.String propertyName, java.lang.Object propertyValue) Creates an ilike Criterion based on the specified property name and value. |
|
Criteria |
in(java.lang.String propertyName, java.util.Collection values) Creates an "in" Criterion based on the specified property name and list of values |
|
Criteria |
in(java.lang.String propertyName, QueryableCriteria<?> subquery) Creates an "in" Criterion using a subquery |
|
Criteria |
in(java.lang.String propertyName, groovy.lang.Closure<?> subquery) Creates an "in" Criterion using a subquery |
|
Criteria |
in(java.lang.String propertyName, java.lang.Object[] values) Creates an "in" Criterion based on the specified property name and list of values |
|
Criteria |
inList(java.lang.String propertyName, QueryableCriteria<?> subquery) Creates an "in" Criterion using a subquery |
|
Criteria |
inList(java.lang.String propertyName, groovy.lang.Closure<?> subquery) Creates an "in" Criterion using a subquery |
|
Criteria |
inList(java.lang.String propertyName, java.util.Collection values) Creates an "in" Criterion based on the specified property name and list of values |
|
Criteria |
inList(java.lang.String propertyName, java.lang.Object[] values) Creates an "in" Criterion based on the specified property name and list of values |
|
Criteria |
isEmpty(java.lang.String propertyName) Creates a criterion that asserts the given property is empty (such as a blank string) |
|
Criteria |
isNotEmpty(java.lang.String propertyName) Creates a criterion that asserts the given property is not empty |
|
Criteria |
isNotNull(java.lang.String propertyName) Creates a criterion that asserts the given property is not null |
|
Criteria |
isNull(java.lang.String propertyName) Creates a criterion that asserts the given property is null |
|
Criteria |
le(java.lang.String property, java.lang.Object value) Used to restrict a value to be less than or equal to the given value |
|
Criteria |
leAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is less than or equal to all the given returned values |
|
Criteria |
leAll(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is less than all the given returned values |
|
Criteria |
leProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be less than or equal to a specified other property |
|
Criteria |
leSome(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is less than or equal to some of the given values |
|
Criteria |
leSome(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is less than or equal to some of the given values |
|
Criteria |
like(java.lang.String propertyName, java.lang.Object propertyValue) Creates a like Criterion based on the specified property name and value |
|
Criteria |
lt(java.lang.String property, java.lang.Object value) Used to restrict a value to be less than or equal to the given value |
|
Criteria |
ltAll(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is less than all the given returned values |
|
Criteria |
ltAll(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is less than all the given returned values |
|
Criteria |
ltProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be less than a specified other property |
|
Criteria |
ltSome(java.lang.String propertyName, QueryableCriteria propertyValue) Creates a subquery criterion that ensures the given property is less than some of the given values |
|
Criteria |
ltSome(java.lang.String propertyName, groovy.lang.Closure<?> propertyValue) Creates a subquery criterion that ensures the given property is less than some of the given values |
|
Criteria |
lte(java.lang.String property, java.lang.Object value) Used to restrict a value to be less than or equal to the given value |
|
Criteria |
ne(java.lang.String propertyName, java.lang.Object propertyValue) Creates a "not equals" Criterion based on the specified property name and value |
|
Criteria |
neProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be not equal to a specified other property |
|
Criteria |
not(groovy.lang.Closure callable) Creates a logical negation |
|
Criteria |
notExists(QueryableCriteria<?> subquery) Executes a not exists subquery |
|
Criteria |
notIn(java.lang.String propertyName, QueryableCriteria<?> subquery) Creates a negated "in" Criterion using a subquery |
|
Criteria |
notIn(java.lang.String propertyName, groovy.lang.Closure<?> subquery) Creates a negated "in" Criterion using a subquery |
|
Criteria |
or(groovy.lang.Closure callable) Creates a logical disjunction |
|
Criteria |
order(java.lang.String propertyName) Orders by the specified property name (defaults to ascending) |
|
Criteria |
order(Order o) Adds an order object |
|
Criteria |
order(java.lang.String propertyName, java.lang.String direction) Orders by the specified property name and direction |
|
Criteria |
readOnly(boolean readOnly) |
|
Criteria |
rlike(java.lang.String propertyName, java.lang.Object propertyValue) Creates an rlike Criterion based on the specified property name and value |
|
Criteria |
sizeEq(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property by size |
|
Criteria |
sizeGe(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property to be greater than or equal to the given size |
|
Criteria |
sizeGt(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property to be greater than the given size |
|
Criteria |
sizeLe(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property to be less than or equal to the given size |
|
Criteria |
sizeLt(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property to be less than to the given size |
|
Criteria |
sizeNe(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property to be not equal to the given size |
Apply an "equals" constraint to each property in the key set of a Map
propertyValues
- a map from property names to valuesCreates a logical conjunction
callable
- The closureRestricts the results by the given property value range (inclusive)
propertyName
- The property namestart
- The start of the rangefinish
- The end of the range
Configures the second-level cache with the default usage of 'read-write' and the default include of 'all' if
the passed argument is true
{ cache true }
shouldCache
- True if the default cache configuration should be appliedCreates an "equals" Criterion based on the specified property name and value
propertyName
- The property namepropertyValue
- The property valueCreates a subquery criterion that ensures the given property is equals to all the given returned values
propertyName
- The property namepropertyValue
- A closure that is converted to a QueryableCriteriaCreates a subquery criterion that ensures the given property is equal to all the given returned values
propertyName
- The property namepropertyValue
- The property valueConstrains a property to be equal to a specified other property
propertyName
- The propertyotherPropertyName
- The other propertyExecutes an exists subquery
subquery
- The subqueryUsed to restrict a value to be greater than or equal to the given value
property
- The propertyvalue
- The valueCreates a subquery criterion that ensures the given property is greater than or equals to all the given returned values
propertyName
- The property namepropertyValue
- A closure that is converted to a QueryableCriteriaCreates a subquery criterion that ensures the given property is greater than all the given returned values
propertyName
- The property namepropertyValue
- The property valueConstrains a property to be greater than or equal to a specified other property
propertyName
- The propertyotherPropertyName
- The other propertyCreates a subquery criterion that ensures the given property is greater than or equal to some of the given values
propertyName
- The property namepropertyValue
- The property valueCreates a subquery criterion that ensures the given property is greater than or equal to some of the given values
propertyName
- The property namepropertyValue
- The property valueUsed to restrict a value to be greater than or equal to the given value
property
- The propertyvalue
- The valueCreates a subquery criterion that ensures the given property is greater than all the given returned values
propertyName
- The property namepropertyValue
- A closure that is converted to a QueryableCriteriaCreates a subquery criterion that ensures the given property is greater than all the given returned values
propertyName
- The property namepropertyValue
- The property valueConstrains a property to be greater than a specified other property
propertyName
- The propertyotherPropertyName
- The other propertyCreates a subquery criterion that ensures the given property is greater than some of the given values
propertyName
- The property namepropertyValue
- The property valueCreates a subquery criterion that ensures the given property is greater than some of the given values
propertyName
- The property namepropertyValue
- The property valueUsed to restrict a value to be greater than or equal to the given value
property
- The propertyvalue
- The valueCreates an "equals" Criterion based on the specified property name and value
propertyValue
- The property valueCreates a criterion that restricts the id to the given value
value
- The valueCreates an ilike Criterion based on the specified property name and value. Unlike a like condition, ilike is case insensitive
propertyName
- The property namepropertyValue
- The property valueCreates an "in" Criterion based on the specified property name and list of values
propertyName
- The property namevalues
- The valuesCreates an "in" Criterion using a subquery
propertyName
- The property namesubquery
- The subqueryCreates an "in" Criterion using a subquery
propertyName
- The property namesubquery
- The subqueryCreates an "in" Criterion based on the specified property name and list of values
propertyName
- The property namevalues
- The valuesCreates an "in" Criterion using a subquery
propertyName
- The property namesubquery
- The subqueryCreates an "in" Criterion using a subquery
propertyName
- The property namesubquery
- The subqueryCreates an "in" Criterion based on the specified property name and list of values
propertyName
- The property namevalues
- The valuesCreates an "in" Criterion based on the specified property name and list of values
propertyName
- The property namevalues
- The valuesCreates a criterion that asserts the given property is empty (such as a blank string)
propertyName
- The property nameCreates a criterion that asserts the given property is not empty
propertyName
- The property nameCreates a criterion that asserts the given property is not null
propertyName
- The property nameCreates a criterion that asserts the given property is null
propertyName
- The property nameUsed to restrict a value to be less than or equal to the given value
property
- The propertyvalue
- The valueCreates a subquery criterion that ensures the given property is less than or equal to all the given returned values
propertyName
- The property namepropertyValue
- A closure that is converted to a QueryableCriteriaCreates a subquery criterion that ensures the given property is less than all the given returned values
propertyName
- The property namepropertyValue
- The property valueConstrains a property to be less than or equal to a specified other property
propertyName
- The propertyotherPropertyName
- The other propertyCreates a subquery criterion that ensures the given property is less than or equal to some of the given values
propertyName
- The property namepropertyValue
- The property valueCreates a subquery criterion that ensures the given property is less than or equal to some of the given values
propertyName
- The property namepropertyValue
- The property valueCreates a like Criterion based on the specified property name and value
propertyName
- The property namepropertyValue
- The property valueUsed to restrict a value to be less than or equal to the given value
property
- The propertyvalue
- The valueCreates a subquery criterion that ensures the given property is less than all the given returned values
propertyName
- The property namepropertyValue
- A closure that is converted to a QueryableCriteriaCreates a subquery criterion that ensures the given property is less than all the given returned values
propertyName
- The property namepropertyValue
- The property valueConstrains a property to be less than a specified other property
propertyName
- The propertyotherPropertyName
- The other propertyCreates a subquery criterion that ensures the given property is less than some of the given values
propertyName
- The property namepropertyValue
- The property valueCreates a subquery criterion that ensures the given property is less than some of the given values
propertyName
- The property namepropertyValue
- The property valueUsed to restrict a value to be less than or equal to the given value
property
- The propertyvalue
- The valueCreates a "not equals" Criterion based on the specified property name and value
propertyName
- The property namepropertyValue
- The property valueConstrains a property to be not equal to a specified other property
propertyName
- The propertyotherPropertyName
- The other propertyCreates a logical negation
callable
- The closureExecutes a not exists subquery
subquery
- The subqueryCreates a negated "in" Criterion using a subquery
propertyName
- The property namesubquery
- The subqueryCreates a negated "in" Criterion using a subquery
propertyName
- The property namesubquery
- The subqueryCreates a logical disjunction
callable
- The closureOrders by the specified property name (defaults to ascending)
propertyName
- The property name to order byAdds an order object
o
- The order objectOrders by the specified property name and direction
propertyName
- The property name to order bydirection
- Either "asc" for ascending or "desc" for descending
Configures the hibernate readOnly property to avoid checking for changes on the objects if the passed argument is true
{ readOnly true }
readOnly
- True to disable dirty checkingCreates an rlike Criterion based on the specified property name and value
propertyName
- The property namepropertyValue
- The property valueCreates a Criterion that constrains a collection property by size
propertyName
- The property namesize
- The size to constrain byCreates a Criterion that constrains a collection property to be greater than or equal to the given size
propertyName
- The property namesize
- The size to constrain byCreates a Criterion that constrains a collection property to be greater than the given size
propertyName
- The property namesize
- The size to constrain byCreates a Criterion that constrains a collection property to be less than or equal to the given size
propertyName
- The property namesize
- The size to constrain byCreates a Criterion that constrains a collection property to be less than to the given size
propertyName
- The property namesize
- The size to constrain byCreates a Criterion that constrains a collection property to be not equal to the given size
propertyName
- The property namesize
- The size to constrain by