Interface SqmFrom<L,R>
- Type Parameters:
L
- The from-element's "left hand side". It may be the same asR
for roots.R
- The from-element's "right hand side". For joins, this is the target side.
- All Superinterfaces:
Expression<R>
,FetchParent<L,
,R> From<L,
,R> JpaCriteriaNode
,JpaExpression<R>
,JpaFetchParent<L,
,R> JpaFrom<L,
,R> JpaPath<R>
,JpaSelection<R>
,JpaTupleElement<R>
,Path<R>
,Selection<R>
,SemanticPathPart
,Serializable
,SqmExpressibleAccessor<R>
,SqmExpression<R>
,SqmNode
,SqmPath<R>
,SqmSelectableNode<R>
,SqmTypedNode<R>
,SqmVisitableNode
,TupleElement<R>
- All Known Subinterfaces:
SqmAttributeJoin<O,
,T> SqmCorrelatedJoin<L,
,R> SqmCorrelatedSingularValuedJoin<L,
,R> SqmCorrelation<L,
,R> SqmJoin<L,
,R> SqmSingularValuedJoin<L,
,R> SqmTreatedAttributeJoin<L,
,R, R1> SqmTreatedFrom<L,
,R, R1> SqmTreatedJoin<L,
R, R1>
- All Known Implementing Classes:
AbstractSqmAttributeJoin
,AbstractSqmFrom
,AbstractSqmJoin
,AbstractSqmPluralJoin
,SqmBagJoin
,SqmCorrelatedBagJoin
,SqmCorrelatedCrossJoin
,SqmCorrelatedEntityJoin
,SqmCorrelatedListJoin
,SqmCorrelatedMapJoin
,SqmCorrelatedPluralPartJoin
,SqmCorrelatedRoot
,SqmCorrelatedRootJoin
,SqmCorrelatedSetJoin
,SqmCorrelatedSingularJoin
,SqmCrossJoin
,SqmCteJoin
,SqmCteRoot
,SqmDerivedJoin
,SqmDerivedRoot
,SqmEntityJoin
,SqmFunctionJoin
,SqmFunctionRoot
,SqmListJoin
,SqmMapJoin
,SqmPluralPartJoin
,SqmRoot
,SqmSetJoin
,SqmSingularJoin
,SqmTreatedBagJoin
,SqmTreatedCrossJoin
,SqmTreatedEntityJoin
,SqmTreatedListJoin
,SqmTreatedMapJoin
,SqmTreatedPluralPartJoin
,SqmTreatedRoot
,SqmTreatedSetJoin
,SqmTreatedSingularJoin
Models a SqmPathSource's inclusion in the
FROM
clause.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSqmJoin
(SqmJoin<R, ?> join) Add an associated joincopy
(SqmCopyContext context) The Navigable for an SqmFrom will always be a NavigableContainer The path source that this path refers to (and that most likely created it).The joins associated with this SqmFromList<SqmTreatedFrom<?,
?, ?>> The treats associated with this SqmFromboolean
boolean
hasJoins()
default boolean
<E> SqmBagJoin<R,
E> join
(CollectionAttribute<? super R, E> attribute) <E> SqmBagJoin<R,
E> join
(CollectionAttribute<? super R, E> attribute, JoinType jt) <E> SqmListJoin<R,
E> join
(ListAttribute<? super R, E> list) <E> SqmListJoin<R,
E> join
(ListAttribute<? super R, E> list, JoinType jt) <K,
V> SqmMapJoin<R, K, V> join
(MapAttribute<? super R, K, V> map) <K,
V> SqmMapJoin<R, K, V> join
(MapAttribute<? super R, K, V> map, JoinType jt) <E> SqmSetJoin<R,
E> join
(SetAttribute<? super R, E> set) <E> SqmSetJoin<R,
E> join
(SetAttribute<? super R, E> set, JoinType jt) <A> SqmSingularJoin<R,
A> join
(SingularAttribute<? super R, A> attribute) <A> SqmSingularJoin<R,
A> join
(SingularAttribute<? super R, A> attribute, JoinType jt) <Y> SqmEntityJoin<R,
Y> <Y> SqmEntityJoin<R,
Y> <X,
Y> SqmAttributeJoin<X, Y> <X,
Y> SqmAttributeJoin<X, Y> <X,
Y> SqmBagJoin<X, Y> joinCollection
(String attributeName) <X,
Y> SqmBagJoin<X, Y> joinCollection
(String attributeName, JoinType jt) <X,
Y> SqmListJoin<X, Y> <X,
Y> SqmListJoin<X, Y> <X,
K, V> SqmMapJoin<X, K, V> <X,
K, V> SqmMapJoin<X, K, V> <X,
Y> SqmSetJoin<X, Y> <X,
Y> SqmSetJoin<X, Y> <S extends R>
SqmTreatedFrom<L,R, S> Support for JPA's explicit (TREAT) down-casting.<S extends R>
SqmTreatedFrom<L,R, S> <S extends R>
SqmTreatedFrom<L,R, S> treatAs
(EntityDomainType<S> treatTarget) Support for JPA's explicit (TREAT) down-casting.<S extends R>
SqmTreatedFrom<L,R, S> treatAs
(EntityDomainType<S> treatTarget, String alias) void
visitSqmJoins
(Consumer<SqmJoin<R, ?>> consumer) Visit all associated joinsMethods inherited from interface jakarta.persistence.criteria.From
getJoins, isCorrelated
Methods inherited from interface org.hibernate.query.criteria.JpaFetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetches
Methods inherited from interface org.hibernate.query.criteria.JpaFrom
crossJoin, crossJoin, 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, joinLateral, joinLateral, joinLateral, joinLateral, joinLateral
Methods inherited from interface org.hibernate.query.criteria.JpaPath
getParentPath
Methods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItems
Methods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeName, isEnum
Methods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelection
Methods 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, visitSubSelectableNodes
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilder
Methods inherited from interface org.hibernate.query.sqm.tree.domain.SqmPath
applyInferableType, findRoot, get, get, get, get, get, getExplicitAlias, getJavaTypeDescriptor, getLhs, getNavigablePath, getNodeType, getResolvedModel, getReusablePath, getReusablePaths, registerReusablePath, resolveAlias, resolveIndexedAccess, resolvePathPart, setExplicitAlias, treatAs, treatAs, type, visitReusablePaths
Methods inherited from interface org.hibernate.query.sqm.tree.select.SqmSelectableNode
getTupleLength
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
accept, appendHqlString, toHqlString
Methods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Method Details
-
getReferencedPathSource
SqmPathSource<R> getReferencedPathSource()The Navigable for an SqmFrom will always be a NavigableContainer The path source that this path refers to (and that most likely created it).- Specified by:
getReferencedPathSource
in interfaceSqmPath<L>
- Returns:
- See Also:
-
hasJoins
boolean hasJoins() -
getSqmJoins
The joins associated with this SqmFrom -
addSqmJoin
Add an associated join -
visitSqmJoins
Visit all associated joins -
getSqmTreats
List<SqmTreatedFrom<?,?, getSqmTreats()?>> The treats associated with this SqmFrom -
hasTreats
default boolean hasTreats() -
treatAs
Description copied from interface:JpaPath
Support for JPA's explicit (TREAT) down-casting. -
treatAs
Description copied from interface:JpaPath
Support for JPA's explicit (TREAT) down-casting. -
treatAs
-
treatAs
-
getCorrelationParent
- Specified by:
getCorrelationParent
in interfaceFrom<L,
R> - Specified by:
getCorrelationParent
in interfaceJpaFrom<L,
R>
-
join
-
join
-
hasImplicitlySelectableJoin
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
join
-
joinCollection
- Specified by:
joinCollection
in interfaceFrom<L,
R> - Specified by:
joinCollection
in interfaceJpaFrom<L,
R>
-
joinCollection
- Specified by:
joinCollection
in interfaceFrom<L,
R> - Specified by:
joinCollection
in interfaceJpaFrom<L,
R>
-
joinSet
-
joinSet
-
joinList
-
joinList
-
joinMap
-
joinMap
-
copy
- Specified by:
copy
in interfaceSqmExpression<L>
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmPath<L>
- Specified by:
copy
in interfaceSqmSelectableNode<L>
- Specified by:
copy
in interfaceSqmTypedNode<L>
-