Class SqmCastTarget<T>
java.lang.Object
org.hibernate.query.sqm.tree.AbstractSqmNode
org.hibernate.query.sqm.tree.expression.SqmCastTarget<T>
- All Implemented Interfaces:
Serializable, JpaCastTarget<T>, JpaCriteriaNode, SqmCacheable, SqmExpressibleAccessor<T>, SqmNode, SqmTypedNode<T>, SqmVisitableNode
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmCastTarget(ReturnableType<T> type, @Nullable Integer precision, @Nullable Integer scale, NodeBuilder nodeBuilder) SqmCastTarget(ReturnableType<T> type, @Nullable Long length, @Nullable Integer precision, @Nullable Integer scale, NodeBuilder nodeBuilder) SqmCastTarget(ReturnableType<T> type, @Nullable Long length, NodeBuilder nodeBuilder) SqmCastTarget(ReturnableType<T> type, NodeBuilder nodeBuilder) -
Method Summary
Modifier and TypeMethodDescription<X> Xaccept(SemanticQueryWalker<X> walker) Accept the walker per visitationvoidappendHqlString(StringBuilder hql, SqmRenderContext context) intcopy(SqmCopyContext context) boolean@Nullable LongReturns the specified length of the cast target ornull.@Nullable SqmBindableType<T> @Nullable IntegerReturns the specified precision of the cast target ornull.@Nullable IntegergetScale()Returns the specified scale of the cast target ornull.getType()Returns the JPA type for this cast target.inthashCode()booleanisCompatible(Object object) Methods inherited from class AbstractSqmNode
nodeBuilderMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SqmNode
asLoggableText, nodeBuilderMethods inherited from interface SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmCastTarget
-
SqmCastTarget
-
SqmCastTarget
public SqmCastTarget(ReturnableType<T> type, @Nullable Integer precision, @Nullable Integer scale, NodeBuilder nodeBuilder) -
SqmCastTarget
public SqmCastTarget(ReturnableType<T> type, @Nullable Long length, @Nullable Integer precision, @Nullable Integer scale, NodeBuilder nodeBuilder)
-
-
Method Details
-
getLength
Description copied from interface:JpaCastTargetReturns the specified length of the cast target ornull.- Specified by:
getLengthin interfaceJpaCastTarget<T>
-
getPrecision
Description copied from interface:JpaCastTargetReturns the specified precision of the cast target ornull.- Specified by:
getPrecisionin interfaceJpaCastTarget<T>
-
getScale
Description copied from interface:JpaCastTargetReturns the specified scale of the cast target ornull.- Specified by:
getScalein interfaceJpaCastTarget<T>
-
copy
- Specified by:
copyin interfaceSqmNode- Specified by:
copyin interfaceSqmTypedNode<T>
-
getType
Description copied from interface:JpaCastTargetReturns the JPA type for this cast target.- Specified by:
getTypein interfaceJpaCastTarget<T>
-
accept
Description copied from interface:SqmVisitableNodeAccept the walker per visitation- Specified by:
acceptin interfaceSqmVisitableNode
-
getNodeType
- Specified by:
getNodeTypein interfaceSqmTypedNode<T>
-
appendHqlString
- Specified by:
appendHqlStringin interfaceSqmVisitableNode
-
equals
-
hashCode
-
isCompatible
- Specified by:
isCompatiblein interfaceSqmCacheable
-
cacheHashCode
public int cacheHashCode()- Specified by:
cacheHashCodein interfaceSqmCacheable
-