Package io.micronaut.data.model.query
Class DefaultQuery
java.lang.Object
io.micronaut.data.model.query.DefaultQuery
- All Implemented Interfaces:
Criteria
,QueryModel
- Direct Known Subclasses:
AssociationQuery
@Deprecated(forRemoval=true,
since="4.9")
public class DefaultQuery
extends Object
implements QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by JPA criteria
Models a query that can be executed against a data store.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.data.model.query.QueryModel
QueryModel.ArrayContains, QueryModel.AvgProjection, QueryModel.Between, QueryModel.Conjunction, QueryModel.Contains, QueryModel.CountDistinctProjection, QueryModel.CountDistinctRootProjection, QueryModel.CountProjection, QueryModel.Criterion, QueryModel.Disjunction, QueryModel.DistinctProjection, QueryModel.EndsWith, QueryModel.Equals, QueryModel.EqualsAll, QueryModel.EqualsProperty, QueryModel.Exists, QueryModel.GreaterThan, QueryModel.GreaterThanAll, QueryModel.GreaterThanEquals, QueryModel.GreaterThanEqualsAll, QueryModel.GreaterThanEqualsProperty, QueryModel.GreaterThanEqualsSome, QueryModel.GreaterThanProperty, QueryModel.GreaterThanSome, QueryModel.GroupPropertyProjection, QueryModel.IdEquals, QueryModel.IdProjection, QueryModel.ILike, QueryModel.In, QueryModel.IsEmpty, QueryModel.IsFalse, QueryModel.IsNotEmpty, QueryModel.IsNotNull, QueryModel.IsNull, QueryModel.IsTrue, QueryModel.Junction, QueryModel.LessThan, QueryModel.LessThanAll, QueryModel.LessThanEquals, QueryModel.LessThanEqualsAll, QueryModel.LessThanEqualsProperty, QueryModel.LessThanEqualsSome, QueryModel.LessThanProperty, QueryModel.LessThanSome, QueryModel.Like, QueryModel.LiteralProjection, QueryModel.MaxProjection, QueryModel.MinProjection, QueryModel.Negation, QueryModel.NotEquals, QueryModel.NotEqualsAll, QueryModel.NotEqualsProperty, QueryModel.NotExists, QueryModel.NotIn, QueryModel.Projection, QueryModel.PropertyComparisonCriterion, QueryModel.PropertyCriterion, QueryModel.PropertyNameCriterion, QueryModel.PropertyProjection, QueryModel.Regex, QueryModel.RLike, QueryModel.RootEntityProjection, QueryModel.SizeEquals, QueryModel.SizeGreaterThan, QueryModel.SizeGreaterThanEquals, QueryModel.SizeLessThan, QueryModel.SizeLessThanEquals, QueryModel.SizeNotEquals, QueryModel.StartsWith, QueryModel.SubqueryCriterion, QueryModel.SumProjection, QueryModel.VersionEquals
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultQuery
(@NonNull PersistentEntity entity) Deprecated, for removal: This API element is subject to removal in a future version.Default constructor. -
Method Summary
Modifier and TypeMethodDescription@NonNull QueryModel
add
(QueryModel.Criterion criterion) Deprecated, for removal: This API element is subject to removal in a future version.Adds the specified criterion instance to the query.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Shortcut to restrict the query to multiple given property values.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a logical conjunction.Deprecated, for removal: This API element is subject to removal in a future version.Creates a conjunction using two specified criterion.Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given property value range.Deprecated, for removal: This API element is subject to removal in a future version.Creates a conjunction (AND) query.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the property match to strings containing with the given value.createQuery
(String associationName) Deprecated, for removal: This API element is subject to removal in a future version.Creates an association query.Deprecated, for removal: This API element is subject to removal in a future version.Creates a disjunction (OR) query.@NonNull QueryModel
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.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given properties value.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is equals to all the given returned values.@NonNull DefaultQuery
eqProperty
(@NonNull String propertyName, @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constrains a property to be equal to a specified other property.void
Deprecated, for removal: This API element is subject to removal in a future version.Lock the selected entities.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.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is greater than or equals to all the given returned values.@NonNull DefaultQuery
geProperty
(@NonNull String propertyName, @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constrains a property to be greater than or equal to a specified other property.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is greater than or equal to some of the given values.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getJoinPath
(String path) Deprecated, for removal: This API element is subject to removal in a future version.Obtain the joint for a given association.Deprecated, for removal: This API element is subject to removal in a future version.int
getMax()
Deprecated, for removal: This API element is subject to removal in a future version.Get the pageSize results to return.long
Deprecated, for removal: This API element is subject to removal in a future version.Get the offset of the query.@NonNull PersistentEntity
Deprecated, for removal: This API element is subject to removal in a future version.@NonNull List<QueryModel.Projection>
Deprecated, for removal: This API element is subject to removal in a future version.getSort()
Deprecated, for removal: This API element is subject to removal in a future version.The sort to apply.@NonNull DefaultQuery
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.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is greater than all the given returned values.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.@NonNull DefaultQuery
gtProperty
(@NonNull String propertyName, @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constrains a property to be greater than a specified other property.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is greater than some of the given values.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given properties value.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates an ilike Criterion based on the specified property name and value.@NonNull DefaultQuery
inList
(@NonNull String propertyName, @NonNull QueryModel subquery) Deprecated, for removal: This API element is subject to removal in a future version.Creates an "in" Criterion using a subquery.Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given property values.@NonNull DefaultQuery
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).@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a criterion that asserts the given property is false.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Whether to lock the selected entities.@NonNull DefaultQuery
isNotEmpty
(@NonNull 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 blank string or an empty collection).@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a property to be not null.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a property to be null.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a criterion that asserts the given property is true.Deprecated, for removal: This API element is subject to removal in a future version.Specifies whether a join query should be used (if join queries are supported by the underlying datastore).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.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is less than or equal to all the given returned values.@NonNull DefaultQuery
leProperty
(String propertyName, @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constrains a property to be less than or equal to a specified other property.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is less than or equal to some of the given values.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates a like Criterion based on the specified property name and value.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.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is less than all the given returned values.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.@NonNull DefaultQuery
ltProperty
(@NonNull String propertyName, @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constrains a property to be less than a specified other property.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a subquery criterion that ensures the given property is less than some of the given values.max
(int max) Deprecated, for removal: This API element is subject to removal in a future version.Defines the maximum number of results to return.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a "not equals" Criterion based on the specified property name and value.negation()
Deprecated, for removal: This API element is subject to removal in a future version.Creates a negation of several criterion.@NonNull DefaultQuery
neProperty
(@NonNull String propertyName, @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Constrains a property to be not equal to a specified other property.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a logical negation.@NonNull DefaultQuery
notIn
(@NonNull String propertyName, @NonNull QueryModel subquery) Deprecated, for removal: This API element is subject to removal in a future version.Creates a negated "in" Criterion using a subquery.offset
(long offset) Deprecated, for removal: This API element is subject to removal in a future version.Defines the offset (the first result index) of the query.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Creates a logical disjunction.Deprecated, for removal: This API element is subject to removal in a future version.Creates a disjunction using two specified criterion.Deprecated, for removal: This API element is subject to removal in a future version.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates a rlike Criterion based on the specified property name and value.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that constrains a collection property by size.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that constrains a collection property to be greater than or equal to the given size.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that constrains a collection property to be greater than the given size.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that constrains a collection property to be less than or equal to the given size.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that constrains a collection property to be less than to the given size.@NonNull DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates a Criterion that constrains a collection property to be not equal to the given size.@NonNull QueryModel
Deprecated, for removal: This API element is subject to removal in a future version.Apply the given sort.@NonNull QueryModel
startsWith
(@NonNull String propertyName, @NonNull Object parameter) 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.Deprecated, for removal: This API element is subject to removal in a future version.Creates that restricts the version to the given value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.data.model.query.QueryModel
join, join
-
Constructor Details
-
DefaultQuery
Deprecated, for removal: This API element is subject to removal in a future version.Default constructor.- Parameters:
entity
- The entity the query applies to.
-
-
Method Details
-
getJoinPaths
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getJoinPaths
in interfaceQueryModel
- Returns:
- The join paths.
-
createQuery
Deprecated, for removal: This API element is subject to removal in a future version.Creates an association query.- Parameters:
associationName
- The assocation name- Returns:
- The Query instance
-
getPersistentEntity
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getPersistentEntity
in interfaceQueryModel
- Returns:
- The entity the criteria applies to
-
getCriteria
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getCriteria
in interfaceQueryModel
- Returns:
- The criteria defined by this query
-
getProjections
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getProjections
in interfaceQueryModel
- Returns:
- The projections that apply to this query.
-
getJoinPath
Deprecated, for removal: This API element is subject to removal in a future version.Obtain the joint for a given association.- Specified by:
getJoinPath
in interfaceQueryModel
- Parameters:
path
- The path to the association- Returns:
- The join type
-
join
Deprecated, for removal: This API element is subject to removal in a future version.Specifies whether a join query should be used (if join queries are supported by the underlying datastore).- Specified by:
join
in interfaceQueryModel
- Parameters:
path
- The pathjoinType
- The joinTypealias
- The alias- Returns:
- The query
-
projections
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
projections
in interfaceQueryModel
- Returns:
- The projections for this query.
-
add
Deprecated, for removal: This API element is subject to removal in a future version.Adds the specified criterion instance to the query.- Specified by:
add
in interfaceQueryModel
- Parameters:
criterion
- The criterion instance- Returns:
- This query
-
getEntity
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The PersistentEntity being query
-
disjunction
Deprecated, for removal: This API element is subject to removal in a future version.Creates a disjunction (OR) query.- Returns:
- The Junction instance
-
conjunction
Deprecated, for removal: This API element is subject to removal in a future version.Creates a conjunction (AND) query.- Returns:
- The Junction instance
-
negation
Deprecated, for removal: This API element is subject to removal in a future version.Creates a negation of several criterion.- Returns:
- The negation
-
max
Deprecated, for removal: This API element is subject to removal in a future version.Defines the maximum number of results to return.- Specified by:
max
in interfaceQueryModel
- Parameters:
max
- The pageSize results- Returns:
- This query instance
-
getMax
public int getMax()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:QueryModel
Get the pageSize results to return.- Specified by:
getMax
in interfaceQueryModel
- Returns:
- The pageSize results
-
getOffset
public long getOffset()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:QueryModel
Get the offset of the query.- Specified by:
getOffset
in interfaceQueryModel
- Returns:
- The offset
-
forUpdate
public void forUpdate()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:QueryModel
Lock the selected entities.- Specified by:
forUpdate
in interfaceQueryModel
-
isForUpdate
public boolean isForUpdate()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:QueryModel
Whether to lock the selected entities.- Specified by:
isForUpdate
in interfaceQueryModel
- Returns:
- true if the selected entities should be locked
-
offset
Deprecated, for removal: This API element is subject to removal in a future version.Defines the offset (the first result index) of the query.- Specified by:
offset
in interfaceQueryModel
- Parameters:
offset
- The offset- Returns:
- This query instance
-
getSort
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:QueryModel
The sort to apply.- Specified by:
getSort
in interfaceQueryModel
- Returns:
- The sort
-
sort
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:QueryModel
Apply the given sort.- Specified by:
sort
in interfaceQueryModel
- Parameters:
sort
- The sort to apply- Returns:
- This query
-
eq
@NonNull public @NonNull DefaultQuery eq(@NonNull @NonNull String property, @NonNull @NonNull Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given properties value.- Specified by:
eq
in interfaceCriteria
- Specified by:
eq
in interfaceQueryModel
- Parameters:
property
- The name of the propertyparameter
- The parameter that provides the value- Returns:
- This query instance
-
allEq
Deprecated, for removal: This API element is subject to removal in a future version.Shortcut to restrict the query to multiple given property values.- Specified by:
allEq
in interfaceCriteria
- Specified by:
allEq
in interfaceQueryModel
- Parameters:
values
- The values- Returns:
- This query instance
-
eqAll
@NonNull public @NonNull QueryModel eqAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is equals to all the given returned values.- Specified by:
eqAll
in interfaceCriteria
- Specified by:
eqAll
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- A subquery- Returns:
- This criterion instance
-
gtAll
@NonNull public @NonNull QueryModel gtAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is greater than all the given returned values.- Specified by:
gtAll
in interfaceCriteria
- Specified by:
gtAll
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- A subquery- Returns:
- This criterion instance
-
ltAll
@NonNull public @NonNull QueryModel ltAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is less than all the given returned values.- Specified by:
ltAll
in interfaceCriteria
- Specified by:
ltAll
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- A subquery- Returns:
- This criterion instance
-
geAll
@NonNull public @NonNull QueryModel geAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is greater than or equals to all the given returned values.- Specified by:
geAll
in interfaceCriteria
- Specified by:
geAll
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- A subquery- Returns:
- This criterion instance
-
leAll
@NonNull public @NonNull QueryModel leAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is less than or equal to all the given returned values.- Specified by:
leAll
in interfaceCriteria
- Specified by:
leAll
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- A subquery- Returns:
- This criterion instance
-
gtSome
@NonNull public @NonNull QueryModel gtSome(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is greater than some of the given values.- Specified by:
gtSome
in interfaceCriteria
- Specified by:
gtSome
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- The property value- Returns:
- This Criteria instance
-
geSome
@NonNull public @NonNull QueryModel geSome(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is greater than or equal to some of the given values.- Specified by:
geSome
in interfaceCriteria
- Specified by:
geSome
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- The property value- Returns:
- This Criteria instance
-
ltSome
@NonNull public @NonNull QueryModel ltSome(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is less than some of the given values.- Specified by:
ltSome
in interfaceCriteria
- Specified by:
ltSome
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- The property value- Returns:
- This Criteria instance
-
leSome
@NonNull public @NonNull QueryModel leSome(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a subquery criterion that ensures the given property is less than or equal to some of the given values.- Specified by:
leSome
in interfaceCriteria
- Specified by:
leSome
in interfaceQueryModel
- Parameters:
propertyName
- The property namepropertyValue
- The property value- Returns:
- This Criteria instance
-
versionEq
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates that restricts the version to the given value.- Specified by:
versionEq
in interfaceCriteria
- Specified by:
versionEq
in interfaceQueryModel
- Parameters:
value
- The parameter that provides the value- Returns:
- The criteria
-
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).- Specified by:
isEmpty
in interfaceCriteria
- Specified by:
isEmpty
in interfaceQueryModel
- Parameters:
property
- The property name- Returns:
- The criteria
-
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 blank string or an empty collection).- Specified by:
isNotEmpty
in interfaceCriteria
- Specified by:
isNotEmpty
in interfaceQueryModel
- Parameters:
property
- The property name- Returns:
- The criteria
-
isNull
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a property to be null.- Specified by:
isNull
in interfaceCriteria
- Specified by:
isNull
in interfaceQueryModel
- Parameters:
property
- The property name- Returns:
- The criteria
-
isTrue
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a criterion that asserts the given property is true.- Specified by:
isTrue
in interfaceCriteria
- Specified by:
isTrue
in interfaceQueryModel
- Parameters:
propertyName
- The property name- Returns:
- The criteria
-
isFalse
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a criterion that asserts the given property is false.- Specified by:
isFalse
in interfaceCriteria
- Specified by:
isFalse
in interfaceQueryModel
- Parameters:
propertyName
- The property name- Returns:
- The criteria
-
isNotNull
Deprecated, for removal: This API element is subject to removal in a future version.Used to restrict a property to be not null.- Specified by:
isNotNull
in interfaceCriteria
- Specified by:
isNotNull
in interfaceQueryModel
- Parameters:
property
- The property name- Returns:
- The criteria
-
idEq
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given properties value.- Specified by:
idEq
in interfaceCriteria
- Specified by:
idEq
in interfaceQueryModel
- Parameters:
value
- The value to restrict by- Returns:
- This query instance
-
ne
@NonNull public @NonNull QueryModel ne(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a "not equals" Criterion based on the specified property name and value.- Specified by:
ne
in interfaceCriteria
- Specified by:
ne
in interfaceQueryModel
- Parameters:
propertyName
- The property nameparameter
- The parameter that provides the value- Returns:
- The criteria
-
gt
@NonNull public @NonNull DefaultQuery gt(@NonNull @NonNull String property, @NonNull @NonNull Object value) 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.- Specified by:
gt
in interfaceCriteria
- Specified by:
gt
in interfaceQueryModel
- Parameters:
property
- The name of the propertyvalue
- The value to restrict by- Returns:
- This query 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.- Specified by:
gte
in interfaceCriteria
- Specified by:
gte
in interfaceQueryModel
- Parameters:
property
- The name of the propertyvalue
- The value to restrict by- Returns:
- This query 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.- Specified by:
lte
in interfaceCriteria
- Specified by:
lte
in interfaceQueryModel
- Parameters:
property
- The name of the propertyvalue
- The value to restrict by- Returns:
- This query instance
-
ge
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.- Specified by:
ge
in interfaceCriteria
- Specified by:
ge
in interfaceQueryModel
- Parameters:
property
- The name of the propertyvalue
- The value to restrict by- Returns:
- This query instance
-
le
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.- Specified by:
le
in interfaceCriteria
- Specified by:
le
in interfaceQueryModel
- Parameters:
property
- The name of the propertyvalue
- The value to restrict by- Returns:
- This query 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.- Specified by:
lt
in interfaceCriteria
- Specified by:
lt
in interfaceQueryModel
- Parameters:
property
- The name of the propertyvalue
- The value to restrict by- Returns:
- This query instance
-
like
@NonNull public @NonNull DefaultQuery like(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a like Criterion based on the specified property name and value.- Specified by:
like
in interfaceCriteria
- Specified by:
like
in interfaceQueryModel
- Parameters:
propertyName
- The property nameparameter
- The parameter that provides the value- Returns:
- The criteria
-
startsWith
@NonNull public @NonNull QueryModel startsWith(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Restricts the property match to strings starting with the given value.- Specified by:
startsWith
in interfaceCriteria
- Specified by:
startsWith
in interfaceQueryModel
- Parameters:
propertyName
- The property nameparameter
- The parameter that provides the value- Returns:
- The criteria
-
endsWith
@NonNull public @NonNull QueryModel endsWith(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Restricts the property match to strings ending with the given value.- Specified by:
endsWith
in interfaceCriteria
- Specified by:
endsWith
in interfaceQueryModel
- Parameters:
propertyName
- The property nameparameter
- The parameter that provides the value- Returns:
- The criteria
-
contains
@NonNull public @NonNull QueryModel contains(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Restricts the property match to strings containing with the given value.- Specified by:
contains
in interfaceCriteria
- Specified by:
contains
in interfaceQueryModel
- Parameters:
propertyName
- The property nameparameter
- The parameter that provides the value- Returns:
- The criteria
-
ilike
@NonNull public @NonNull DefaultQuery ilike(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates an ilike Criterion based on the specified property name and value. Unlike a like condition, ilike is case-insensitive.- Specified by:
ilike
in interfaceCriteria
- Specified by:
ilike
in interfaceQueryModel
- Parameters:
propertyName
- The property nameparameter
- The parameter that provides the value- Returns:
- The criteria
-
rlike
@NonNull public @NonNull DefaultQuery rlike(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a rlike Criterion based on the specified property name and value.- Specified by:
rlike
in interfaceCriteria
- Specified by:
rlike
in interfaceQueryModel
- Parameters:
propertyName
- The property nameparameter
- The parameter that provides the value- Returns:
- The criteria
-
and
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a logical conjunction.- Specified by:
and
in interfaceCriteria
- Specified by:
and
in interfaceQueryModel
- Parameters:
other
- The other criteria- Returns:
- This criteria
-
or
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a logical disjunction.- Specified by:
or
in interfaceCriteria
- Specified by:
or
in interfaceQueryModel
- Parameters:
other
- The other criteria- Returns:
- This criteria
-
not
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a logical negation.- Specified by:
not
in interfaceCriteria
- Specified by:
not
in interfaceQueryModel
- Parameters:
other
- The other criteria- Returns:
- This criteria
-
inList
@NonNull public @NonNull DefaultQuery inList(@NonNull @NonNull String propertyName, @NonNull @NonNull QueryModel subquery) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates an "in" Criterion using a subquery.- Specified by:
inList
in interfaceCriteria
- Specified by:
inList
in interfaceQueryModel
- Parameters:
propertyName
- The property namesubquery
- The subquery- Returns:
- The criteria
-
inList
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given property values.- Specified by:
inList
in interfaceCriteria
- Specified by:
inList
in interfaceQueryModel
- Parameters:
property
- The name of the propertyvalues
- The values to restrict by- Returns:
- This query instance
-
notIn
@NonNull public @NonNull DefaultQuery notIn(@NonNull @NonNull String propertyName, @NonNull @NonNull QueryModel subquery) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a negated "in" Criterion using a subquery.- Specified by:
notIn
in interfaceCriteria
- Specified by:
notIn
in interfaceQueryModel
- Parameters:
propertyName
- The property namesubquery
- The subquery- Returns:
- The criteria
-
sizeEq
@NonNull public @NonNull DefaultQuery sizeEq(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a Criterion that constrains a collection property by size.- Specified by:
sizeEq
in interfaceCriteria
- Specified by:
sizeEq
in interfaceQueryModel
- Parameters:
propertyName
- The property namesize
- The size to constrain by- Returns:
- This criteria
-
sizeGt
@NonNull public @NonNull DefaultQuery sizeGt(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a Criterion that constrains a collection property to be greater than the given size.- Specified by:
sizeGt
in interfaceCriteria
- Specified by:
sizeGt
in interfaceQueryModel
- Parameters:
propertyName
- The property namesize
- The size to constrain by- Returns:
- This criteria
-
sizeGe
@NonNull public @NonNull DefaultQuery sizeGe(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a Criterion that constrains a collection property to be greater than or equal to the given size.- Specified by:
sizeGe
in interfaceCriteria
- Specified by:
sizeGe
in interfaceQueryModel
- Parameters:
propertyName
- The property namesize
- The size to constrain by- Returns:
- This criteria
-
sizeLe
@NonNull public @NonNull DefaultQuery sizeLe(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a Criterion that constrains a collection property to be less than or equal to the given size.- Specified by:
sizeLe
in interfaceCriteria
- Specified by:
sizeLe
in interfaceQueryModel
- Parameters:
propertyName
- The property namesize
- The size to constrain by- Returns:
- This criteria
-
sizeLt
@NonNull public @NonNull DefaultQuery sizeLt(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a Criterion that constrains a collection property to be less than to the given size.- Specified by:
sizeLt
in interfaceCriteria
- Specified by:
sizeLt
in interfaceQueryModel
- Parameters:
propertyName
- The property namesize
- The size to constrain by- Returns:
- This criteria
-
sizeNe
@NonNull public @NonNull DefaultQuery sizeNe(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Creates a Criterion that constrains a collection property to be not equal to the given size.- Specified by:
sizeNe
in interfaceCriteria
- Specified by:
sizeNe
in interfaceQueryModel
- Parameters:
propertyName
- The property namesize
- The size to constrain by- Returns:
- This criteria
-
eqProperty
@NonNull public @NonNull DefaultQuery eqProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Constrains a property to be equal to a specified other property.- Specified by:
eqProperty
in interfaceCriteria
- Specified by:
eqProperty
in interfaceQueryModel
- Parameters:
propertyName
- The propertyotherPropertyName
- The other property- Returns:
- This criteria
-
neProperty
@NonNull public @NonNull DefaultQuery neProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Constrains a property to be not equal to a specified other property.- Specified by:
neProperty
in interfaceCriteria
- Specified by:
neProperty
in interfaceQueryModel
- Parameters:
propertyName
- The propertyotherPropertyName
- The other property- Returns:
- This criteria
-
gtProperty
@NonNull public @NonNull DefaultQuery gtProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Constrains a property to be greater than a specified other property.- Specified by:
gtProperty
in interfaceCriteria
- Specified by:
gtProperty
in interfaceQueryModel
- Parameters:
propertyName
- The propertyotherPropertyName
- The other property- Returns:
- This criteria
-
geProperty
@NonNull public @NonNull DefaultQuery geProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Constrains a property to be greater than or equal to a specified other property.- Specified by:
geProperty
in interfaceCriteria
- Specified by:
geProperty
in interfaceQueryModel
- Parameters:
propertyName
- The propertyotherPropertyName
- The other property- Returns:
- This criteria
-
ltProperty
@NonNull public @NonNull DefaultQuery ltProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Constrains a property to be less than a specified other property.- Specified by:
ltProperty
in interfaceCriteria
- Specified by:
ltProperty
in interfaceQueryModel
- Parameters:
propertyName
- The propertyotherPropertyName
- The other property- Returns:
- This criteria
-
leProperty
@NonNull public @NonNull DefaultQuery leProperty(String propertyName, @NonNull @NonNull String otherPropertyName) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Criteria
Constrains a property to be less than or equal to a specified other property.- Specified by:
leProperty
in interfaceCriteria
- Specified by:
leProperty
in interfaceQueryModel
- Parameters:
propertyName
- The propertyotherPropertyName
- The other property- Returns:
- This criteria
-
between
Deprecated, for removal: This API element is subject to removal in a future version.Restricts the results by the given property value range.- Specified by:
between
in interfaceCriteria
- Specified by:
between
in interfaceQueryModel
- Parameters:
property
- The name of the propertystart
- The start of the rangeend
- The end of the range- Returns:
- This query instance
-
and
Deprecated, for removal: This API element is subject to removal in a future version.Creates a conjunction using two specified criterion.- Parameters:
a
- The left hand sideb
- The right hand side- Returns:
- This query instance
-
or
Deprecated, for removal: This API element is subject to removal in a future version.Creates a disjunction using two specified criterion.- Parameters:
a
- The left hand sideb
- The right hand side- Returns:
- This query instance
-