Class Restrictions
java.lang.Object
io.micronaut.data.model.query.factory.Restrictions
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by JPA criteria
Factory for creating criterion instances.
- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryModel.CriterionDeprecated, for removal: This API element is subject to removal in a future version.Logical OR.static QueryModel.ArrayContainsarrayContains(String property, Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be contained in the array.static QueryModel.BetweenDeprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given property value range.static QueryModel.ContainsDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property match to strings containing the given value.static QueryModel.EndsWithDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property match to strings ending with the given value.static QueryModel.EqualsDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be equal to the given value.static QueryModel.EqualsPropertyeqProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be equal to a specified other property.geProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be greater than or equal to a specified other property.static QueryModel.GreaterThanDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be greater than the given value.static QueryModel.GreaterThanEqualsDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be greater than or equal to the given value.gtProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be greater than a specified other property.static QueryModel.IdEqualsDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be equal to the given value.static QueryModel.ILikeDeprecated, for removal: This API element is subject to removal in a future version.Case-insensitive like.static QueryModel.Inin(String property, QueryModel subquery) Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be in the list of given values.static QueryModel.InDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be in the list of given values.static QueryModel.IsEmptyDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be empty (such as a blank string or an empty collection).static QueryModel.IsFalseDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be false.static QueryModel.IsNotEmptyisNotEmpty(String property) Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be not empty (such as a non-blank string).static QueryModel.IsNotNullDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be null.static QueryModel.IsNullDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be null.static QueryModel.IsTrueDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be true.leProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be less than or equal to a specified other property.static QueryModel.LikeDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property match the given String expressions.static QueryModel.LessThanDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be less than the given value.static QueryModel.LessThanEqualsDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be less than or equal to the given value.static QueryModel.LessThanPropertyltProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be less than a specified other property.static QueryModel.NotEqualsDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be not equal to the given value.static QueryModel.NotEqualsPropertyneProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be not equal to a specified other property.static QueryModel.NotInnotIn(String property, QueryModel subquery) Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be in the list of given values.static QueryModel.NotInDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property to not be in the list of given values.static QueryModel.CriterionDeprecated, for removal: This API element is subject to removal in a future version.Logical OR.static QueryModel.RegexDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property match the given regex expressions.static QueryModel.RLikeDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property match the given regular expressions.static QueryModel.SizeEqualsDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict the size of a collection property.Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict the size of a collection property to be greater than or equal to the given value.static QueryModel.SizeGreaterThanDeprecated, for removal: This API element is subject to removal in a future version.Used to restrict the size of a collection property to be greater than the given value.Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that contrains a collection property to be less than or equal to the given size.static QueryModel.SizeLessThanDeprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that contrains a collection property to be less than to the given size.static QueryModel.SizeNotEqualsDeprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that contrains a collection property to be not equal to the given size.static QueryModel.StartsWithstartsWith(String property, Object expression) Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property match to strings starting with the given value.static QueryModel.VersionEqualsDeprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be equal to the given value.
-
Constructor Details
-
Restrictions
public Restrictions()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
eq
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be equal to the given value.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- An instance of Query.Equals
-
idEq
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be equal to the given value.- Parameters:
parameter- The parameter that provides the value- Returns:
- An instance of Query.Equals
-
versionEq
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be equal to the given value.- Parameters:
parameter- The parameter that provides the value- Returns:
- An instance of Query.Equals
-
ne
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be not equal to the given value.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- An instance of Query.Equals
-
in
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be in the list of given values.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- An instance of Query.In
-
notIn
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to not be in the list of given values.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- An instance of Query.In
-
in
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be in the list of given values.- Parameters:
property- The propertysubquery- The subquery- Returns:
- An instance of Query.In
-
notIn
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be in the list of given values.- Parameters:
property- The propertysubquery- The subquery- Returns:
- An instance of Query.In
-
like
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property match the given String expressions. Expressions use SQL-like % to denote wildcards- Parameters:
property- The property nameexpression- The expression- Returns:
- An instance of Query.Like
-
regex
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property match the given regex expressions.- Parameters:
property- The property nameexpression- The expression- Returns:
- An instance of Query.Like
-
startsWith
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property match to strings starting with the given value.- Parameters:
property- The property nameexpression- The expression- Returns:
- An instance of Query.StartsWith
-
contains
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property match to strings containing the given value.- Parameters:
property- The property nameexpression- The expression- Returns:
- An instance of Query.Constains
-
endsWith
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property match to strings ending with the given value.- Parameters:
property- The property nameexpression- The expression- Returns:
- An instance of Query.EndsWith
-
ilike
Deprecated, for removal: This API element is subject to removal in a future version.Case-insensitive like.- Parameters:
property- The propertyexpression- The expression- Returns:
- An ILike expression
-
rlike
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property match the given regular expressions.- Parameters:
property- The property nameexpression- The expression- Returns:
- An instance of Query.RLike
-
and
Deprecated, for removal: This API element is subject to removal in a future version.Logical OR.- Parameters:
a- The left criterionb- The right criterion- Returns:
- The criterion
-
or
Deprecated, for removal: This API element is subject to removal in a future version.Logical OR.- Parameters:
a- The left criterionb- The right criterion- Returns:
- The criterion
-
between
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given property value range.- Parameters:
property- The name of the propertystart- The start of the rangeend- The end of the range- Returns:
- The Between instance
-
gt
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be greater than the given value.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- The GreaterThan instance
-
lt
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be less than the given value.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- The LessThan instance
-
gte
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be greater than or equal to the given value.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- The LessThan instance
-
lte
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be less than or equal to the given value.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- The LessThan instance
-
isNull
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be null.- Parameters:
property- The property name- Returns:
- The IsNull instance
-
isEmpty
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be empty (such as a blank string or an empty collection).- Parameters:
property- The property name- Returns:
- The IsEmpty instance
-
isNotEmpty
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be not empty (such as a non-blank string).- Parameters:
property- The property name- Returns:
- The IsEmpty instance
-
isNotNull
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be null.- Parameters:
property- The property name- Returns:
- The IsNull instance
-
isTrue
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be true.- Parameters:
property- The property name- Returns:
- The true instance
-
isFalse
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a value to be false.- Parameters:
property- The property name- Returns:
- The true instance
-
sizeEq
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict the size of a collection property.- Parameters:
property- The propertysize- The size to restrict- Returns:
- The result
-
sizeGt
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict the size of a collection property to be greater than the given value.- Parameters:
property- The propertysize- The size to restrict- Returns:
- The result
-
sizeGe
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict the size of a collection property to be greater than or equal to the given value.- Parameters:
property- The propertysize- The size to restrict- Returns:
- The result
-
sizeLe
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that contrains a collection property to be less than or equal to the given size.- Parameters:
property- The property namesize- The size to constrain by- Returns:
- A Criterion instance
-
sizeLt
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that contrains a collection property to be less than to the given size.- Parameters:
property- The property namesize- The size to constrain by- Returns:
- A Criterion instance
-
sizeNe
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that contrains a collection property to be not equal to the given size.- Parameters:
property- The property namesize- The size to constrain by- Returns:
- A Criterion instance
-
eqProperty
Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be equal to a specified other property.- Parameters:
propertyName- The propertyotherPropertyName- The other property- Returns:
- The criterion instance
-
neProperty
public static QueryModel.NotEqualsProperty neProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be not equal to a specified other property.- Parameters:
propertyName- The propertyotherPropertyName- The other property- Returns:
- This criterion instance
-
gtProperty
public static QueryModel.GreaterThanProperty gtProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be greater than a specified other property.- Parameters:
propertyName- The propertyotherPropertyName- The other property- Returns:
- The criterion
-
geProperty
public static QueryModel.GreaterThanEqualsProperty geProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be greater than or equal to a specified other property.- Parameters:
propertyName- The propertyotherPropertyName- The other property- Returns:
- The criterion
-
ltProperty
Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be less than a specified other property.- Parameters:
propertyName- The propertyotherPropertyName- The other property- Returns:
- The criterion
-
leProperty
public static QueryModel.LessThanEqualsProperty leProperty(String propertyName, String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constraints a property to be less than or equal to a specified other property.- Parameters:
propertyName- The propertyotherPropertyName- The other property- Returns:
- The criterion
-
arrayContains
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property to be contained in the array.- Parameters:
property- The propertyparameter- The parameter that provides the value- Returns:
- An instance of Query.ArrayContains
-