@java.lang.SuppressWarnings("rawtypes") public interface Criteria
Interface for the implementations that construct of criteria queries.
Type Params | Return Type | Name and description |
---|---|---|
|
public 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 |
|
public Criteria |
and(groovy.lang.Closure callable) Creates a logical conjunction |
|
public Criteria |
between(java.lang.String propertyName, java.lang.Object start, java.lang.Object finish) Restricts the results by the given property value range (inclusive) |
|
public Criteria |
cache(boolean shouldCache) |
|
public Criteria |
eq(java.lang.String propertyName, java.lang.Object propertyValue) Creates an "equals" Criterion based on the specified property name and value |
|
public 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 |
|
public 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 |
|
public Criteria |
eqProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be equal to a specified other property |
|
public Criteria |
exists(QueryableCriteria<?> subquery) Executes an exists subquery |
|
public 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 |
|
public 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 |
|
public 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 |
|
public Criteria |
geProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be greater than or equal to a specified other property |
|
public 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 |
|
public 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 |
|
public 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 |
|
public 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 |
|
public 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 |
|
public Criteria |
gtProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be greater than a specified other property |
|
public 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 |
|
public 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 |
|
public 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 |
|
public Criteria |
idEq(java.lang.Object propertyValue) Creates an "equals" Criterion based on the specified property name and value |
|
public Criteria |
idEquals(java.lang.Object value) Creates a criterion that restricts the id to the given value |
|
public Criteria |
ilike(java.lang.String propertyName, java.lang.Object propertyValue) Creates an ilike Criterion based on the specified property name and value. |
|
public Criteria |
in(java.lang.String propertyName, java.util.Collection values) Creates an "in" Criterion based on the specified property name and list of values |
|
public Criteria |
in(java.lang.String propertyName, QueryableCriteria<?> subquery) Creates an "in" Criterion using a subquery |
|
public Criteria |
in(java.lang.String propertyName, groovy.lang.Closure<?> subquery) Creates an "in" Criterion using a subquery |
|
public Criteria |
in(java.lang.String propertyName, java.lang.Object[] values) Creates an "in" Criterion based on the specified property name and list of values |
|
public Criteria |
inList(java.lang.String propertyName, QueryableCriteria<?> subquery) Creates an "in" Criterion using a subquery |
|
public Criteria |
inList(java.lang.String propertyName, groovy.lang.Closure<?> subquery) Creates an "in" Criterion using a subquery |
|
public Criteria |
inList(java.lang.String propertyName, java.util.Collection values) Creates an "in" Criterion based on the specified property name and list of values |
|
public Criteria |
inList(java.lang.String propertyName, java.lang.Object[] values) Creates an "in" Criterion based on the specified property name and list of values |
|
public Criteria |
isEmpty(java.lang.String propertyName) Creates a criterion that asserts the given property is empty (such as a blank string) |
|
public Criteria |
isNotEmpty(java.lang.String propertyName) Creates a criterion that asserts the given property is not empty |
|
public Criteria |
isNotNull(java.lang.String propertyName) Creates a criterion that asserts the given property is not null |
|
public Criteria |
isNull(java.lang.String propertyName) Creates a criterion that asserts the given property is null |
|
public 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 |
|
public 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 |
|
public 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 |
|
public Criteria |
leProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be less than or equal to a specified other property |
|
public 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 |
|
public 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 |
|
public Criteria |
like(java.lang.String propertyName, java.lang.Object propertyValue) Creates a like Criterion based on the specified property name and value |
|
public 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 |
|
public 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 |
|
public 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 |
|
public Criteria |
ltProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be less than a specified other property |
|
public 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 |
|
public 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 |
|
public 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 |
|
public Criteria |
ne(java.lang.String propertyName, java.lang.Object propertyValue) Creates a "not equals" Criterion based on the specified property name and value |
|
public Criteria |
neProperty(java.lang.String propertyName, java.lang.String otherPropertyName) Constrains a property to be not equal to a specified other property |
|
public Criteria |
not(groovy.lang.Closure callable) Creates a logical negation |
|
public Criteria |
notExists(QueryableCriteria<?> subquery) Executes a not exists subquery |
|
public Criteria |
notIn(java.lang.String propertyName, QueryableCriteria<?> subquery) Creates a negated "in" Criterion using a subquery |
|
public Criteria |
notIn(java.lang.String propertyName, groovy.lang.Closure<?> subquery) Creates a negated "in" Criterion using a subquery |
|
public Criteria |
or(groovy.lang.Closure callable) Creates a logical disjunction |
|
public Criteria |
order(java.lang.String propertyName) Orders by the specified property name (defaults to ascending) |
|
public Criteria |
order(Order o) Adds an order object |
|
public Criteria |
order(java.lang.String propertyName, java.lang.String direction) Orders by the specified property name and direction |
|
public Criteria |
readOnly(boolean readOnly) |
|
public Criteria |
rlike(java.lang.String propertyName, java.lang.Object propertyValue) Creates an rlike Criterion based on the specified property name and value |
|
public Criteria |
sizeEq(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property by size |
|
public 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 |
|
public Criteria |
sizeGt(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property to be greater than the given size |
|
public 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 |
|
public Criteria |
sizeLt(java.lang.String propertyName, int size) Creates a Criterion that constrains a collection property to be less than to the given size |
|
public 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