Class SqmRoot<E>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<E>
org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<E>
org.hibernate.query.sqm.tree.expression.AbstractSqmExpression<E>
org.hibernate.query.sqm.tree.domain.AbstractSqmPath<E>
org.hibernate.query.sqm.tree.domain.AbstractSqmFrom<E,E>
org.hibernate.query.sqm.tree.from.SqmRoot<E>
- All Implemented Interfaces:
Expression<E>, FetchParent<E,E>, From<E, E>, Path<E>, Root<E>, Selection<E>, TupleElement<E>, Serializable, JpaCriteriaNode, JpaExpression<E>, JpaFetchParent<E, E>, JpaFrom<E, E>, JpaPath<E>, JpaRoot<E>, JpaSelection<E>, JpaTupleElement<E>, SemanticPathPart, SqmPath<E>, SqmExpression<E>, SqmFrom<E, E>, SqmSelectableNode<E>, SqmCacheable, SqmExpressibleAccessor<E>, SqmNode, SqmTypedNode<E>, SqmVisitableNode
- Direct Known Subclasses:
SqmCorrelatedRoot, SqmCorrelatedRootJoin, SqmCteRoot, SqmDerivedRoot, SqmFunctionRoot, SqmTreatedRoot
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionSqmRoot(EntityDomainType<E> entityType, @Nullable String alias, boolean allowJoins, NodeBuilder nodeBuilder) SqmRoot(NavigablePath navigablePath, EntityDomainType<E> entityType, @Nullable String alias, NodeBuilder nodeBuilder) protectedSqmRoot(NavigablePath navigablePath, SqmPathSource<E> referencedNavigable, @Nullable String alias, boolean allowJoins, NodeBuilder nodeBuilder) protectedSqmRoot(NavigablePath navigablePath, SqmPathSource<E> referencedNavigable, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidaddOrderedJoin(SqmJoin<?, ?> join) voidaddSqmJoin(SqmJoin<E, ?> join) Add an associated joinbooleancopy(SqmCopyContext context) voidcopyTo(SqmRoot<E> target, SqmCopyContext context) booleandeepEquals(SqmFrom<?, ?> other) SqmRoot<?> findRoot()@Nullable SqmPath<?> getLhs()Get the left-hand side of this path - may be null, indicating a root, cross-join or entity-joingetModel()booleanbooleanisDeepCompatible(SqmFrom<?, ?> other) toString()<S extends E>
SqmTreatedFrom<E, E, S> Support for JPA's explicit (TREAT) down-casting.<S extends E>
SqmTreatedFrom<E, E, S> <S extends E>
SqmTreatedFrom<E, E, S> <S extends E>
SqmTreatedFrom<E, E, S> treatAs(EntityDomainType<S> treatTarget) Support for JPA's explicit (TREAT) down-casting.<S extends E>
SqmTreatedFrom<E, E, S> treatAs(EntityDomainType<S> treatTarget, @Nullable String alias) <S extends E>
SqmTreatedFrom<E, E, S> treatAs(EntityDomainType<S> treatTarget, @Nullable String alias, boolean fetch) Methods inherited from class AbstractSqmFrom
addTreat, alias, appendHqlString, copyTo, 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, 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, getNavigablePath, getNavigablePathCopy, getNodeJavaType, getNodeType, getReferencedPathSource, getResolvedModel, getReusablePath, getReusablePaths, getTreatedPath, hashCode, isCompatible, registerReusablePath, resolvePath, resolvePath, 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 JpaFetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetchesMethods inherited from interface JpaFrom
crossJoin, crossJoin, id, 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, joinLateralMethods inherited from interface JpaPath
getParentPathMethods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods 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
getReferencedPathSource, hasTreats, resolveAliasMethods inherited from interface SqmNode
asLoggableText, nodeBuilderMethods inherited from interface SqmPath
applyInferableType, get, get, get, get, get, getJavaTypeDescriptor, getNavigablePath, getNodeType, getResolvedModel, getReusablePath, getReusablePaths, registerReusablePath, resolveIndexedAccess, type, visitReusablePathsMethods inherited from interface SqmSelectableNode
getTupleLengthMethods inherited from interface SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface SqmVisitableNode
toHqlStringMethods inherited from interface TupleElement
getAlias
-
Constructor Details
-
SqmRoot
public SqmRoot(EntityDomainType<E> entityType, @Nullable String alias, boolean allowJoins, NodeBuilder nodeBuilder)
-
-
Method Details
-
copy
-
copyTo
-
getLhs
Description copied from interface:SqmPathGet the left-hand side of this path - may be null, indicating a root, cross-join or entity-join -
isAllowJoins
public boolean isAllowJoins() -
getOrderedJoins
-
addOrderedJoin
-
addSqmJoin
Description copied from interface:SqmFromAdd an associated join- Specified by:
addSqmJoinin interfaceSqmFrom<E,E> - Overrides:
addSqmJoinin classAbstractSqmFrom<E,E>
-
findRoot
-
getEntityName
-
toString
- Overrides:
toStringin classAbstractSqmPath<E>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
deepEquals
- Specified by:
deepEqualsin interfaceSqmFrom<E,E> - Overrides:
deepEqualsin classAbstractSqmFrom<E,E>
-
isDeepCompatible
- Specified by:
isDeepCompatiblein interfaceSqmFrom<E,E> - Overrides:
isDeepCompatiblein classAbstractSqmFrom<E,E>
-
getModel
-
getManagedType
- Specified by:
getManagedTypein interfaceJpaRoot<E>
-
createCorrelation
- Specified by:
createCorrelationin classAbstractSqmFrom<E,E>
-
containsOnlyInnerJoins
public boolean containsOnlyInnerJoins() -
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
-
treatAs
-
treatAs
public <S extends E> SqmTreatedFrom<E,E, treatAsS> (EntityDomainType<S> treatTarget, @Nullable String alias, boolean fetch)
-