public class Restrictions
extends java.lang.Object
Constructor and Description |
---|
Restrictions() |
Modifier and Type | Method and Description |
---|---|
static QueryModel.Criterion |
and(QueryModel.Criterion a,
QueryModel.Criterion b)
Logical OR.
|
static QueryModel.Between |
between(java.lang.String property,
QueryParameter start,
QueryParameter end)
Restricts the results by the given property value range.
|
static QueryModel.Contains |
contains(java.lang.String property,
QueryParameter expression)
Restricts the property match to strings containing the given value.
|
static QueryModel.EndsWith |
endsWith(java.lang.String property,
QueryParameter expression)
Restricts the property match to strings ending with the given value.
|
static QueryModel.Equals |
eq(java.lang.String property,
QueryParameter parameter)
Restricts the property to be equal to the given value.
|
static QueryModel.EqualsProperty |
eqProperty(java.lang.String propertyName,
java.lang.String otherPropertyName)
Constraints a property to be equal to a specified other property.
|
static QueryModel.GreaterThanEqualsProperty |
geProperty(java.lang.String propertyName,
java.lang.String otherPropertyName)
Constraints a property to be greater than or equal to a specified other property.
|
static QueryModel.GreaterThan |
gt(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be greater than the given value.
|
static QueryModel.GreaterThanEquals |
gte(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be greater than or equal to the given value.
|
static QueryModel.GreaterThanProperty |
gtProperty(java.lang.String propertyName,
java.lang.String otherPropertyName)
Constraints a property to be greater than a specified other property.
|
static QueryModel.IdEquals |
idEq(QueryParameter parameter)
Restricts the property to be equal to the given value.
|
static QueryModel.ILike |
ilike(java.lang.String property,
QueryParameter expression)
Case insensitive like.
|
static QueryModel.In |
in(java.lang.String property,
QueryModel subquery)
Restricts the property to be in the list of given values.
|
static QueryModel.In |
in(java.lang.String property,
QueryParameter parameter)
Restricts the property to be in the list of given values.
|
static QueryModel.IsEmpty |
isEmpty(java.lang.String property)
Used to restrict a value to be empty (such as a blank string or an empty collection).
|
static QueryModel.IsFalse |
isFalse(java.lang.String property)
Used to restrict a value to be false.
|
static QueryModel.IsNotEmpty |
isNotEmpty(java.lang.String property)
Used to restrict a value to be not empty (such as a non-blank string).
|
static QueryModel.IsNotNull |
isNotNull(java.lang.String property)
Used to restrict a value to be null.
|
static QueryModel.IsNull |
isNull(java.lang.String property)
Used to restrict a value to be null.
|
static QueryModel.IsTrue |
isTrue(java.lang.String property)
Used to restrict a value to be true.
|
static QueryModel.LessThanEqualsProperty |
leProperty(java.lang.String propertyName,
java.lang.String otherPropertyName)
Constraints a property to be less than or equal to a specified other property.
|
static QueryModel.Like |
like(java.lang.String property,
QueryParameter expression)
Restricts the property match the given String expressions.
|
static QueryModel.LessThan |
lt(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be less than the given value.
|
static QueryModel.LessThanEquals |
lte(java.lang.String property,
QueryParameter parameter)
Used to restrict a value to be less than or equal to the given value.
|
static QueryModel.LessThanProperty |
ltProperty(java.lang.String propertyName,
java.lang.String otherPropertyName)
Constraints a property to be less than a specified other property.
|
static QueryModel.NotEquals |
ne(java.lang.String property,
QueryParameter parameter)
Restricts the property to be not equal to the given value.
|
static QueryModel.NotEqualsProperty |
neProperty(java.lang.String propertyName,
java.lang.String otherPropertyName)
Constraints a property to be not equal to a specified other property.
|
static QueryModel.NotIn |
notIn(java.lang.String property,
QueryModel subquery)
Restricts the property to be in the list of given values.
|
static QueryModel.Criterion |
or(QueryModel.Criterion a,
QueryModel.Criterion b)
Logical OR.
|
static QueryModel.RLike |
rlike(java.lang.String property,
QueryParameter expression)
Restricts the property match the given regular expressions.
|
static QueryModel.SizeEquals |
sizeEq(java.lang.String property,
QueryParameter size)
Used to restrict the size of a collection property.
|
static QueryModel.SizeGreaterThanEquals |
sizeGe(java.lang.String property,
QueryParameter size)
Used to restrict the size of a collection property to be greater than or equal to the given value.
|
static QueryModel.SizeGreaterThan |
sizeGt(java.lang.String property,
QueryParameter size)
Used to restrict the size of a collection property to be greater than the given value.
|
static QueryModel.SizeLessThanEquals |
sizeLe(java.lang.String property,
QueryParameter size)
Creates a Criterion that contrains a collection property to be less than or equal to the given size.
|
static QueryModel.SizeLessThan |
sizeLt(java.lang.String property,
QueryParameter size)
Creates a Criterion that contrains a collection property to be less than to the given size.
|
static QueryModel.SizeNotEquals |
sizeNe(java.lang.String property,
QueryParameter size)
Creates a Criterion that contrains a collection property to be not equal to the given size.
|
static QueryModel.StartsWith |
startsWith(java.lang.String property,
QueryParameter expression)
Restricts the property match to strings starting with the given value.
|
static QueryModel.VersionEquals |
versionEq(QueryParameter parameter)
Restricts the property to be equal to the given value.
|
public static QueryModel.Equals eq(java.lang.String property, QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the valuepublic static QueryModel.IdEquals idEq(QueryParameter parameter)
parameter
- The parameter that provides the valuepublic static QueryModel.VersionEquals versionEq(QueryParameter parameter)
parameter
- The parameter that provides the valuepublic static QueryModel.NotEquals ne(java.lang.String property, QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the valuepublic static QueryModel.In in(java.lang.String property, QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the valuepublic static QueryModel.In in(java.lang.String property, QueryModel subquery)
property
- The propertysubquery
- The subquerypublic static QueryModel.NotIn notIn(java.lang.String property, QueryModel subquery)
property
- The propertysubquery
- The subquerypublic static QueryModel.Like like(java.lang.String property, QueryParameter expression)
property
- The property nameexpression
- The expressionpublic static QueryModel.StartsWith startsWith(java.lang.String property, QueryParameter expression)
property
- The property nameexpression
- The expressionpublic static QueryModel.Contains contains(java.lang.String property, QueryParameter expression)
property
- The property nameexpression
- The expressionpublic static QueryModel.EndsWith endsWith(java.lang.String property, QueryParameter expression)
property
- The property nameexpression
- The expressionpublic static QueryModel.ILike ilike(java.lang.String property, QueryParameter expression)
property
- The propertyexpression
- The expressionpublic static QueryModel.RLike rlike(java.lang.String property, QueryParameter expression)
property
- The property nameexpression
- The expressionpublic static QueryModel.Criterion and(QueryModel.Criterion a, QueryModel.Criterion b)
a
- The left criterionb
- The right criterionpublic static QueryModel.Criterion or(QueryModel.Criterion a, QueryModel.Criterion b)
a
- The left criterionb
- The right criterionpublic static QueryModel.Between between(java.lang.String property, QueryParameter start, QueryParameter end)
property
- The name of the propertystart
- The start of the rangeend
- The end of the rangepublic static QueryModel.GreaterThan gt(java.lang.String property, QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the valuepublic static QueryModel.LessThan lt(java.lang.String property, QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the valuepublic static QueryModel.GreaterThanEquals gte(java.lang.String property, QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the valuepublic static QueryModel.LessThanEquals lte(java.lang.String property, QueryParameter parameter)
property
- The propertyparameter
- The parameter that provides the valuepublic static QueryModel.IsNull isNull(java.lang.String property)
property
- The property namepublic static QueryModel.IsEmpty isEmpty(java.lang.String property)
property
- The property namepublic static QueryModel.IsNotEmpty isNotEmpty(java.lang.String property)
property
- The property namepublic static QueryModel.IsNotNull isNotNull(java.lang.String property)
property
- The property namepublic static QueryModel.IsTrue isTrue(java.lang.String property)
property
- The property namepublic static QueryModel.IsFalse isFalse(java.lang.String property)
property
- The property namepublic static QueryModel.SizeEquals sizeEq(java.lang.String property, QueryParameter size)
property
- The propertysize
- The size to restrictpublic static QueryModel.SizeGreaterThan sizeGt(java.lang.String property, QueryParameter size)
property
- The propertysize
- The size to restrictpublic static QueryModel.SizeGreaterThanEquals sizeGe(java.lang.String property, QueryParameter size)
property
- The propertysize
- The size to restrictpublic static QueryModel.SizeLessThanEquals sizeLe(java.lang.String property, QueryParameter size)
property
- The property namesize
- The size to constrain bypublic static QueryModel.SizeLessThan sizeLt(java.lang.String property, QueryParameter size)
property
- The property namesize
- The size to constrain bypublic static QueryModel.SizeNotEquals sizeNe(java.lang.String property, QueryParameter size)
property
- The property namesize
- The size to constrain bypublic static QueryModel.EqualsProperty eqProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other propertypublic static QueryModel.NotEqualsProperty neProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other propertypublic static QueryModel.GreaterThanProperty gtProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other propertypublic static QueryModel.GreaterThanEqualsProperty geProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other propertypublic static QueryModel.LessThanProperty ltProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other propertypublic static QueryModel.LessThanEqualsProperty leProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
propertyName
- The propertyotherPropertyName
- The other property