Package io.micronaut.data.model.query
Class AssociationQuery
- java.lang.Object
-
- io.micronaut.data.model.query.DefaultQuery
-
- io.micronaut.data.model.query.AssociationQuery
-
- All Implemented Interfaces:
Criteria
,QueryModel
,QueryModel.Criterion
public class AssociationQuery extends DefaultQuery implements QueryModel.Criterion
Extends a query and allows querying an association.- Since:
- 1.0
- Author:
- graemerocher
-
-
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.CountProjection, QueryModel.Criterion, QueryModel.Disjunction, QueryModel.DistinctProjection, QueryModel.DistinctPropertyProjection, 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 Summary
Constructors Constructor Description AssociationQuery(java.lang.String path, Association association)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Association
getAssociation()
java.lang.String
getPath()
-
Methods inherited from class io.micronaut.data.model.query.DefaultQuery
add, allEq, and, and, between, conjunction, contains, createQuery, disjunction, endsWith, eq, eqAll, eqProperty, forUpdate, ge, geAll, geProperty, geSome, getCriteria, getEntity, getJoinPath, getJoinPaths, getMax, getOffset, getPersistentEntity, getProjections, getSort, gt, gtAll, gte, gtProperty, gtSome, idEq, ilike, inList, inList, isEmpty, isFalse, isForUpdate, isNotEmpty, isNotNull, isNull, isTrue, join, join, le, leAll, leProperty, leSome, like, lt, ltAll, lte, ltProperty, ltSome, max, ne, negation, neProperty, not, notIn, offset, or, or, projections, rlike, sizeEq, sizeGe, sizeGt, sizeLe, sizeLt, sizeNe, sort, startsWith, versionEq
-
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 Detail
-
AssociationQuery
public AssociationQuery(java.lang.String path, @NonNull Association association)
Default constructor.- Parameters:
path
- The association pathassociation
- The association.
-
-
Method Detail
-
getPath
public java.lang.String getPath()
- Returns:
- The path to the association
-
getAssociation
public Association getAssociation()
- Returns:
- The association to be queried.
-
-