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> X
accept
(SemanticQueryWalker<X> walker) Accept the walker per visitationvoid
copy
(SqmCopyContext context) @Nullable Long
Returns the specified length of the cast target ornull
.@Nullable Integer
Returns the specified precision of the cast target ornull
.@Nullable Integer
getScale()
Returns the specified scale of the cast target ornull
.getType()
Returns the JPA type for this cast target.Methods inherited from class org.hibernate.query.sqm.tree.AbstractSqmNode
nodeBuilder
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.query.sqm.tree.SqmNode
asLoggableText, nodeBuilder
Methods inherited from interface org.hibernate.query.sqm.tree.SqmTypedNode
getExpressible, getNodeJavaType
Methods 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:JpaCastTarget
Returns the specified length of the cast target ornull
.- Specified by:
getLength
in interfaceJpaCastTarget<T>
-
getPrecision
Description copied from interface:JpaCastTarget
Returns the specified precision of the cast target ornull
.- Specified by:
getPrecision
in interfaceJpaCastTarget<T>
-
getScale
Description copied from interface:JpaCastTarget
Returns the specified scale of the cast target ornull
.- Specified by:
getScale
in interfaceJpaCastTarget<T>
-
copy
- Specified by:
copy
in interfaceSqmNode
- Specified by:
copy
in interfaceSqmTypedNode<T>
-
getType
Description copied from interface:JpaCastTarget
Returns the JPA type for this cast target.- Specified by:
getType
in interfaceJpaCastTarget<T>
-
accept
Description copied from interface:SqmVisitableNode
Accept the walker per visitation- Specified by:
accept
in interfaceSqmVisitableNode
-
getNodeType
- Specified by:
getNodeType
in interfaceSqmTypedNode<T>
-
appendHqlString
- Specified by:
appendHqlString
in interfaceSqmVisitableNode
-