Class DdlTypeImpl
- java.lang.Object
-
- org.hibernate.type.descriptor.sql.internal.DdlTypeImpl
-
- All Implemented Interfaces:
Serializable
,DdlType
- Direct Known Subclasses:
BinaryFloatDdlType
,CapacityDependentDdlType
,Scale6IntervalSecondDdlType
public class DdlTypeImpl extends Object implements DdlType
Descriptor for a SQL type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DdlTypeImpl(int sqlTypeCode, String typeNamePattern, String castTypeNamePattern, Dialect dialect)
DdlTypeImpl(int sqlTypeCode, String typeNamePattern, Dialect dialect)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCastTypeName(JdbcType jdbcType, JavaType<?> javaType)
String
getCastTypeName(JdbcType jdbcType, JavaType<?> javaType, Long length, Integer precision, Integer scale)
String
getRawTypeName()
Returns the default type name without precision/length and scale parameters.int
getSqlTypeCode()
The SQL type code of the descriptor.String
getTypeName(Long size, Integer precision, Integer scale)
String
getTypeNamePattern()
static String
replace(String type, Long size, Integer precision, Integer scale)
Fill in the placemarkers with the given length, precision, and scale.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.descriptor.sql.DdlType
getCastTypeName, getRawTypeNames, getTypeName
-
-
-
-
Method Detail
-
getSqlTypeCode
public int getSqlTypeCode()
Description copied from interface:DdlType
The SQL type code of the descriptor.- Specified by:
getSqlTypeCode
in interfaceDdlType
- Returns:
- a SQL type code
-
getRawTypeName
public String getRawTypeName()
Description copied from interface:DdlType
Returns the default type name without precision/length and scale parameters.- Specified by:
getRawTypeName
in interfaceDdlType
-
getTypeNamePattern
public String getTypeNamePattern()
- Specified by:
getTypeNamePattern
in interfaceDdlType
-
getTypeName
public String getTypeName(Long size, Integer precision, Integer scale)
- Specified by:
getTypeName
in interfaceDdlType
-
getCastTypeName
public String getCastTypeName(JdbcType jdbcType, JavaType<?> javaType, Long length, Integer precision, Integer scale)
- Specified by:
getCastTypeName
in interfaceDdlType
-
getCastTypeName
public String getCastTypeName(JdbcType jdbcType, JavaType<?> javaType)
- Specified by:
getCastTypeName
in interfaceDdlType
-
-