public interface Criteria
Modifier and Type | Method and Description |
---|---|
Criteria |
allEq(java.util.Map<java.lang.String,QueryParameter> propertyValues)
Apply an "equals" constraint to each property in the key set of a Map.
|
Criteria |
and(Criteria other)
Creates a logical conjunction.
|
Criteria |
between(java.lang.String propertyName,
QueryParameter start,
QueryParameter finish)
Restricts the results by the given property value range (inclusive).
|
Criteria |
contains(java.lang.String propertyName,
QueryParameter parameter)
Restricts the property match to strings containing with the given value.
|
Criteria |
endsWith(java.lang.String propertyName,
QueryParameter parameter)
Restricts the property match to strings ending with the given value.
|
Criteria |
eq(java.lang.String propertyName,
QueryParameter parameter)
Creates an "equals" Criterion based on the specified property name and value.
|
Criteria |
eqAll(java.lang.String propertyName,
Criteria propertyValue)
Creates a subquery criterion that ensures the given property is equals 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 |
ge(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be greater than or equal to the given value.
|
Criteria |
geAll(java.lang.String propertyName,
Criteria propertyValue)
Creates a subquery criterion that ensures the given property is greater than or equals to 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,
Criteria 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,
QueryParameter parameter)
Used to restrict a value to be greater than or equal to the given value.
|
Criteria |
gtAll(java.lang.String propertyName,
Criteria propertyValue)
Creates a subquery criterion that ensures the given property is greater than all the given returned values.
|
Criteria |
gte(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be greater than or equal to the given value.
|
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,
Criteria propertyValue)
Creates a subquery criterion that ensures the given property is greater than some of the given values.
|
Criteria |
idEq(QueryParameter parameter)
Creates an "equals" Criterion based on the specified property name and value.
|
Criteria |
idEquals(QueryParameter parameter)
Creates a criterion that restricts the id to the given value.
|
Criteria |
ilike(java.lang.String propertyName,
QueryParameter parameter)
Creates an ilike Criterion based on the specified property name and value.
|
Criteria |
inList(java.lang.String propertyName,
QueryModel subquery)
Creates an "in" Criterion using a subquery.
|
Criteria |
inList(java.lang.String propertyName,
QueryParameter parameter)
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 |
isFalse(java.lang.String propertyName)
Creates a criterion that asserts the given property is false.
|
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 |
isTrue(java.lang.String propertyName)
Creates a criterion that asserts the given property is true.
|
Criteria |
le(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be less than or equal to the given value.
|
Criteria |
leAll(java.lang.String propertyName,
Criteria propertyValue)
Creates a subquery criterion that ensures the given property is less than or equal to 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,
Criteria 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,
QueryParameter parameter)
Creates a like Criterion based on the specified property name and value.
|
Criteria |
lt(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be less than or equal to the given value.
|
Criteria |
ltAll(java.lang.String propertyName,
Criteria propertyValue)
Creates a subquery criterion that ensures the given property is less than all the given returned values.
|
Criteria |
lte(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be less than or equal to the given value.
|
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,
Criteria propertyValue)
Creates a subquery criterion that ensures the given property is less than some of the given values.
|
Criteria |
ne(java.lang.String propertyName,
QueryParameter parameter)
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(Criteria other)
Creates a logical negation.
|
Criteria |
notIn(java.lang.String propertyName,
QueryModel subquery)
Creates a negated "in" Criterion using a subquery.
|
Criteria |
or(Criteria other)
Creates a logical disjunction.
|
Criteria |
rlike(java.lang.String propertyName,
QueryParameter parameter)
Creates an rlike Criterion based on the specified property name and value.
|
Criteria |
sizeEq(java.lang.String propertyName,
QueryParameter size)
Creates a Criterion that constrains a collection property by size.
|
Criteria |
sizeGe(java.lang.String propertyName,
QueryParameter 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,
QueryParameter size)
Creates a Criterion that constrains a collection property to be greater than the given size.
|
Criteria |
sizeLe(java.lang.String propertyName,
QueryParameter 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,
QueryParameter size)
Creates a Criterion that constrains a collection property to be less than to the given size.
|
Criteria |
sizeNe(java.lang.String propertyName,
QueryParameter size)
Creates a Criterion that constrains a collection property to be not equal to the given size.
|
Criteria |
startsWith(java.lang.String propertyName,
QueryParameter parameter)
Restricts the property match to strings starting with the given value.
|
@NonNull Criteria idEquals(QueryParameter parameter)
parameter
- The parameter that provides the value@NonNull Criteria isEmpty(@NonNull java.lang.String propertyName)
propertyName
- The property name@NonNull Criteria isNotEmpty(@NonNull java.lang.String propertyName)
propertyName
- The property name@NonNull Criteria isNull(@NonNull java.lang.String propertyName)
propertyName
- The property name@NonNull Criteria isTrue(@NonNull java.lang.String propertyName)
propertyName
- The property name@NonNull Criteria isFalse(@NonNull java.lang.String propertyName)
propertyName
- The property name@NonNull Criteria isNotNull(java.lang.String propertyName)
propertyName
- The property name@NonNull Criteria eq(java.lang.String propertyName, QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria idEq(QueryParameter parameter)
parameter
- The parameter that provides the value@NonNull Criteria ne(@NonNull java.lang.String propertyName, @NonNull QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria between(@NonNull java.lang.String propertyName, @NonNull QueryParameter start, @NonNull QueryParameter finish)
propertyName
- The property namestart
- The start of the rangefinish
- The end of the range@NonNull Criteria gte(@NonNull java.lang.String property, @NonNull QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the value@NonNull Criteria ge(@NonNull java.lang.String property, @NonNull QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the value@NonNull Criteria gt(@NonNull java.lang.String property, @NonNull QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the value@NonNull Criteria lte(@NonNull java.lang.String property, @NonNull QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the value@NonNull Criteria le(@NonNull java.lang.String property, @NonNull QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the value@NonNull Criteria lt(@NonNull java.lang.String property, @NonNull QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the value@NonNull Criteria like(@NonNull java.lang.String propertyName, @NonNull QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria startsWith(@NonNull java.lang.String propertyName, @NonNull QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria endsWith(@NonNull java.lang.String propertyName, @NonNull QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria contains(@NonNull java.lang.String propertyName, @NonNull QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria ilike(@NonNull java.lang.String propertyName, @NonNull QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria rlike(@NonNull java.lang.String propertyName, @NonNull QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria and(@NonNull Criteria other)
other
- The other criteria@NonNull Criteria or(@NonNull Criteria other)
other
- The other criteria@NonNull Criteria not(@NonNull Criteria other)
other
- The other criteria@NonNull Criteria inList(@NonNull java.lang.String propertyName, @NonNull QueryModel subquery)
propertyName
- The property namesubquery
- The subquery@NonNull Criteria inList(@NonNull java.lang.String propertyName, @NonNull QueryParameter parameter)
propertyName
- The property nameparameter
- The parameter that provides the value@NonNull Criteria notIn(@NonNull java.lang.String propertyName, @NonNull QueryModel subquery)
propertyName
- The property namesubquery
- The subquery@NonNull Criteria sizeEq(@NonNull java.lang.String propertyName, @NonNull QueryParameter size)
propertyName
- The property namesize
- The size to constrain by@NonNull Criteria sizeGt(@NonNull java.lang.String propertyName, @NonNull QueryParameter size)
propertyName
- The property namesize
- The size to constrain by@NonNull Criteria sizeGe(@NonNull java.lang.String propertyName, @NonNull QueryParameter size)
propertyName
- The property namesize
- The size to constrain by@NonNull Criteria sizeLe(@NonNull java.lang.String propertyName, @NonNull QueryParameter size)
propertyName
- The property namesize
- The size to constrain by@NonNull Criteria sizeLt(@NonNull java.lang.String propertyName, @NonNull QueryParameter size)
propertyName
- The property namesize
- The size to constrain by@NonNull Criteria sizeNe(@NonNull java.lang.String propertyName, @NonNull QueryParameter size)
propertyName
- The property namesize
- The size to constrain by@NonNull Criteria eqProperty(@NonNull java.lang.String propertyName, @NonNull java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other property@NonNull Criteria neProperty(@NonNull java.lang.String propertyName, @NonNull java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other property@NonNull Criteria gtProperty(@NonNull java.lang.String propertyName, @NonNull java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other property@NonNull Criteria geProperty(@NonNull java.lang.String propertyName, @NonNull java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other property@NonNull Criteria ltProperty(@NonNull java.lang.String propertyName, @NonNull java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other property@NonNull Criteria leProperty(java.lang.String propertyName, @NonNull java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other property@NonNull Criteria allEq(@NonNull java.util.Map<java.lang.String,QueryParameter> propertyValues)
propertyValues
- a map from property names to values@NonNull Criteria eqAll(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- A subquery@NonNull Criteria gtAll(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- A subquery@NonNull Criteria ltAll(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- A subquery@NonNull Criteria geAll(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- A subquery@NonNull Criteria leAll(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- A subquery@NonNull Criteria gtSome(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- The property value@NonNull Criteria geSome(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- The property value@NonNull Criteria ltSome(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- The property value@NonNull Criteria leSome(@NonNull java.lang.String propertyName, @NonNull Criteria propertyValue)
propertyName
- The property namepropertyValue
- The property value