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 SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier 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- 
Restrictionspublic Restrictions()Deprecated, for removal: This API element is subject to removal in a future version.
 
- 
- 
Method Details- 
eqDeprecated, 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 property
- parameter- The parameter that provides the value
- Returns:
- An instance of Query.Equals
 
- 
idEqDeprecated, 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
 
- 
versionEqDeprecated, 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
 
- 
neDeprecated, 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 property
- parameter- The parameter that provides the value
- Returns:
- An instance of Query.Equals
 
- 
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.- Parameters:
- property- The property
- parameter- The parameter that provides the value
- Returns:
- An instance of Query.In
 
- 
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.- Parameters:
- property- The property
- parameter- The parameter that provides the value
- Returns:
- An instance of Query.In
 
- 
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.- Parameters:
- property- The property
- subquery- The subquery
- Returns:
- An instance of Query.In
 
- 
notInDeprecated, 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 property
- subquery- The subquery
- Returns:
- An instance of Query.In
 
- 
likeDeprecated, 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 name
- expression- The expression
- Returns:
- An instance of Query.Like
 
- 
regexDeprecated, 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 name
- expression- The expression
- Returns:
- An instance of Query.Like
 
- 
startsWithDeprecated, 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 name
- expression- The expression
- Returns:
- An instance of Query.StartsWith
 
- 
containsDeprecated, 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 name
- expression- The expression
- Returns:
- An instance of Query.Constains
 
- 
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.- Parameters:
- property- The property name
- expression- The expression
- Returns:
- An instance of Query.EndsWith
 
- 
ilikeDeprecated, for removal: This API element is subject to removal in a future version.Case-insensitive like.- Parameters:
- property- The property
- expression- The expression
- Returns:
- An ILike expression
 
- 
rlikeDeprecated, 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 name
- expression- The expression
- Returns:
- An instance of Query.RLike
 
- 
andDeprecated, for removal: This API element is subject to removal in a future version.Logical OR.- Parameters:
- a- The left criterion
- b- The right criterion
- Returns:
- The criterion
 
- 
orDeprecated, for removal: This API element is subject to removal in a future version.Logical OR.- Parameters:
- a- The left criterion
- b- The right criterion
- Returns:
- The criterion
 
- 
betweenDeprecated, 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 property
- start- The start of the range
- end- The end of the range
- Returns:
- The Between instance
 
- 
gtDeprecated, 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 property
- parameter- The parameter that provides the value
- Returns:
- The GreaterThan instance
 
- 
ltDeprecated, 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 property
- parameter- The parameter that provides the value
- Returns:
- The LessThan instance
 
- 
gteDeprecated, 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 property
- parameter- The parameter that provides the value
- Returns:
- The LessThan instance
 
- 
lteDeprecated, 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 property
- parameter- The parameter that provides the value
- Returns:
- The LessThan instance
 
- 
isNullDeprecated, 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
 
- 
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).- Parameters:
- property- The property name
- Returns:
- The IsEmpty instance
 
- 
isNotEmptyDeprecated, 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
 
- 
isNotNullDeprecated, 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
 
- 
isTrueDeprecated, 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
 
- 
isFalseDeprecated, 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
 
- 
sizeEqDeprecated, 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 property
- size- The size to restrict
- Returns:
- The result
 
- 
sizeGtDeprecated, 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 property
- size- The size to restrict
- Returns:
- The result
 
- 
sizeGeDeprecated, 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 property
- size- The size to restrict
- Returns:
- The result
 
- 
sizeLeDeprecated, 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 name
- size- The size to constrain by
- Returns:
- A Criterion instance
 
- 
sizeLtDeprecated, 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 name
- size- The size to constrain by
- Returns:
- A Criterion instance
 
- 
sizeNeDeprecated, 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 name
- size- The size to constrain by
- Returns:
- A Criterion instance
 
- 
eqPropertyDeprecated, 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 property
- otherPropertyName- The other property
- Returns:
- The criterion instance
 
- 
nePropertypublic 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 property
- otherPropertyName- The other property
- Returns:
- This criterion instance
 
- 
gtPropertypublic 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 property
- otherPropertyName- The other property
- Returns:
- The criterion
 
- 
gePropertypublic 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 property
- otherPropertyName- The other property
- Returns:
- The criterion
 
- 
ltPropertyDeprecated, 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 property
- otherPropertyName- The other property
- Returns:
- The criterion
 
- 
lePropertypublic 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 property
- otherPropertyName- The other property
- Returns:
- The criterion
 
- 
arrayContainsDeprecated, 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 property
- parameter- The parameter that provides the value
- Returns:
- An instance of Query.ArrayContains
 
 
-