Class AbstractPersistentEntityJoinSupport<J,E>
java.lang.Object
io.micronaut.data.model.jpa.criteria.impl.AbstractPersistentEntityJoinSupport<J,E>
- Type Parameters:
J
- The associated entity owner typeE
- The association entity type
- All Implemented Interfaces:
IExpression<E>
,ISelection<E>
,PersistentEntityFrom<J,
,E> PersistentEntityPath<E>
,jakarta.persistence.criteria.Expression<E>
,jakarta.persistence.criteria.FetchParent<J,
,E> jakarta.persistence.criteria.From<J,
,E> jakarta.persistence.criteria.Path<E>
,jakarta.persistence.criteria.Selection<E>
,jakarta.persistence.TupleElement<E>
@Internal
public abstract class AbstractPersistentEntityJoinSupport<J,E>
extends Object
implements PersistentEntityFrom<J,E>
The abstract implementation of
PersistentEntityFrom
.- Since:
- 3.2
- Author:
- Denis Stepanov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract <Y> PersistentAssociationPath<E,
Y> createJoinAssociation
(@NonNull Association association, Join.Type type, @Nullable String alias) <Y> jakarta.persistence.criteria.Fetch<E,
Y> <Y> jakarta.persistence.criteria.Fetch<E,
Y> fetch
(jakarta.persistence.metamodel.PluralAttribute<? super E, ?, Y> attribute, jakarta.persistence.criteria.JoinType jt) <Y> jakarta.persistence.criteria.Fetch<E,
Y> <Y> jakarta.persistence.criteria.Fetch<E,
Y> fetch
(jakarta.persistence.metamodel.SingularAttribute<? super E, Y> attribute, jakarta.persistence.criteria.JoinType jt) <X,
Y> jakarta.persistence.criteria.Fetch<X, Y> <X,
Y> jakarta.persistence.criteria.Fetch<X, Y> <K,
V, M extends Map<K, V>>
jakarta.persistence.criteria.Expression<M><K,
C extends Collection<K>>
jakarta.persistence.criteria.Expression<C><Y> jakarta.persistence.criteria.Path<Y>
getJoins()
abstract PersistentEntity
boolean
<Y> PersistentEntityCollectionJoin<E,
Y> <Y> PersistentEntityCollectionJoin<E,
Y> join
(jakarta.persistence.metamodel.CollectionAttribute<? super E, Y> collection, jakarta.persistence.criteria.JoinType jt) <Y> PersistentEntityListJoin<E,
Y> <Y> PersistentEntityListJoin<E,
Y> join
(jakarta.persistence.metamodel.ListAttribute<? super E, Y> list, jakarta.persistence.criteria.JoinType jt) <K,
V> jakarta.persistence.criteria.MapJoin<E, K, V> <K,
V> jakarta.persistence.criteria.MapJoin<E, K, V> join
(jakarta.persistence.metamodel.MapAttribute<? super E, K, V> map, jakarta.persistence.criteria.JoinType jt) <Y> PersistentEntitySetJoin<E,
Y> <Y> PersistentEntitySetJoin<E,
Y> join
(jakarta.persistence.metamodel.SetAttribute<? super E, Y> set, jakarta.persistence.criteria.JoinType jt) <Y> PersistentEntityJoin<E,
Y> <Y> PersistentEntityJoin<E,
Y> join
(jakarta.persistence.metamodel.SingularAttribute<? super E, Y> attribute, jakarta.persistence.criteria.JoinType jt) <X,
Y> PersistentEntityJoin<X, Y> <X,
Y> PersistentEntityJoin<X, Y> Joins the entity with specific join type.<X,
Y> PersistentEntityJoin<X, Y> Joins the entity with specific join type.<X,
Y> PersistentEntityJoin<X, Y> <X,
Y> PersistentEntityCollectionJoin<X, Y> joinCollection
(String attributeName) <X,
Y> PersistentEntityCollectionJoin<X, Y> joinCollection
(String attributeName, jakarta.persistence.criteria.JoinType jt) <X,
Y> PersistentEntityListJoin<X, Y> <X,
Y> PersistentEntityListJoin<X, Y> <X,
K, V> jakarta.persistence.criteria.MapJoin<X, K, V> <X,
K, V> jakarta.persistence.criteria.MapJoin<X, K, V> <X,
Y> PersistentEntitySetJoin<X, Y> <X,
Y> PersistentEntitySetJoin<X, Y> type()
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.jpa.criteria.IExpression
as, getExpressionType, getJavaType, in, in, in, in, isNotNull, isNull, visitExpression, visitSelection
Methods inherited from interface io.micronaut.data.model.jpa.criteria.ISelection
alias, getAlias, getCompoundSelectionItems, isCompoundSelection
Methods inherited from interface jakarta.persistence.criteria.Path
getModel, getParentPath
Methods inherited from interface io.micronaut.data.model.jpa.criteria.PersistentEntityPath
get
-
Field Details
-
joins
-
-
Constructor Details
-
AbstractPersistentEntityJoinSupport
public AbstractPersistentEntityJoinSupport()
-
-
Method Details
-
getPersistentEntity
- Specified by:
getPersistentEntity
in interfacePersistentEntityPath<J>
- Returns:
- The persistent entity
-
createJoinAssociation
protected abstract <Y> PersistentAssociationPath<E,Y> createJoinAssociation(@NonNull @NonNull Association association, @Nullable Join.Type type, @Nullable @Nullable String alias) -
get
public <K,V, jakarta.persistence.criteria.Expression<M> getM extends Map<K, V>> (jakarta.persistence.metamodel.MapAttribute<E, K, V> map) - Specified by:
get
in interfacejakarta.persistence.criteria.Path<J>
-
get
public <K,C extends Collection<K>> jakarta.persistence.criteria.Expression<C> get(jakarta.persistence.metamodel.PluralAttribute<E, C, K> collection) - Specified by:
get
in interfacejakarta.persistence.criteria.Path<J>
-
join
-
join
public <X,Y> PersistentEntityJoin<X,Y> join(String attributeName, jakarta.persistence.criteria.JoinType jt) -
join
Description copied from interface:PersistentEntityFrom
Joins the entity with specific join type.- Specified by:
join
in interfacePersistentEntityFrom<J,
E> - Type Parameters:
X
- The association owner typeY
- The association entity type- Parameters:
attributeName
- The joined associated propertytype
- The join type- Returns:
- The joined entity
-
join
Description copied from interface:PersistentEntityFrom
Joins the entity with specific join type.- Specified by:
join
in interfacePersistentEntityFrom<J,
E> - Type Parameters:
X
- The association owner typeY
- The association entity type- Parameters:
attributeName
- The joined associated propertytype
- The join typealias
- The join alias- Returns:
- The joined entity
-
join
public <Y> PersistentEntityJoin<E,Y> join(jakarta.persistence.metamodel.SingularAttribute<? super E, Y> attribute) -
join
public <Y> PersistentEntityJoin<E,Y> join(jakarta.persistence.metamodel.SingularAttribute<? super E, Y> attribute, jakarta.persistence.criteria.JoinType jt) -
join
public <Y> PersistentEntityCollectionJoin<E,Y> join(jakarta.persistence.metamodel.CollectionAttribute<? super E, Y> collection, jakarta.persistence.criteria.JoinType jt) -
join
public <Y> PersistentEntityCollectionJoin<E,Y> join(jakarta.persistence.metamodel.CollectionAttribute<? super E, Y> collection) -
join
public <Y> PersistentEntitySetJoin<E,Y> join(jakarta.persistence.metamodel.SetAttribute<? super E, Y> set) -
join
public <Y> PersistentEntityListJoin<E,Y> join(jakarta.persistence.metamodel.ListAttribute<? super E, Y> list) -
join
-
join
public <Y> PersistentEntitySetJoin<E,Y> join(jakarta.persistence.metamodel.SetAttribute<? super E, Y> set, jakarta.persistence.criteria.JoinType jt) -
join
public <Y> PersistentEntityListJoin<E,Y> join(jakarta.persistence.metamodel.ListAttribute<? super E, Y> list, jakarta.persistence.criteria.JoinType jt) -
join
-
joinCollection
- Specified by:
joinCollection
in interfacejakarta.persistence.criteria.From<J,
E> - Specified by:
joinCollection
in interfacePersistentEntityFrom<J,
E>
-
joinSet
-
joinList
-
joinMap
-
joinCollection
public <X,Y> PersistentEntityCollectionJoin<X,Y> joinCollection(String attributeName, jakarta.persistence.criteria.JoinType jt) - Specified by:
joinCollection
in interfacejakarta.persistence.criteria.From<J,
E> - Specified by:
joinCollection
in interfacePersistentEntityFrom<J,
E>
-
joinSet
public <X,Y> PersistentEntitySetJoin<X,Y> joinSet(String attributeName, jakarta.persistence.criteria.JoinType jt) -
joinList
public <X,Y> PersistentEntityListJoin<X,Y> joinList(String attributeName, jakarta.persistence.criteria.JoinType jt) -
joinMap
public <X,K, jakarta.persistence.criteria.MapJoin<X,V> K, joinMapV> (String attributeName, jakarta.persistence.criteria.JoinType jt) -
getJoins
-
getPersistentJoins
- Specified by:
getPersistentJoins
in interfacePersistentEntityFrom<J,
E> - Returns:
- The persistent joins
-
getCorrelationParent
-
getFetches
-
fetch
-
fetch
-
fetch
-
fetch
-
fetch
-
fetch
public <X,Y> jakarta.persistence.criteria.Fetch<X,Y> fetch(String attributeName, jakarta.persistence.criteria.JoinType jt) -
get
public <Y> jakarta.persistence.criteria.Path<Y> get(jakarta.persistence.metamodel.SingularAttribute<? super E, Y> attribute) - Specified by:
get
in interfacejakarta.persistence.criteria.Path<J>
-
type
- Specified by:
type
in interfacejakarta.persistence.criteria.Path<J>
-