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
Models a query that can be executed against a data store.
- Since:
- 1.0
- Author:
- Graeme Rocher
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.data.model.query.QueryModelQueryModel.ArrayContains, QueryModel.AvgProjection, QueryModel.Between, QueryModel.Conjunction, QueryModel.Contains, QueryModel.CountDistinctProjection, 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.SizeEquals, QueryModel.SizeGreaterThan, QueryModel.SizeGreaterThanEquals, QueryModel.SizeLessThan, QueryModel.SizeLessThanEquals, QueryModel.SizeNotEquals, QueryModel.StartsWith, QueryModel.SubqueryCriterion, QueryModel.SumProjection, QueryModel.VersionEquals
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefaultQuery(@NonNull PersistentEntity entity) Default constructor.
- 
Method SummaryModifier and TypeMethodDescription@NonNull QueryModeladd(QueryModel.Criterion criterion) Adds the specified criterion instance to the query.@NonNull DefaultQueryShortcut to restrict the query to multiple given property values.@NonNull QueryModelCreates a logical conjunction.Creates a conjunction using two specified criterion.Restricts the results by the given property value range.Creates a conjunction (AND) query.@NonNull QueryModelRestricts the property match to strings containing with the given value.createQuery(String associationName) Creates an association query.Creates a disjunction (OR) query.@NonNull QueryModelRestricts the property match to strings ending with the given value.@NonNull DefaultQueryRestricts the results by the given properties value.@NonNull QueryModelCreates a subquery criterion that ensures the given property is equals to all the given returned values.@NonNull DefaultQueryeqProperty(@NonNull String propertyName, @NonNull String otherPropertyName) Constrains a property to be equal to a specified other property.voidLock the selected entities.Used to restrict a value to be greater than or equal to the given value.@NonNull QueryModelCreates a subquery criterion that ensures the given property is greater than or equals to all the given returned values.@NonNull DefaultQuerygeProperty(@NonNull String propertyName, @NonNull String otherPropertyName) Constrains a property to be greater than or equal to a specified other property.@NonNull QueryModelCreates a subquery criterion that ensures the given property is greater than or equal to some of the given values.getJoinPath(String path) Obtain the joint for for a given association.intgetMax()Get the pageSize results to return.longGet the offset of the query.@NonNull PersistentEntity@NonNull List<QueryModel.Projection>getSort()The sort to apply.@NonNull DefaultQueryUsed to restrict a value to be greater than the given value.@NonNull QueryModelCreates a subquery criterion that ensures the given property is greater than all the given returned values.Used to restrict a value to be greater than or equal to the given value.@NonNull DefaultQuerygtProperty(@NonNull String propertyName, @NonNull String otherPropertyName) Constrains a property to be greater than a specified other property.@NonNull QueryModelCreates a subquery criterion that ensures the given property is greater than some of the given values.@NonNull DefaultQueryRestricts the results by the given properties value.@NonNull DefaultQueryCreates an ilike Criterion based on the specified property name and value.@NonNull DefaultQueryinList(@NonNull String propertyName, @NonNull QueryModel subquery) Creates an "in" Criterion using a subquery.Restricts the results by the given property values.@NonNull DefaultQueryUsed to restrict a value to be empty (such as a blank string or an empty collection).@NonNull QueryModelCreates a criterion that asserts the given property is false.booleanWhether to lock the selected entities.@NonNull DefaultQueryisNotEmpty(@NonNull String property) Used to restrict a value to be not empty (such as a blank string or an empty collection).@NonNull DefaultQueryUsed to restrict a property to be not null.@NonNull DefaultQueryUsed to restrict a property to be null.@NonNull QueryModelCreates a criterion that asserts the given property is true.Specifies whether a join query should be used (if join queries are supported by the underlying datastore).Used to restrict a value to be less than or equal to the given value.@NonNull QueryModelCreates a subquery criterion that ensures the given property is less than or equal to all the given returned values.@NonNull DefaultQueryleProperty(String propertyName, @NonNull String otherPropertyName) Constrains a property to be less than or equal to a specified other property.@NonNull QueryModelCreates a subquery criterion that ensures the given property is less than or equal to some of the given values.@NonNull DefaultQueryCreates a like Criterion based on the specified property name and value.Used to restrict a value to be less than the given value.@NonNull QueryModelCreates a subquery criterion that ensures the given property is less than all the given returned values.Used to restrict a value to be less than or equal to the given value.@NonNull DefaultQueryltProperty(@NonNull String propertyName, @NonNull String otherPropertyName) Constrains a property to be less than a specified other property.@NonNull QueryModelCreates a subquery criterion that ensures the given property is less than some of the given values.max(int max) Defines the maximum number of results to return.@NonNull QueryModelCreates a "not equals" Criterion based on the specified property name and value.negation()Creates a negation of several criterion.@NonNull DefaultQueryneProperty(@NonNull String propertyName, @NonNull String otherPropertyName) Constrains a property to be not equal to a specified other property.@NonNull QueryModelCreates a logical negation.@NonNull DefaultQuerynotIn(@NonNull String propertyName, @NonNull QueryModel subquery) Creates a negated "in" Criterion using a subquery.offset(long offset) Defines the offset (the first result index) of the query.@NonNull QueryModelCreates a logical disjunction.Creates a disjunction using two specified criterion.@NonNull DefaultQueryCreates an rlike Criterion based on the specified property name and value.@NonNull DefaultQueryCreates a Criterion that constrains a collection property by size.@NonNull DefaultQueryCreates a Criterion that constrains a collection property to be greater than or equal to the given size.@NonNull DefaultQueryCreates a Criterion that constrains a collection property to be greater than the given size.@NonNull DefaultQueryCreates a Criterion that constrains a collection property to be less than or equal to the given size.@NonNull DefaultQueryCreates a Criterion that constrains a collection property to be less than to the given size.@NonNull DefaultQueryCreates a Criterion that constrains a collection property to be not equal to the given size.@NonNull QueryModelApply the given sort.@NonNull QueryModelstartsWith(@NonNull String propertyName, @NonNull Object parameter) Restricts the property match to strings starting with the given value.Creates that restricts the version to the given value.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.data.model.query.QueryModeljoin, join
- 
Constructor Details- 
DefaultQueryDefault constructor.- Parameters:
- entity- The entity the query applies to.
 
 
- 
- 
Method Details- 
getJoinPaths- Specified by:
- getJoinPathsin interface- QueryModel
- Returns:
- The join paths.
 
- 
createQueryCreates an association query.- Parameters:
- associationName- The assocation name
- Returns:
- The Query instance
 
- 
getPersistentEntity- Specified by:
- getPersistentEntityin interface- QueryModel
- Returns:
- The entity the criteria applies to
 
- 
getCriteria- Specified by:
- getCriteriain interface- QueryModel
- Returns:
- The criteria defined by this query
 
- 
getProjections- Specified by:
- getProjectionsin interface- QueryModel
- Returns:
- The projections that apply to this query.
 
- 
getJoinPathObtain the joint for for a given association.- Specified by:
- getJoinPathin interface- QueryModel
- Parameters:
- path- The path to the association
- Returns:
- The join type
 
- 
joinSpecifies whether a join query should be used (if join queries are supported by the underlying datastore).- Specified by:
- joinin interface- QueryModel
- Parameters:
- path- The path
- joinType- The joinType
- alias- The alias
- Returns:
- The query
 
- 
projections- Specified by:
- projectionsin interface- QueryModel
- Returns:
- The projections for this query.
 
- 
addAdds the specified criterion instance to the query.- Specified by:
- addin interface- QueryModel
- Parameters:
- criterion- The criterion instance
- Returns:
- This query
 
- 
getEntity- Returns:
- The PersistentEntity being query
 
- 
disjunctionCreates a disjunction (OR) query.- Returns:
- The Junction instance
 
- 
conjunctionCreates a conjunction (AND) query.- Returns:
- The Junction instance
 
- 
negationCreates a negation of several criterion.- Returns:
- The negation
 
- 
maxDefines the maximum number of results to return.- Specified by:
- maxin interface- QueryModel
- Parameters:
- max- The pageSize results
- Returns:
- This query instance
 
- 
getMaxpublic int getMax()Description copied from interface:QueryModelGet the pageSize results to return.- Specified by:
- getMaxin interface- QueryModel
- Returns:
- The pageSize results
 
- 
getOffsetpublic long getOffset()Description copied from interface:QueryModelGet the offset of the query.- Specified by:
- getOffsetin interface- QueryModel
- Returns:
- The offset
 
- 
forUpdatepublic void forUpdate()Description copied from interface:QueryModelLock the selected entities.- Specified by:
- forUpdatein interface- QueryModel
 
- 
isForUpdatepublic boolean isForUpdate()Description copied from interface:QueryModelWhether to lock the selected entities.- Specified by:
- isForUpdatein interface- QueryModel
- Returns:
- true if the the selected entities should be locked
 
- 
offsetDefines the offset (the first result index) of the query.- Specified by:
- offsetin interface- QueryModel
- Parameters:
- offset- The offset
- Returns:
- This query instance
 
- 
getSortDescription copied from interface:QueryModelThe sort to apply.- Specified by:
- getSortin interface- QueryModel
- Returns:
- The sort
 
- 
sortDescription copied from interface:QueryModelApply the given sort.- Specified by:
- sortin interface- QueryModel
- Parameters:
- sort- The sort to apply
- Returns:
- This query
 
- 
eq@NonNull public @NonNull DefaultQuery eq(@NonNull @NonNull String property, @NonNull @NonNull Object parameter) Restricts the results by the given properties value.- Specified by:
- eqin interface- Criteria
- Specified by:
- eqin interface- QueryModel
- Parameters:
- property- The name of the property
- parameter- The parameter that provides the value
- Returns:
- This query instance
 
- 
allEqShortcut to restrict the query to multiple given property values.- Specified by:
- allEqin interface- Criteria
- Specified by:
- allEqin interface- QueryModel
- Parameters:
- values- The values
- Returns:
- This query instance
 
- 
eqAll@NonNull public @NonNull QueryModel eqAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is equals to all the given returned values.- Specified by:
- eqAllin interface- Criteria
- Specified by:
- eqAllin interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- A subquery
- Returns:
- This criterion instance
 
- 
gtAll@NonNull public @NonNull QueryModel gtAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is greater than all the given returned values.- Specified by:
- gtAllin interface- Criteria
- Specified by:
- gtAllin interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- A subquery
- Returns:
- This criterion instance
 
- 
ltAll@NonNull public @NonNull QueryModel ltAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is less than all the given returned values.- Specified by:
- ltAllin interface- Criteria
- Specified by:
- ltAllin interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- A subquery
- Returns:
- This criterion instance
 
- 
geAll@NonNull public @NonNull QueryModel geAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is greater than or equals to all the given returned values.- Specified by:
- geAllin interface- Criteria
- Specified by:
- geAllin interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- A subquery
- Returns:
- This criterion instance
 
- 
leAll@NonNull public @NonNull QueryModel leAll(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is less than or equal to all the given returned values.- Specified by:
- leAllin interface- Criteria
- Specified by:
- leAllin interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- A subquery
- Returns:
- This criterion instance
 
- 
gtSome@NonNull public @NonNull QueryModel gtSome(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is greater than some of the given values.- Specified by:
- gtSomein interface- Criteria
- Specified by:
- gtSomein interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- The property value
- Returns:
- This Criteria instance
 
- 
geSome@NonNull public @NonNull QueryModel geSome(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is greater than or equal to some of the given values.- Specified by:
- geSomein interface- Criteria
- Specified by:
- geSomein interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- The property value
- Returns:
- This Criteria instance
 
- 
ltSome@NonNull public @NonNull QueryModel ltSome(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is less than some of the given values.- Specified by:
- ltSomein interface- Criteria
- Specified by:
- ltSomein interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- The property value
- Returns:
- This Criteria instance
 
- 
leSome@NonNull public @NonNull QueryModel leSome(@NonNull @NonNull String propertyName, @NonNull @NonNull Criteria propertyValue) Description copied from interface:CriteriaCreates a subquery criterion that ensures the given property is less than or equal to some of the given values.- Specified by:
- leSomein interface- Criteria
- Specified by:
- leSomein interface- QueryModel
- Parameters:
- propertyName- The property name
- propertyValue- The property value
- Returns:
- This Criteria instance
 
- 
versionEqDescription copied from interface:CriteriaCreates that restricts the version to the given value.- Specified by:
- versionEqin interface- Criteria
- Specified by:
- versionEqin interface- QueryModel
- Parameters:
- value- The parameter that provides the value
- Returns:
- The criteria
 
- 
isEmptyUsed to restrict a value to be empty (such as a blank string or an empty collection).- Specified by:
- isEmptyin interface- Criteria
- Specified by:
- isEmptyin interface- QueryModel
- Parameters:
- property- The property name
- Returns:
- The criteria
 
- 
isNotEmptyUsed to restrict a value to be not empty (such as a blank string or an empty collection).- Specified by:
- isNotEmptyin interface- Criteria
- Specified by:
- isNotEmptyin interface- QueryModel
- Parameters:
- property- The property name
- Returns:
- The criteria
 
- 
isNullUsed to restrict a property to be null.- Specified by:
- isNullin interface- Criteria
- Specified by:
- isNullin interface- QueryModel
- Parameters:
- property- The property name
- Returns:
- The criteria
 
- 
isTrueDescription copied from interface:CriteriaCreates a criterion that asserts the given property is true.- Specified by:
- isTruein interface- Criteria
- Specified by:
- isTruein interface- QueryModel
- Parameters:
- propertyName- The property name
- Returns:
- The criteria
 
- 
isFalseDescription copied from interface:CriteriaCreates a criterion that asserts the given property is false.- Specified by:
- isFalsein interface- Criteria
- Specified by:
- isFalsein interface- QueryModel
- Parameters:
- propertyName- The property name
- Returns:
- The criteria
 
- 
isNotNullUsed to restrict a property to be not null.- Specified by:
- isNotNullin interface- Criteria
- Specified by:
- isNotNullin interface- QueryModel
- Parameters:
- property- The property name
- Returns:
- The criteria
 
- 
idEqRestricts the results by the given properties value.- Specified by:
- idEqin interface- Criteria
- Specified by:
- idEqin interface- QueryModel
- 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) Description copied from interface:CriteriaCreates a "not equals" Criterion based on the specified property name and value.- Specified by:
- nein interface- Criteria
- Specified by:
- nein interface- QueryModel
- Parameters:
- propertyName- The property name
- parameter- The parameter that provides the value
- Returns:
- The criteria
 
- 
gt@NonNull public @NonNull DefaultQuery gt(@NonNull @NonNull String property, @NonNull @NonNull Object value) Used to restrict a value to be greater than the given value.- Specified by:
- gtin interface- Criteria
- Specified by:
- gtin interface- QueryModel
- Parameters:
- property- The name of the property
- value- The value to restrict by
- Returns:
- This query instance
 
- 
gteUsed to restrict a value to be greater than or equal to the given value.- Specified by:
- gtein interface- Criteria
- Specified by:
- gtein interface- QueryModel
- Parameters:
- property- The name of the property
- value- The value to restrict by
- Returns:
- This query instance
 
- 
lteUsed to restrict a value to be less than or equal to the given value.- Specified by:
- ltein interface- Criteria
- Specified by:
- ltein interface- QueryModel
- Parameters:
- property- The name of the property
- value- The value to restrict by
- Returns:
- This query instance
 
- 
geUsed to restrict a value to be greater than or equal to the given value.- Specified by:
- gein interface- Criteria
- Specified by:
- gein interface- QueryModel
- Parameters:
- property- The name of the property
- value- The value to restrict by
- Returns:
- This query instance
 
- 
leUsed to restrict a value to be less than or equal to the given value.- Specified by:
- lein interface- Criteria
- Specified by:
- lein interface- QueryModel
- Parameters:
- property- The name of the property
- value- The value to restrict by
- Returns:
- This query instance
 
- 
ltUsed to restrict a value to be less than the given value.- Specified by:
- ltin interface- Criteria
- Specified by:
- ltin interface- QueryModel
- Parameters:
- property- The name of the property
- value- The value to restrict by
- Returns:
- This query instance
 
- 
like@NonNull public @NonNull DefaultQuery like(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Description copied from interface:CriteriaCreates a like Criterion based on the specified property name and value.- Specified by:
- likein interface- Criteria
- Specified by:
- likein interface- QueryModel
- Parameters:
- propertyName- The property name
- parameter- The parameter that provides the value
- Returns:
- The criteria
 
- 
startsWith@NonNull public @NonNull QueryModel startsWith(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Description copied from interface:CriteriaRestricts the property match to strings starting with the given value.- Specified by:
- startsWithin interface- Criteria
- Specified by:
- startsWithin interface- QueryModel
- Parameters:
- propertyName- The property name
- parameter- The parameter that provides the value
- Returns:
- The criteria
 
- 
endsWith@NonNull public @NonNull QueryModel endsWith(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Description copied from interface:CriteriaRestricts the property match to strings ending with the given value.- Specified by:
- endsWithin interface- Criteria
- Specified by:
- endsWithin interface- QueryModel
- Parameters:
- propertyName- The property name
- parameter- The parameter that provides the value
- Returns:
- The criteria
 
- 
contains@NonNull public @NonNull QueryModel contains(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Description copied from interface:CriteriaRestricts the property match to strings containing with the given value.- Specified by:
- containsin interface- Criteria
- Specified by:
- containsin interface- QueryModel
- Parameters:
- propertyName- The property name
- parameter- The parameter that provides the value
- Returns:
- The criteria
 
- 
ilike@NonNull public @NonNull DefaultQuery ilike(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Description copied from interface:CriteriaCreates an ilike Criterion based on the specified property name and value. Unlike a like condition, ilike is case insensitive.- Specified by:
- ilikein interface- Criteria
- Specified by:
- ilikein interface- QueryModel
- Parameters:
- propertyName- The property name
- parameter- The parameter that provides the value
- Returns:
- The criteria
 
- 
rlike@NonNull public @NonNull DefaultQuery rlike(@NonNull @NonNull String propertyName, @NonNull @NonNull Object parameter) Description copied from interface:CriteriaCreates an rlike Criterion based on the specified property name and value.- Specified by:
- rlikein interface- Criteria
- Specified by:
- rlikein interface- QueryModel
- Parameters:
- propertyName- The property name
- parameter- The parameter that provides the value
- Returns:
- The criteria
 
- 
andDescription copied from interface:CriteriaCreates a logical conjunction.- Specified by:
- andin interface- Criteria
- Specified by:
- andin interface- QueryModel
- Parameters:
- other- The other criteria
- Returns:
- This criteria
 
- 
orDescription copied from interface:CriteriaCreates a logical disjunction.- Specified by:
- orin interface- Criteria
- Specified by:
- orin interface- QueryModel
- Parameters:
- other- The other criteria
- Returns:
- This criteria
 
- 
notDescription copied from interface:CriteriaCreates a logical negation.- Specified by:
- notin interface- Criteria
- Specified by:
- notin interface- QueryModel
- Parameters:
- other- The other criteria
- Returns:
- This criteria
 
- 
inList@NonNull public @NonNull DefaultQuery inList(@NonNull @NonNull String propertyName, @NonNull @NonNull QueryModel subquery) Description copied from interface:CriteriaCreates an "in" Criterion using a subquery.- Specified by:
- inListin interface- Criteria
- Specified by:
- inListin interface- QueryModel
- Parameters:
- propertyName- The property name
- subquery- The subquery
- Returns:
- The criteria
 
- 
inListRestricts the results by the given property values.- Specified by:
- inListin interface- Criteria
- Specified by:
- inListin interface- QueryModel
- Parameters:
- property- The name of the property
- values- The values to restrict by
- Returns:
- This query instance
 
- 
notIn@NonNull public @NonNull DefaultQuery notIn(@NonNull @NonNull String propertyName, @NonNull @NonNull QueryModel subquery) Description copied from interface:CriteriaCreates a negated "in" Criterion using a subquery.- Specified by:
- notInin interface- Criteria
- Specified by:
- notInin interface- QueryModel
- Parameters:
- propertyName- The property name
- subquery- The subquery
- Returns:
- The criteria
 
- 
sizeEq@NonNull public @NonNull DefaultQuery sizeEq(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Description copied from interface:CriteriaCreates a Criterion that constrains a collection property by size.- Specified by:
- sizeEqin interface- Criteria
- Specified by:
- sizeEqin interface- QueryModel
- Parameters:
- propertyName- The property name
- size- The size to constrain by
- Returns:
- This criteria
 
- 
sizeGt@NonNull public @NonNull DefaultQuery sizeGt(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Description copied from interface:CriteriaCreates a Criterion that constrains a collection property to be greater than the given size.- Specified by:
- sizeGtin interface- Criteria
- Specified by:
- sizeGtin interface- QueryModel
- Parameters:
- propertyName- The property name
- size- The size to constrain by
- Returns:
- This criteria
 
- 
sizeGe@NonNull public @NonNull DefaultQuery sizeGe(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Description copied from interface:CriteriaCreates a Criterion that constrains a collection property to be greater than or equal to the given size.- Specified by:
- sizeGein interface- Criteria
- Specified by:
- sizeGein interface- QueryModel
- Parameters:
- propertyName- The property name
- size- The size to constrain by
- Returns:
- This criteria
 
- 
sizeLe@NonNull public @NonNull DefaultQuery sizeLe(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Description copied from interface:CriteriaCreates a Criterion that constrains a collection property to be less than or equal to the given size.- Specified by:
- sizeLein interface- Criteria
- Specified by:
- sizeLein interface- QueryModel
- Parameters:
- propertyName- The property name
- size- The size to constrain by
- Returns:
- This criteria
 
- 
sizeLt@NonNull public @NonNull DefaultQuery sizeLt(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Description copied from interface:CriteriaCreates a Criterion that constrains a collection property to be less than to the given size.- Specified by:
- sizeLtin interface- Criteria
- Specified by:
- sizeLtin interface- QueryModel
- Parameters:
- propertyName- The property name
- size- The size to constrain by
- Returns:
- This criteria
 
- 
sizeNe@NonNull public @NonNull DefaultQuery sizeNe(@NonNull @NonNull String propertyName, @NonNull @NonNull Object size) Description copied from interface:CriteriaCreates a Criterion that constrains a collection property to be not equal to the given size.- Specified by:
- sizeNein interface- Criteria
- Specified by:
- sizeNein interface- QueryModel
- Parameters:
- propertyName- The property name
- size- The size to constrain by
- Returns:
- This criteria
 
- 
eqProperty@NonNull public @NonNull DefaultQuery eqProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Description copied from interface:CriteriaConstrains a property to be equal to a specified other property.- Specified by:
- eqPropertyin interface- Criteria
- Specified by:
- eqPropertyin interface- QueryModel
- Parameters:
- propertyName- The property
- otherPropertyName- The other property
- Returns:
- This criteria
 
- 
neProperty@NonNull public @NonNull DefaultQuery neProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Description copied from interface:CriteriaConstrains a property to be not equal to a specified other property.- Specified by:
- nePropertyin interface- Criteria
- Specified by:
- nePropertyin interface- QueryModel
- Parameters:
- propertyName- The property
- otherPropertyName- The other property
- Returns:
- This criteria
 
- 
gtProperty@NonNull public @NonNull DefaultQuery gtProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Description copied from interface:CriteriaConstrains a property to be greater than a specified other property.- Specified by:
- gtPropertyin interface- Criteria
- Specified by:
- gtPropertyin interface- QueryModel
- Parameters:
- propertyName- The property
- otherPropertyName- The other property
- Returns:
- This criteria
 
- 
geProperty@NonNull public @NonNull DefaultQuery geProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Description copied from interface:CriteriaConstrains a property to be greater than or equal to a specified other property.- Specified by:
- gePropertyin interface- Criteria
- Specified by:
- gePropertyin interface- QueryModel
- Parameters:
- propertyName- The property
- otherPropertyName- The other property
- Returns:
- This criteria
 
- 
ltProperty@NonNull public @NonNull DefaultQuery ltProperty(@NonNull @NonNull String propertyName, @NonNull @NonNull String otherPropertyName) Description copied from interface:CriteriaConstrains a property to be less than a specified other property.- Specified by:
- ltPropertyin interface- Criteria
- Specified by:
- ltPropertyin interface- QueryModel
- Parameters:
- propertyName- The property
- otherPropertyName- The other property
- Returns:
- This criteria
 
- 
leProperty@NonNull public @NonNull DefaultQuery leProperty(String propertyName, @NonNull @NonNull String otherPropertyName) Description copied from interface:CriteriaConstrains a property to be less than or equal to a specified other property.- Specified by:
- lePropertyin interface- Criteria
- Specified by:
- lePropertyin interface- QueryModel
- Parameters:
- propertyName- The property
- otherPropertyName- The other property
- Returns:
- This criteria
 
- 
betweenRestricts the results by the given property value range.- Specified by:
- betweenin interface- Criteria
- Specified by:
- betweenin interface- QueryModel
- Parameters:
- property- The name of the property
- start- The start of the range
- end- The end of the range
- Returns:
- This query instance
 
- 
andCreates a conjunction using two specified criterion.- Parameters:
- a- The left hand side
- b- The right hand side
- Returns:
- This query instance
 
- 
orCreates a disjunction using two specified criterion.- Parameters:
- a- The left hand side
- b- The right hand side
- Returns:
- This query instance
 
 
-