Interface PersistentAssociationPath<OwnerType,AssociatedEntityType>
- Type Parameters:
OwnerType- The association owner typeAssociatedEntityType- The association entity type
- All Superinterfaces:
jakarta.persistence.criteria.Expression<AssociatedEntityType>,jakarta.persistence.criteria.FetchParent<OwnerType,,AssociatedEntityType> jakarta.persistence.criteria.From<OwnerType,,AssociatedEntityType> IExpression<AssociatedEntityType>,ISelection<AssociatedEntityType>,jakarta.persistence.criteria.Join<OwnerType,,AssociatedEntityType> jakarta.persistence.criteria.Path<AssociatedEntityType>,PersistentEntityFrom<OwnerType,,AssociatedEntityType> PersistentEntityJoin<OwnerType,,AssociatedEntityType> PersistentEntityPath<AssociatedEntityType>,PersistentPropertyPath<AssociatedEntityType>,jakarta.persistence.criteria.Selection<AssociatedEntityType>,jakarta.persistence.TupleElement<AssociatedEntityType>
- All Known Subinterfaces:
PersistentCollectionAssociationPath<OwnerType,,AssociatedEntityType> PersistentListAssociationPath<OwnerType,,AssociatedEntityType> PersistentSetAssociationPath<OwnerType,AssociatedEntityType>
public interface PersistentAssociationPath<OwnerType,AssociatedEntityType>
extends PersistentEntityJoin<OwnerType,AssociatedEntityType>, PersistentPropertyPath<AssociatedEntityType>
The persistent entity association path.
- Since:
- 3.2
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<Association> asPath()default <K,V, M extends Map<K, V>>
jakarta.persistence.criteria.Expression<M> get(jakarta.persistence.metamodel.MapAttribute<AssociatedEntityType, K, V> map) default <E,C extends Collection<E>>
jakarta.persistence.criteria.Expression<C> get(jakarta.persistence.metamodel.PluralAttribute<AssociatedEntityType, C, E> collection) default <Y> PersistentPropertyPath<Y> get(jakarta.persistence.metamodel.SingularAttribute<? super AssociatedEntityType, Y> attribute) <Y> PersistentPropertyPath<Y> Get a persistent property path.default jakarta.persistence.metamodel.Attribute<? super OwnerType, ?> default jakarta.persistence.criteria.JoinTypedefault jakarta.persistence.metamodel.Bindable<AssociatedEntityType> getModel()default @Nullable jakarta.persistence.criteria.PredicategetOn()default PersistentAssociationPathjoin(jakarta.persistence.metamodel.SingularAttribute<? super AssociatedEntityType, Y> attribute) join(jakarta.persistence.metamodel.SingularAttribute<? super AssociatedEntityType, Y> attribute, Join.Type jt) Joins the entity with specific join type.join(jakarta.persistence.metamodel.SingularAttribute<? super AssociatedEntityType, Y> attribute, jakarta.persistence.criteria.JoinType jt) <X,Y> PersistentAssociationPath <X, Y> <X,Y> PersistentAssociationPath <X, Y> Joins the entity with specific join type.<X,Y> PersistentAssociationPath <X, Y> Joins the entity with specific join type.<X,Y> PersistentAssociationPath <X, Y> default jakarta.persistence.criteria.Join<OwnerType, AssociatedEntityType> default jakarta.persistence.criteria.Join<OwnerType, AssociatedEntityType> on(jakarta.persistence.criteria.Predicate... restrictions) voidSet join alias.voidSet join type.default voidvisitExpression(ExpressionVisitor expressionVisitor) Visit the expression.Methods inherited from interface jakarta.persistence.criteria.Expression
cast, equalTo, equalTo, notEqualTo, notEqualToMethods inherited from interface jakarta.persistence.criteria.FetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetchesMethods inherited from interface jakarta.persistence.criteria.From
getCorrelationParent, getJoins, isCorrelated, join, join, join, join, join, join, joinMap, joinMapMethods inherited from interface io.micronaut.data.model.jpa.criteria.IExpression
as, getJavaType, in, in, in, in, visitSelectionMethods inherited from interface io.micronaut.data.model.jpa.criteria.ISelection
alias, getAlias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface jakarta.persistence.criteria.Join
getParentMethods inherited from interface jakarta.persistence.criteria.Path
get, get, getParentPath, typeMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityFrom
getPersistentJoins, join, join, join, join, join, join, joinCollection, joinCollection, joinList, joinList, joinSet, joinSetMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityPath
getPersistentEntityMethods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentPropertyPath
getAssociations, getExpressionType, getPathAsString, isNotNull, isNull
-
Method Details
-
getProperty
Association getProperty()- Specified by:
getPropertyin interfacePersistentPropertyPath<OwnerType>
-
getAssociation
Association getAssociation() -
getPropertyPath
- Specified by:
getPropertyPathin interfacePersistentPropertyPath<OwnerType>
-
getAssociationJoinType
Join.Type getAssociationJoinType()- Returns:
- The join type
-
getJoinType
default jakarta.persistence.criteria.JoinType getJoinType()- Specified by:
getJoinTypein interfacejakarta.persistence.criteria.Join<OwnerType,AssociatedEntityType>
-
setAssociationJoinType
Set join type.- Parameters:
type- The join type
-
setAlias
Set join alias.- Parameters:
alias- The alias
-
asPath
-
on
default jakarta.persistence.criteria.Join<OwnerType,AssociatedEntityType> on(jakarta.persistence.criteria.Expression<Boolean> restriction) - Specified by:
onin interfacejakarta.persistence.criteria.Join<OwnerType,AssociatedEntityType>
-
on
default jakarta.persistence.criteria.Join<OwnerType,AssociatedEntityType> on(jakarta.persistence.criteria.Predicate... restrictions) - Specified by:
onin interfacejakarta.persistence.criteria.Join<OwnerType,AssociatedEntityType>
-
getOn
default @Nullable jakarta.persistence.criteria.Predicate getOn()- Specified by:
getOnin interfacejakarta.persistence.criteria.Join<OwnerType,AssociatedEntityType>
-
getAttribute
- Specified by:
getAttributein interfacejakarta.persistence.criteria.Join<OwnerType,AssociatedEntityType>
-
getModel
- Specified by:
getModelin interfacejakarta.persistence.criteria.Path<OwnerType>
-
visitExpression
Description copied from interface:IExpressionVisit the expression.- Specified by:
visitExpressionin interfaceIExpression<OwnerType>- Parameters:
expressionVisitor- The expression visitor
-
get
Description copied from interface:PersistentEntityPathGet a persistent property path.- Specified by:
getin interfacejakarta.persistence.criteria.Path<OwnerType>- Specified by:
getin interfacePersistentEntityPath<OwnerType>- Specified by:
getin interfacePersistentPropertyPath<OwnerType>- Type Parameters:
Y- The property type- Parameters:
attributeName- The property name- Returns:
- The property path
-
get
default <Y> PersistentPropertyPath<Y> get(jakarta.persistence.metamodel.SingularAttribute<? super AssociatedEntityType, Y> attribute) - Specified by:
getin interfacejakarta.persistence.criteria.Path<OwnerType>- Specified by:
getin interfacePersistentEntityPath<OwnerType>- Specified by:
getin interfacePersistentPropertyPath<OwnerType>
-
get
default <E,C extends Collection<E>> jakarta.persistence.criteria.Expression<C> get(jakarta.persistence.metamodel.PluralAttribute<AssociatedEntityType, C, E> collection) - Specified by:
getin interfacePersistentEntityPath<OwnerType>- Specified by:
getin interfacePersistentPropertyPath<OwnerType>
-
get
default <K,V, jakarta.persistence.criteria.Expression<M> getM extends Map<K, V>> (jakarta.persistence.metamodel.MapAttribute<AssociatedEntityType, K, V> map) - Specified by:
getin interfacePersistentEntityPath<OwnerType>- Specified by:
getin interfacePersistentPropertyPath<OwnerType>
-
join
- Specified by:
joinin interfacejakarta.persistence.criteria.From<OwnerType,AssociatedEntityType> - Specified by:
joinin interfacePersistentEntityFrom<OwnerType,AssociatedEntityType>
-
join
Description copied from interface:PersistentEntityFromJoins the entity with specific join type.- Specified by:
joinin interfacePersistentEntityFrom<OwnerType,AssociatedEntityType> - Type Parameters:
X- The association owner typeY- The association entity type- Parameters:
attributeName- The joined associated propertyjoinType- The join type- Returns:
- The joined entity
-
join
Description copied from interface:PersistentEntityFromJoins the entity with specific join type.- Specified by:
joinin interfacePersistentEntityFrom<OwnerType,AssociatedEntityType> - Type Parameters:
X- The association owner typeY- The association entity type- Parameters:
attributeName- The joined associated propertyjoinType- The join typealias- The join alias- Returns:
- The joined entity
-
join
<X,Y> PersistentAssociationPath<X,Y> join(String attributeName, jakarta.persistence.criteria.JoinType jt) - Specified by:
joinin interfacejakarta.persistence.criteria.From<OwnerType,AssociatedEntityType> - Specified by:
joinin interfacePersistentEntityFrom<OwnerType,AssociatedEntityType>
-
join
<Y> PersistentAssociationPath<AssociatedEntityType,Y> join(jakarta.persistence.metamodel.SingularAttribute<? super AssociatedEntityType, Y> attribute, jakarta.persistence.criteria.JoinType jt) - Specified by:
joinin interfacejakarta.persistence.criteria.From<OwnerType,AssociatedEntityType> - Specified by:
joinin interfacePersistentEntityFrom<OwnerType,AssociatedEntityType>
-
join
<Y> PersistentAssociationPath<AssociatedEntityType,Y> join(jakarta.persistence.metamodel.SingularAttribute<? super AssociatedEntityType, Y> attribute) - Specified by:
joinin interfacejakarta.persistence.criteria.From<OwnerType,AssociatedEntityType> - Specified by:
joinin interfacePersistentEntityFrom<OwnerType,AssociatedEntityType>
-
join
<Y> PersistentAssociationPath<AssociatedEntityType,Y> join(jakarta.persistence.metamodel.SingularAttribute<? super AssociatedEntityType, Y> attribute, Join.Type jt) Description copied from interface:PersistentEntityFromJoins the entity with specific join type.- Specified by:
joinin interfacePersistentEntityFrom<OwnerType,AssociatedEntityType> - Type Parameters:
Y- The association entity type- Parameters:
attribute- The attributejt- The join type- Returns:
- The joined entity
-