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 voidaccept(SqlAstWalker sqlTreeWalker)StringgetColumnDefinition()JdbcMappingContainergetExpressionType()The type for this expressionJdbcMappinggetJdbcMapping()LonggetLength()IntegergetPrecision()IntegergetScale()StringgetSqlType()IntegergetTemporalPrecision()-
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:
getColumnDefinitionin interfaceSqlTypedMapping
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
- Specified by:
getJdbcMappingin interfaceSqlTypedMapping
-
getLength
public Long getLength()
- Specified by:
getLengthin interfaceSqlTypedMapping
-
getPrecision
public Integer getPrecision()
- Specified by:
getPrecisionin interfaceSqlTypedMapping
-
getTemporalPrecision
public Integer getTemporalPrecision()
- Specified by:
getTemporalPrecisionin interfaceSqlTypedMapping
-
getScale
public Integer getScale()
- Specified by:
getScalein interfaceSqlTypedMapping
-
getExpressionType
public JdbcMappingContainer getExpressionType()
Description copied from interface:ExpressionThe type for this expression- Specified by:
getExpressionTypein interfaceExpression
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
acceptin interfaceSqlAstNode
-
-