Class AbstractSqmJoin<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>
- All Implemented Interfaces:
Expression<R>,FetchParent<L,,R> From<L,,R> Join<L,,R> Path<R>,Selection<R>,TupleElement<R>,Serializable,JpaCriteriaNode,JpaExpression<R>,JpaFetchParent<L,,R> JpaFrom<L,,R> JpaJoin<L,,R> JpaPath<R>,JpaSelection<R>,JpaTupleElement<R>,SemanticPathPart,SqmPath<R>,SqmExpression<R>,SqmFrom<L,,R> SqmJoin<L,,R> SqmSelectableNode<R>,SqmExpressibleAccessor<R>,SqmNode,SqmTypedNode<R>,SqmVisitableNode
- Direct Known Subclasses:
AbstractSqmAttributeJoin,SqmCteJoin,SqmDerivedJoin,SqmEntityJoin,SqmFunctionJoin,SqmPluralPartJoin
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSqmJoin(NavigablePath navigablePath, SqmPathSource<R> referencedNavigable, SqmFrom<?, L> lhs, String alias, SqmJoinType joinType, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyRestriction(SqmPredicate restriction) protected voidcopyTo(AbstractSqmJoin<L, R> target, SqmCopyContext context) booleanObtain the join predicategetLhs()Get the left-hand side of this path - may be null, indicating a root, cross-join or entity-joingetOn()The type of join - inner, cross, etcinthashCode()<X> SqmEntityJoin<R, X> <X> SqmEntityJoin<R, X> join(Class<X> targetEntityClass, SqmJoinType joinType) on(Expression<Boolean> restriction) on(JpaExpression<Boolean> restriction) on(JpaPredicate... restrictions) voidsetJoinPredicate(SqmPredicate predicate) Inject the join predicate<S extends R>
SqmTreatedJoin<L, R, S> Support for JPA's explicit (TREAT) down-casting.abstract <S extends R>
SqmTreatedJoin<L, R, S> abstract <S extends R>
SqmTreatedJoin<L, R, S> <S extends R>
SqmTreatedJoin<L, R, S> treatAs(EntityDomainType<S> treatTarget) Support for JPA's explicit (TREAT) down-casting.abstract <S extends R>
SqmTreatedJoin<L, R, S> treatAs(EntityDomainType<S> treatTarget, String alias) abstract <S extends R>
SqmTreatedJoin<L, R, S> treatAs(EntityDomainType<S> treatTarget, String alias, boolean fetched) Methods inherited from class org.hibernate.query.sqm.tree.domain.AbstractSqmFrom
addSqmJoin, addTreat, alias, 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 org.hibernate.query.sqm.tree.domain.AbstractSqmPath
copyTo, get, get, get, get, get, getExpressible, getModel, getNavigablePath, getNavigablePathCopy, getNodeType, getReferencedPathSource, getResolvedModel, getReusablePath, getReusablePaths, getTreatedPath, registerReusablePath, resolvePath, resolvePath, toString, type, visitReusablePathsMethods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, equalTo, equalTo, getJavaTypeDescriptor, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder, notEqualTo, notEqualToMethods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
getSelectionItems, isCompoundSelectionMethods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getAlias, setAlias, setExpressibleTypeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.persistence.criteria.From
getJoins, isCorrelatedMethods inherited from interface org.hibernate.query.criteria.JpaFetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetchesMethods inherited from interface org.hibernate.query.criteria.JpaFrom
id, join, join, join, join, join, join, join, join, joinArray, joinArray, joinArray, joinArray, joinArrayCollection, joinArrayCollection, joinArrayCollection, joinArrayCollection, joinLateral, joinLateral, joinLateralMethods inherited from interface org.hibernate.query.criteria.JpaJoin
getAttributeMethods inherited from interface org.hibernate.query.criteria.JpaPath
getParentPathMethods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeName, isEnumMethods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelectionMethods inherited from interface org.hibernate.query.sqm.tree.expression.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 org.hibernate.query.sqm.tree.from.SqmFrom
addSqmJoin, getCorrelationParent, getNumberOfJoins, getReferencedPathSource, getSqmJoins, getSqmTreats, hasImplicitlySelectableJoin, hasJoins, hasTreats, join, resolveAlias, visitSqmJoinsMethods inherited from interface org.hibernate.query.sqm.tree.from.SqmJoin
copy, crossJoin, crossJoin, isImplicitlySelectable, 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 org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilderMethods inherited from interface org.hibernate.query.sqm.tree.domain.SqmPath
applyInferableType, findRoot, get, get, get, get, get, getExplicitAlias, getJavaTypeDescriptor, getNavigablePath, getNodeType, getResolvedModel, getReusablePath, getReusablePaths, registerReusablePath, resolveIndexedAccess, resolvePathPart, setExplicitAlias, type, visitReusablePathsMethods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLengthMethods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
accept, appendHqlString, toHqlStringMethods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Constructor Details
-
Method Details
-
getSqmJoinType
Description copied from interface:SqmJoinThe type of join - inner, cross, etc- Specified by:
getSqmJoinTypein interfaceSqmJoin<L,R>
-
getJoinPredicate
Description copied from interface:SqmJoinObtain the join predicate- Specified by:
getJoinPredicatein interfaceSqmJoin<L,R> - Returns:
- The join predicate
-
setJoinPredicate
Description copied from interface:SqmJoinInject the join predicate- Specified by:
setJoinPredicatein interfaceSqmJoin<L,R> - Parameters:
predicate- The join predicate
-
applyRestriction
-
copyTo
-
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 interfaceSqmFrom<L,R> - Specified by:
treatAsin interfaceSqmJoin<L,R> - Specified by:
treatAsin interfaceSqmPath<L>- Overrides:
treatAsin classAbstractSqmFrom<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 interfaceSqmFrom<L,R> - Specified by:
treatAsin interfaceSqmJoin<L,R> - Specified by:
treatAsin interfaceSqmPath<L>- Overrides:
treatAsin classAbstractSqmFrom<L,R>
-
treatAs
-
treatAs
public abstract <S extends R> SqmTreatedJoin<L,R, treatAsS> (EntityDomainType<S> treatTarget, String alias) -
treatAs
-
treatAs
public abstract <S extends R> SqmTreatedJoin<L,R, treatAsS> (EntityDomainType<S> treatTarget, String alias, boolean fetched) -
getLhs
Description copied from interface:SqmPathGet the left-hand side of this path - may be null, indicating a root, cross-join or entity-join -
getParent
-
getJoinType
- Specified by:
getJoinTypein interfaceJoin<L,R>
-
getOn
-
on
-
on
-
on
-
on
-
join
-
join
-
equals
- Overrides:
equalsin classAbstractSqmPath<R>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractSqmPath<R>
-