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
Models a Bindable's inclusion in the
FROM clause.- Author:
- Steve Ebersole
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSqmJoin(SqmJoin<T, ?> join) Add an associated joincopy(SqmCopyContext context) Returns the parentFromobject from which the correlatedFromobject has been obtained through correlation (use of aSubquerycorrelatemethod).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 SqmFromThe treats associated with this SqmFrombooleanhasJoins()default boolean<E> SqmBagJoin<T,E> join(CollectionAttribute<? super T, E> attribute) Create an inner join to the specified Collection-valued attribute.<E> SqmBagJoin<T,E> join(CollectionAttribute<? super T, E> attribute, JoinType jt) Create a join to the specified Collection-valued attribute using the given join type.<E> SqmListJoin<T,E> join(ListAttribute<? super T, E> list) Create an inner join to the specified List-valued attribute.<E> SqmListJoin<T,E> join(ListAttribute<? super T, E> list, JoinType jt) Create a join to the specified List-valued attribute using the given join type.<K,V> SqmMapJoin<T, K, V> join(MapAttribute<? super T, K, V> map) Create an inner join to the specified Map-valued attribute.<K,V> SqmMapJoin<T, K, V> join(MapAttribute<? super T, K, V> map, JoinType jt) Create a join to the specified Map-valued attribute using the given join type.<E> SqmSetJoin<T,E> join(SetAttribute<? super T, E> set) Create an inner join to the specified Set-valued attribute.<E> SqmSetJoin<T,E> join(SetAttribute<? super T, E> set, JoinType jt) Create a join to the specified Set-valued attribute using the given join type.<A> SqmSingularJoin<T,A> join(SingularAttribute<? super T, A> attribute) Create an inner join to the specified single-valued attribute.<A> SqmSingularJoin<T,A> join(SingularAttribute<? super T, A> attribute, JoinType jt) Create a join to the specified single-valued attribute using the given join type.<X,Y> SqmAttributeJoin<X, Y> Create an inner join to the specified attribute.<X,Y> SqmAttributeJoin<X, Y> Create a join to the specified attribute using the given join type.<X,Y> SqmBagJoin<X, Y> joinCollection(String attributeName) Create an inner join to the specified Collection-valued attribute.<X,Y> SqmBagJoin<X, Y> joinCollection(String attributeName, JoinType jt) Create a join to the specified Collection-valued attribute using the given join type.<X,Y> SqmListJoin<X, Y> Create an inner join to the specified List-valued attribute.<X,Y> SqmListJoin<X, Y> Create a join to the specified List-valued attribute using the given join type.<X,K, V> SqmMapJoin<X, K, V> Create an inner join to the specified Map-valued attribute.<X,K, V> SqmMapJoin<X, K, V> Create a join to the specified Map-valued attribute using the given join type.<X,Y> SqmSetJoin<X, Y> Create an inner join to the specified Set-valued attribute.<X,Y> SqmSetJoin<X, Y> Create a join to the specified Set-valued attribute using the given join type.Support for JPA's explicit (TREAT) down-casting.treatAs(EntityDomainType<S> treatAsType) Support for JPA's explicit (TREAT) down-casting.treatAs(EntityDomainType<S> treatTarget, String alias) voidvisitSqmJoins(Consumer<SqmJoin<T, ?>> consumer) Visit all associated joinsMethods 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
crossJoin, crossJoin, join, join, join, join, join, join, join, join, join, joinLateral, joinLateralMethods 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, visitSubSelectableNodesMethods 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, getExplicitAlias, getJavaTypeDescriptor, getLhs, getNavigablePath, getNodeType, getResolvedModel, getReusablePath, getReusablePaths, registerReusablePath, resolveAlias, 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
-
Method Details
-
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:
getReferencedPathSourcein interfaceSqmPath<O>- Returns:
- See Also:
-
hasJoins
boolean hasJoins() -
getSqmJoins
The joins associated with this SqmFrom -
addSqmJoin
Add an associated join -
visitSqmJoins
Visit all associated joins -
getSqmTreats
The treats associated with this SqmFrom -
hasTreats
default boolean hasTreats() -
treatAs
Description copied from interface:JpaPathSupport for JPA's explicit (TREAT) down-casting. -
treatAs
Description copied from interface:JpaPathSupport for JPA's explicit (TREAT) down-casting. -
treatAs
-
treatAs
-
getCorrelationParent
Description copied from interface:FromReturns the parentFromobject from which the correlatedFromobject has been obtained through correlation (use of aSubquerycorrelatemethod).- Specified by:
getCorrelationParentin interfaceFrom<O,T> - Specified by:
getCorrelationParentin interfaceJpaFrom<O,T> - Returns:
- the parent of the correlated From object
-
join
Description copied from interface:FromCreate an inner join to the specified single-valued attribute. -
join
Description copied from interface:FromCreate a join to the specified single-valued attribute using the given join type. -
join
Description copied from interface:FromCreate an inner join to the specified Collection-valued attribute. -
join
Description copied from interface:FromCreate a join to the specified Collection-valued attribute using the given join type. -
join
Description copied from interface:FromCreate an inner join to the specified Set-valued attribute. -
join
Description copied from interface:FromCreate a join to the specified Set-valued attribute using the given join type. -
join
Description copied from interface:FromCreate an inner join to the specified List-valued attribute. -
join
Description copied from interface:FromCreate a join to the specified List-valued attribute using the given join type. -
join
Description copied from interface:FromCreate an inner join to the specified Map-valued attribute. -
join
Description copied from interface:FromCreate a join to the specified Map-valued attribute using the given join type. -
join
Description copied from interface:FromCreate an inner join to the specified attribute. -
join
Description copied from interface:FromCreate a join to the specified attribute using the given join type. -
joinCollection
Description copied from interface:FromCreate an inner join to the specified Collection-valued attribute.- Specified by:
joinCollectionin interfaceFrom<O,T> - Specified by:
joinCollectionin interfaceJpaFrom<O,T> - Parameters:
attributeName- name of the attribute for the target of the join- Returns:
- the resulting join
-
joinCollection
Description copied from interface:FromCreate a join to the specified Collection-valued attribute using the given join type.- Specified by:
joinCollectionin interfaceFrom<O,T> - Specified by:
joinCollectionin interfaceJpaFrom<O,T> - Parameters:
attributeName- name of the attribute for the target of the joinjt- join type- Returns:
- the resulting join
-
joinSet
Description copied from interface:FromCreate an inner join to the specified Set-valued attribute. -
joinSet
Description copied from interface:FromCreate a join to the specified Set-valued attribute using the given join type. -
joinList
Description copied from interface:FromCreate an inner join to the specified List-valued attribute. -
joinList
Description copied from interface:FromCreate a join to the specified List-valued attribute using the given join type. -
joinMap
Description copied from interface:FromCreate an inner join to the specified Map-valued attribute. -
joinMap
Description copied from interface:FromCreate a join to the specified Map-valued attribute using the given join type. -
copy
- Specified by:
copyin interfaceSqmExpression<O>- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmPath<O>- Specified by:
copyin interfaceSqmSelectableNode<O>- Specified by:
copyin interfaceSqmTypedNode<O>
-