Class SqmTreatedSimplePath<T,S extends T>
- java.lang.Object
-
- org.hibernate.query.sqm.tree.AbstractSqmNode
-
- org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement<T>
-
- org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection<T>
-
- org.hibernate.query.sqm.tree.expression.AbstractSqmExpression<T>
-
- org.hibernate.query.sqm.tree.domain.AbstractSqmPath<T>
-
- org.hibernate.query.sqm.tree.domain.AbstractSqmSimplePath<T>
-
- org.hibernate.query.sqm.tree.domain.SqmEntityValuedSimplePath<S>
-
- org.hibernate.query.sqm.tree.domain.SqmTreatedSimplePath<T,S>
-
- All Implemented Interfaces:
jakarta.persistence.criteria.Expression<S>
,jakarta.persistence.criteria.Path<S>
,jakarta.persistence.criteria.Selection<S>
,jakarta.persistence.TupleElement<S>
,Serializable
,JpaCriteriaNode
,JpaExpression<S>
,JpaPath<S>
,JpaSelection<S>
,JpaTupleElement<S>
,SemanticPathPart
,SqmPath<S>
,SqmPathWrapper<T,S>
,SqmSimplePath<S>
,SqmTreatedPath<T,S>
,SqmExpression<S>
,SqmSelectableNode<S>
,SqmExpressibleAccessor<S>
,SqmNode
,SqmTypedNode<S>
,SqmVisitableNode
public class SqmTreatedSimplePath<T,S extends T> extends SqmEntityValuedSimplePath<S> implements SqmSimplePath<S>, SqmTreatedPath<T,S>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SqmTreatedSimplePath(SqmPath<T> wrappedPath, EntityDomainType<S> treatTarget, NodeBuilder nodeBuilder)
SqmTreatedSimplePath(SqmPluralValuedSimplePath<T> wrappedPath, EntityDomainType<S> treatTarget, NodeBuilder nodeBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> X
accept(SemanticQueryWalker<X> walker)
Accept the walker per visitationvoid
appendHqlString(StringBuilder sb)
SqmTreatedSimplePath<T,S>
copy(SqmCopyContext context)
EntityDomainType<S>
getNodeType()
This node's type is its "referenced path source"EntityDomainType<S>
getTreatTarget()
SqmPath<T>
getWrappedPath()
Access the wrapped SqmPath.<S1 extends S>
SqmTreatedSimplePath<S,S1>treatAs(Class<S1> treatJavaType)
Support for JPA's explicit (TREAT) down-casting.-
Methods inherited from class org.hibernate.query.sqm.tree.domain.SqmEntityValuedSimplePath
resolvePathPart, treatAs
-
Methods inherited from class org.hibernate.query.sqm.tree.domain.AbstractSqmPath
copyTo, get, get, get, get, getExplicitAlias, getLhs, getModel, getNavigablePath, getReferencedPathSource, getReusablePath, getReusablePaths, registerReusablePath, resolvePath, resolvePath, setExplicitAlias, toString, type, visitReusablePaths
-
Methods inherited from class org.hibernate.query.sqm.tree.expression.AbstractSqmExpression
alias, applyInferableType, as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, getJavaTypeDescriptor, in, in, in, in, internalApplyInferableType, isNotNull, isNull, nodeBuilder
-
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaSelection
getSelectionItems, isCompoundSelection
-
Methods inherited from class org.hibernate.query.sqm.tree.jpa.AbstractJpaTupleElement
copyTo, getAlias, setAlias, setExpressibleType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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 org.hibernate.query.sqm.tree.expression.SqmExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, castAs, 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, getReferencedPathSource, getReusablePath, getReusablePaths, registerReusablePath, resolveAlias, resolveIndexedAccess, resolvePathPart, setExplicitAlias, treatAs, type, visitReusablePaths
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
-
Methods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
-
-
-
Constructor Detail
-
SqmTreatedSimplePath
public SqmTreatedSimplePath(SqmPluralValuedSimplePath<T> wrappedPath, EntityDomainType<S> treatTarget, NodeBuilder nodeBuilder)
-
SqmTreatedSimplePath
public SqmTreatedSimplePath(SqmPath<T> wrappedPath, EntityDomainType<S> treatTarget, NodeBuilder nodeBuilder)
-
-
Method Detail
-
copy
public SqmTreatedSimplePath<T,S> copy(SqmCopyContext context)
- Specified by:
copy
in interfaceSqmExpression<T>
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmPath<T>
- Specified by:
copy
in interfaceSqmSelectableNode<T>
- Specified by:
copy
in interfaceSqmTypedNode<T>
- Overrides:
copy
in classSqmEntityValuedSimplePath<S extends T>
-
getTreatTarget
public EntityDomainType<S> getTreatTarget()
- Specified by:
getTreatTarget
in interfaceSqmTreatedPath<T,S extends T>
-
getWrappedPath
public SqmPath<T> getWrappedPath()
Description copied from interface:SqmPathWrapper
Access the wrapped SqmPath.- Specified by:
getWrappedPath
in interfaceSqmPathWrapper<T,S extends T>
- Specified by:
getWrappedPath
in interfaceSqmTreatedPath<T,S extends T>
-
getNodeType
public EntityDomainType<S> getNodeType()
Description copied from interface:SqmPath
This node's type is its "referenced path source"- Specified by:
getNodeType
in interfaceSqmExpression<T>
- Specified by:
getNodeType
in interfaceSqmPath<T>
- Specified by:
getNodeType
in interfaceSqmTypedNode<T>
- Overrides:
getNodeType
in classSqmEntityValuedSimplePath<S extends T>
-
treatAs
public <S1 extends S> SqmTreatedSimplePath<S,S1> treatAs(Class<S1> treatJavaType) throws PathException
Description copied from interface:JpaPath
Support for JPA's explicit (TREAT) down-casting.
-
accept
public <X> X accept(SemanticQueryWalker<X> walker)
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
- Overrides:
accept
in classSqmEntityValuedSimplePath<S extends T>
-
appendHqlString
public void appendHqlString(StringBuilder sb)
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
- Overrides:
appendHqlString
in classAbstractSqmSimplePath<S extends T>
-
-