Class AbstractSqmAttributeJoin<L,R>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<R>
org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<R>
org.hibernate.query.sqm.tree.expression.AbstractSqmExpression<R>
org.hibernate.query.sqm.tree.domain.AbstractSqmPath<R>
org.hibernate.query.sqm.tree.domain.AbstractSqmFrom<L,R>
org.hibernate.query.sqm.tree.domain.AbstractSqmJoin<L,R>
org.hibernate.query.sqm.tree.domain.AbstractSqmAttributeJoin<L,R>
- All Implemented Interfaces:
Expression<R>, Fetch<L,R>, FetchParent<L, R>, From<L, R>, Join<L, R>, Path<R>, Selection<R>, TupleElement<R>, Serializable, JpaCriteriaNode, JpaExpression<R>, JpaFetch<L, R>, JpaFetchParent<L, R>, JpaFrom<L, R>, JpaJoin<L, R>, JpaPath<R>, JpaSelection<R>, JpaTupleElement<R>, SemanticPathPart, SqmPath<R>, SqmExpression<R>, SqmAttributeJoin<L, R>, SqmFrom<L, R>, SqmJoin<L, R>, SqmSelectableNode<R>, SqmCacheable, SqmExpressibleAccessor<R>, SqmNode, SqmTypedNode<R>, SqmVisitableNode
- Direct Known Subclasses:
AbstractSqmPluralJoin, SqmSingularJoin
public abstract class AbstractSqmAttributeJoin<L,R>
extends AbstractSqmJoin<L,R>
implements SqmAttributeJoin<L,R>
Models a join based on a mapped attribute reference.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSqmAttributeJoin(SqmFrom<?, L> lhs, NavigablePath navigablePath, SqmPathSource<R> joinedNavigable, @Nullable String alias, SqmJoinType joinType, boolean fetchJoin, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidbooleandeepEquals(SqmFrom<?, ?> object) @NonNull PersistentAttribute<? super L, ?> getLhs()Get the left-hand side of this path - may be null, indicating a root, cross-join or entity-joinThe Java type descriptor for this node.booleanisDeepCompatible(SqmFrom<?, ?> object) booleanIs this a fetch join?booleanIs this an implicit join inferred from a path expression?on(@Nullable JpaExpression<Boolean> restriction) Add a restriction to the fetch.on(JpaPredicate @Nullable ... restrictions) Add a restriction to the fetch.abstract <S extends R>
SqmTreatedAttributeJoin<L, R, S> Support for JPA's explicit (TREAT) down-casting.abstract <S extends R>
SqmTreatedAttributeJoin<L, R, S> abstract <S extends R>
SqmTreatedAttributeJoin<L, R, S> abstract <S extends R>
SqmTreatedAttributeJoin<L, R, S> treatAs(EntityDomainType<S> treatTarget) Support for JPA's explicit (TREAT) down-casting.abstract <S extends R>
SqmTreatedAttributeJoin<L, R, S> treatAs(EntityDomainType<S> treatTarget, @Nullable String alias) abstract <S extends R>
SqmTreatedAttributeJoin<L, R, S> treatAs(EntityDomainType<S> treatTarget, @Nullable String alias, boolean fetched) Methods inherited from class AbstractSqmJoin
applyRestriction, copyTo, getJoinPredicate, getOn, getSqmJoinType, join, join, setJoinPredicateMethods inherited from class AbstractSqmFrom
addSqmJoin, addTreat, appendHqlString, copyTo, createCorrelation, crossJoin, crossJoin, fetch, fetch, fetch, fetch, fetch, fetch, findTreat, getCorrelationParent, getExplicitAlias, getFetches, getJoins, getNumberOfJoins, getParentPath, getSqmJoins, getSqmTreats, hasImplicitlySelectableJoin, hasJoins, id, isCorrelated, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, joinArray, joinArray, joinArray, joinArray, joinArrayCollection, joinArrayCollection, joinArrayCollection, joinArrayCollection, joinCollection, joinCollection, joinLateral, joinLateral, joinLateral, joinLateral, joinList, joinList, joinMap, joinMap, joinSet, joinSet, removeLeftFetchJoins, resolvePathPart, setExplicitAlias, visitSqmJoinsMethods inherited from class AbstractSqmPath
cacheHashCode, copyTo, equals, get, get, get, get, get, getExpressible, getJavaTypeDescriptor, getModel, getNavigablePath, getNavigablePathCopy, getNodeType, getReferencedPathSource, getResolvedModel, getReusablePath, getReusablePaths, getTreatedPath, hashCode, isCompatible, registerReusablePath, resolvePath, resolvePath, toString, type, visitReusablePathsMethods inherited from class AbstractSqmExpression
applyInferableType, as, cast, equalTo, equalTo, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualToMethods inherited from class AbstractJpaSelection
getSelectionItems, isCompoundSelectionMethods inherited from class AbstractJpaTupleElement
copyTo, getAlias, setAlias, setExpressibleTypeMethods inherited from interface From
getJoins, isCorrelatedMethods inherited from interface JpaFrom
id, join, join, join, join, join, join, join, join, joinArray, joinArray, joinArray, joinArray, joinArrayCollection, joinArrayCollection, joinArrayCollection, joinArrayCollection, joinLateral, joinLateral, joinLateralMethods inherited from interface JpaPath
getParentPathMethods inherited from interface JpaSelection
getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface SqmAttributeJoin
copy, getJavaTypeDescriptor, getJoinPredicate, getReferencedPathSource, isImplicitlySelectable, on, on, setJoinPredicateMethods inherited from interface SqmCacheable
cacheHashCode, isCompatibleMethods inherited from interface SqmExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, castAs, equalTo, equalTo, in, in, in, in, isNotNull, isNull, notEqualTo, notEqualTo, visitSubSelectableNodesMethods inherited from interface SqmFrom
addSqmJoin, getCorrelationParent, getNumberOfJoins, getSqmJoins, getSqmTreats, hasImplicitlySelectableJoin, hasJoins, hasTreats, join, join, resolveAlias, visitSqmJoinsMethods inherited from interface SqmJoin
crossJoin, crossJoin, getOn, getSqmJoinType, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinLateral, joinLateral, joinList, joinList, joinMap, joinMap, joinSet, joinSetMethods inherited from interface SqmNode
asLoggableText, nodeBuilderMethods inherited from interface SqmPath
applyInferableType, findRoot, get, get, get, get, get, getExplicitAlias, getNavigablePath, getNodeType, getResolvedModel, getReusablePath, getReusablePaths, registerReusablePath, resolveIndexedAccess, resolvePathPart, setExplicitAlias, type, visitReusablePathsMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmTypedNode
getExpressibleMethods inherited from interface SqmVisitableNode
appendHqlString, toHqlStringMethods inherited from interface TupleElement
getAlias
-
Constructor Details
-
Method Details
-
isImplicitJoin
public boolean isImplicitJoin()Description copied from interface:SqmAttributeJoinIs this an implicit join inferred from a path expression?- Specified by:
isImplicitJoinin interfaceSqmAttributeJoin<L,R>
-
getLhs
Description copied from interface:SqmPathGet the left-hand side of this path - may be null, indicating a root, cross-join or entity-join -
getNodeJavaType
Description copied from interface:SqmTypedNodeThe Java type descriptor for this node.- Specified by:
getNodeJavaTypein interfaceSqmExpressibleAccessor<L>- Specified by:
getNodeJavaTypein interfaceSqmTypedNode<L>- Overrides:
getNodeJavaTypein classAbstractSqmPath<R>
-
isFetched
public boolean isFetched()Description copied from interface:SqmAttributeJoinIs this a fetch join?- Specified by:
isFetchedin interfaceSqmAttributeJoin<L,R>
-
alias
- Specified by:
aliasin interfaceJpaSelection<L>- Specified by:
aliasin interfaceSelection<L>- Overrides:
aliasin classAbstractSqmFrom<L,R>
-
clearFetched
public void clearFetched()- Specified by:
clearFetchedin interfaceSqmAttributeJoin<L,R>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
getAttribute
- Specified by:
getAttributein interfaceFetch<L,R> - Specified by:
getAttributein interfaceJoin<L,R> - Specified by:
getAttributein interfaceJpaJoin<L,R> - Specified by:
getAttributein interfaceSqmAttributeJoin<L,R>
-
on
Description copied from interface:JpaFetchAdd a restriction to the fetch. -
on
Description copied from interface:JpaFetchAdd a restriction to the fetch. -
getParent
-
getJoinType
- Specified by:
getJoinTypein interfaceFetch<L,R> - Specified by:
getJoinTypein interfaceJoin<L,R> - Overrides:
getJoinTypein classAbstractSqmJoin<L,R>
-
treatAs
Description copied from interface:JpaPathSupport for JPA's explicit (TREAT) down-casting.- Specified by:
treatAsin interfaceJpaFrom<L,R> - Specified by:
treatAsin interfaceJpaJoin<L,R> - Specified by:
treatAsin interfaceJpaPath<L>- Specified by:
treatAsin interfaceSqmAttributeJoin<L,R> - Specified by:
treatAsin interfaceSqmFrom<L,R> - Specified by:
treatAsin interfaceSqmJoin<L,R> - Specified by:
treatAsin interfaceSqmPath<L>- Overrides:
treatAsin classAbstractSqmJoin<L,R>
-
treatAs
public abstract <S extends R> SqmTreatedAttributeJoin<L,R, treatAsS> (EntityDomainType<S> treatTarget) Description copied from interface:JpaPathSupport for JPA's explicit (TREAT) down-casting.- Specified by:
treatAsin interfaceJpaFrom<L,R> - Specified by:
treatAsin interfaceJpaJoin<L,R> - Specified by:
treatAsin interfaceJpaPath<L>- Specified by:
treatAsin interfaceSqmAttributeJoin<L,R> - Specified by:
treatAsin interfaceSqmFrom<L,R> - Specified by:
treatAsin interfaceSqmJoin<L,R> - Specified by:
treatAsin interfaceSqmPath<L>- Overrides:
treatAsin classAbstractSqmJoin<L,R>
-
treatAs
-
treatAs
public abstract <S extends R> SqmTreatedAttributeJoin<L,R, treatAsS> (EntityDomainType<S> treatTarget, @Nullable String alias) -
treatAs
-
treatAs
public abstract <S extends R> SqmTreatedAttributeJoin<L,R, treatAsS> (EntityDomainType<S> treatTarget, @Nullable String alias, boolean fetched) -
deepEquals
- Specified by:
deepEqualsin interfaceSqmFrom<L,R> - Overrides:
deepEqualsin classAbstractSqmJoin<L,R>
-
isDeepCompatible
- Specified by:
isDeepCompatiblein interfaceSqmFrom<L,R> - Overrides:
isDeepCompatiblein classAbstractSqmJoin<L,R>
-