Class CastTarget
- java.lang.Object
-
- org.hibernate.sql.ast.tree.expression.CastTarget
-
- All Implemented Interfaces:
SqlTypedMapping
,SqlSelectionProducer
,Expression
,SqlAstNode
public class CastTarget extends Object implements Expression, SqlAstNode, SqlTypedMapping
-
-
Constructor Summary
Constructors Constructor Description CastTarget(JdbcMapping type)
CastTarget(JdbcMapping type, Long length, Integer precision, Integer scale)
CastTarget(JdbcMapping type, String sqlType, Long length, Integer precision, Integer scale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
String
getColumnDefinition()
JdbcMappingContainer
getExpressionType()
The type for this expressionJdbcMapping
getJdbcMapping()
Long
getLength()
Integer
getPrecision()
Integer
getScale()
String
getSqlType()
Integer
getTemporalPrecision()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.sql.ast.tree.expression.Expression
createDomainResultSqlSelection, createSqlSelection, getColumnReference
-
Methods inherited from interface org.hibernate.metamodel.mapping.SqlTypedMapping
isLob, toSize
-
-
-
-
Constructor Detail
-
CastTarget
public CastTarget(JdbcMapping type)
-
CastTarget
public CastTarget(JdbcMapping type, Long length, Integer precision, Integer scale)
-
CastTarget
public CastTarget(JdbcMapping type, String sqlType, Long length, Integer precision, Integer scale)
-
-
Method Detail
-
getSqlType
public String getSqlType()
-
getColumnDefinition
public String getColumnDefinition()
- Specified by:
getColumnDefinition
in interfaceSqlTypedMapping
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
- Specified by:
getJdbcMapping
in interfaceSqlTypedMapping
-
getLength
public Long getLength()
- Specified by:
getLength
in interfaceSqlTypedMapping
-
getPrecision
public Integer getPrecision()
- Specified by:
getPrecision
in interfaceSqlTypedMapping
-
getTemporalPrecision
public Integer getTemporalPrecision()
- Specified by:
getTemporalPrecision
in interfaceSqlTypedMapping
-
getScale
public Integer getScale()
- Specified by:
getScale
in interfaceSqlTypedMapping
-
getExpressionType
public JdbcMappingContainer getExpressionType()
Description copied from interface:Expression
The type for this expression- Specified by:
getExpressionType
in interfaceExpression
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
-