Interface SqmFrom<O,T>
-
- All Superinterfaces:
Expression<T>
,FetchParent<O,T>
,From<O,T>
,JpaCriteriaNode
,JpaExpression<T>
,JpaFetchParent<O,T>
,JpaFrom<O,T>
,JpaPath<T>
,JpaSelection<T>
,JpaTupleElement<T>
,Path<T>
,Selection<T>
,SemanticPathPart
,Serializable
,SqmExpressibleAccessor<T>
,SqmExpression<T>
,SqmNode
,SqmPath<T>
,SqmSelectableNode<T>
,SqmTypedNode<T>
,SqmVisitableNode
,TupleElement<T>
- All Known Subinterfaces:
SqmAttributeJoin<O,T>
,SqmCorrelation<O,T>
,SqmJoin<O,T>
,SqmQualifiedJoin<O,T>
- All Known Implementing Classes:
AbstractSqmAttributeJoin
,AbstractSqmFrom
,AbstractSqmJoin
,AbstractSqmPluralJoin
,AbstractSqmQualifiedJoin
,SqmBagJoin
,SqmCorrelatedBagJoin
,SqmCorrelatedCrossJoin
,SqmCorrelatedEntityJoin
,SqmCorrelatedListJoin
,SqmCorrelatedMapJoin
,SqmCorrelatedPluralPartJoin
,SqmCorrelatedRoot
,SqmCorrelatedRootJoin
,SqmCorrelatedSetJoin
,SqmCorrelatedSingularJoin
,SqmCrossJoin
,SqmCteJoin
,SqmCteRoot
,SqmDerivedJoin
,SqmDerivedRoot
,SqmEntityJoin
,SqmListJoin
,SqmMapJoin
,SqmPluralPartJoin
,SqmRoot
,SqmSetJoin
,SqmSingularJoin
,SqmTreatedBagJoin
,SqmTreatedCrossJoin
,SqmTreatedEntityJoin
,SqmTreatedListJoin
,SqmTreatedMapJoin
,SqmTreatedPluralPartJoin
,SqmTreatedRoot
,SqmTreatedSetJoin
,SqmTreatedSingularJoin
public interface SqmFrom<O,T> extends SqmVisitableNode, SqmPath<T>, JpaFrom<O,T>
Models a Bindable's inclusion in theFROM
clause.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addSqmJoin(SqmJoin<T,?> join)
Add an associated joinSqmFrom<O,T>
copy(SqmCopyContext context)
SqmFrom<O,T>
getCorrelationParent()
SqmPathSource<T>
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).List<SqmJoin<T,?>>
getSqmJoins()
The joins associated with this SqmFromList<SqmFrom<?,?>>
getSqmTreats()
The treats associated with this SqmFromboolean
hasJoins()
boolean
hasTreats()
<E> SqmBagJoin<T,E>
join(CollectionAttribute<? super T,E> attribute)
<E> SqmBagJoin<T,E>
join(CollectionAttribute<? super T,E> attribute, JoinType jt)
<E> SqmListJoin<T,E>
join(ListAttribute<? super T,E> list)
<E> SqmListJoin<T,E>
join(ListAttribute<? super T,E> list, JoinType jt)
<K,V>
SqmMapJoin<T,K,V>join(MapAttribute<? super T,K,V> map)
<K,V>
SqmMapJoin<T,K,V>join(MapAttribute<? super T,K,V> map, JoinType jt)
<E> SqmSetJoin<T,E>
join(SetAttribute<? super T,E> set)
<E> SqmSetJoin<T,E>
join(SetAttribute<? super T,E> set, JoinType jt)
<A> SqmSingularJoin<T,A>
join(SingularAttribute<? super T,A> attribute)
<A> SqmSingularJoin<T,A>
join(SingularAttribute<? super T,A> attribute, JoinType jt)
<X,Y>
SqmAttributeJoin<X,Y>join(String attributeName)
<X,Y>
SqmAttributeJoin<X,Y>join(String attributeName, JoinType jt)
<X,Y>
SqmBagJoin<X,Y>joinCollection(String attributeName)
<X,Y>
SqmBagJoin<X,Y>joinCollection(String attributeName, JoinType jt)
<X,Y>
SqmListJoin<X,Y>joinList(String attributeName)
<X,Y>
SqmListJoin<X,Y>joinList(String attributeName, JoinType jt)
<X,K,V>
SqmMapJoin<X,K,V>joinMap(String attributeName)
<X,K,V>
SqmMapJoin<X,K,V>joinMap(String attributeName, JoinType jt)
<X,Y>
SqmSetJoin<X,Y>joinSet(String attributeName)
<X,Y>
SqmSetJoin<X,Y>joinSet(String attributeName, JoinType jt)
<S extends T>
SqmFrom<?,S>treatAs(Class<S> treatAsType)
Support for JPA's explicit (TREAT) down-casting.<S extends T>
SqmFrom<?,S>treatAs(Class<S> treatJavaType, String alias)
<S extends T>
SqmFrom<?,S>treatAs(EntityDomainType<S> treatAsType)
Support for JPA's explicit (TREAT) down-casting.<S extends T>
SqmFrom<?,S>treatAs(EntityDomainType<S> treatTarget, String alias)
void
visitSqmJoins(Consumer<SqmJoin<T,?>> consumer)
Visit all associated joins-
Methods 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, 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
-
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, castAs, equalTo, equalTo, in, in, in, in, isNotNull, isNull, 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, getExplicitAlias, getJavaTypeDescriptor, getLhs, getNavigablePath, getNodeType, getResolvedModel, getReusablePath, getReusablePaths, registerReusablePath, resolveAlias, resolveIndexedAccess, resolvePathPart, setExplicitAlias, 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 Detail
-
getReferencedPathSource
SqmPathSource<T> 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<O>
- Returns:
- See Also:
SqmPathSource.createSqmPath(org.hibernate.query.sqm.tree.domain.SqmPath<?>, org.hibernate.query.sqm.SqmPathSource<?>)
-
hasJoins
boolean hasJoins()
-
treatAs
<S extends T> SqmFrom<?,S> treatAs(Class<S> treatAsType)
Description copied from interface:JpaPath
Support for JPA's explicit (TREAT) down-casting.
-
treatAs
<S extends T> SqmFrom<?,S> treatAs(EntityDomainType<S> treatAsType)
Description copied from interface:JpaPath
Support for JPA's explicit (TREAT) down-casting.
-
treatAs
<S extends T> SqmFrom<?,S> treatAs(EntityDomainType<S> treatTarget, String alias)
-
hasTreats
boolean hasTreats()
-
getCorrelationParent
SqmFrom<O,T> getCorrelationParent()
- Specified by:
getCorrelationParent
in interfaceFrom<O,T>
- Specified by:
getCorrelationParent
in interfaceJpaFrom<O,T>
-
join
<A> SqmSingularJoin<T,A> join(SingularAttribute<? super T,A> attribute)
-
join
<A> SqmSingularJoin<T,A> join(SingularAttribute<? super T,A> attribute, JoinType jt)
-
join
<E> SqmBagJoin<T,E> join(CollectionAttribute<? super T,E> attribute)
-
join
<E> SqmBagJoin<T,E> join(CollectionAttribute<? super T,E> attribute, JoinType jt)
-
join
<E> SqmSetJoin<T,E> join(SetAttribute<? super T,E> set)
-
join
<E> SqmSetJoin<T,E> join(SetAttribute<? super T,E> set, JoinType jt)
-
join
<E> SqmListJoin<T,E> join(ListAttribute<? super T,E> list)
-
join
<E> SqmListJoin<T,E> join(ListAttribute<? super T,E> list, JoinType jt)
-
join
<K,V> SqmMapJoin<T,K,V> join(MapAttribute<? super T,K,V> map)
-
join
<K,V> SqmMapJoin<T,K,V> join(MapAttribute<? super T,K,V> map, JoinType jt)
-
join
<X,Y> SqmAttributeJoin<X,Y> join(String attributeName)
-
join
<X,Y> SqmAttributeJoin<X,Y> join(String attributeName, JoinType jt)
-
joinCollection
<X,Y> SqmBagJoin<X,Y> joinCollection(String attributeName)
- Specified by:
joinCollection
in interfaceFrom<O,T>
- Specified by:
joinCollection
in interfaceJpaFrom<O,T>
-
joinCollection
<X,Y> SqmBagJoin<X,Y> joinCollection(String attributeName, JoinType jt)
- Specified by:
joinCollection
in interfaceFrom<O,T>
- Specified by:
joinCollection
in interfaceJpaFrom<O,T>
-
joinSet
<X,Y> SqmSetJoin<X,Y> joinSet(String attributeName)
-
joinSet
<X,Y> SqmSetJoin<X,Y> joinSet(String attributeName, JoinType jt)
-
joinList
<X,Y> SqmListJoin<X,Y> joinList(String attributeName)
-
joinList
<X,Y> SqmListJoin<X,Y> joinList(String attributeName, JoinType jt)
-
joinMap
<X,K,V> SqmMapJoin<X,K,V> joinMap(String attributeName)
-
joinMap
<X,K,V> SqmMapJoin<X,K,V> joinMap(String attributeName, JoinType jt)
-
copy
SqmFrom<O,T> copy(SqmCopyContext context)
- Specified by:
copy
in interfaceSqmExpression<O>
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmPath<O>
- Specified by:
copy
in interfaceSqmSelectableNode<O>
- Specified by:
copy
in interfaceSqmTypedNode<O>
-
-