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,SqmExpressibleAccessor<T>,SqmNode,SqmTypedNode<T>,SqmVisitableNode
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionSqmCastTarget(ReturnableType<T> type, Integer precision, Integer scale, NodeBuilder nodeBuilder) SqmCastTarget(ReturnableType<T> type, Long length, Integer precision, Integer scale, NodeBuilder nodeBuilder) SqmCastTarget(ReturnableType<T> type, 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) copy(SqmCopyContext context) boolean@Nullable LongReturns the specified length of the cast target ornull.@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()Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmNode
nodeBuilderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilderMethods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaTypeMethods inherited from interface org.hibernate.query.sqm.tree.SqmVisitableNode
toHqlString
-
Constructor Details
-
SqmCastTarget
-
SqmCastTarget
-
SqmCastTarget
public SqmCastTarget(ReturnableType<T> type, Integer precision, Integer scale, NodeBuilder nodeBuilder) -
SqmCastTarget
public SqmCastTarget(ReturnableType<T> type, Long length, Integer precision, 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
public int hashCode()
-