Interface DdlType
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BinaryFloatDdlType
,CapacityDependentDdlType
,DdlTypeImpl
,Scale6IntervalSecondDdlType
public interface DdlType extends Serializable
Descriptor for a DDL type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default String
getCastTypeName(SqlExpressible type, Long length, Integer precision, Integer scale)
Get the name of the database type appropriate for casting operations (via the CAST() SQL function) for the givenSqlExpressible
SQL type.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.default String[]
getRawTypeNames()
Returns all type names without precision/length and scale parameters.int
getSqlTypeCode()
The SQL type code of the descriptor.String
getTypeName(Long size, Integer precision, Integer scale)
default String
getTypeName(Size size)
String
getTypeNamePattern()
-
-
-
Method Detail
-
getSqlTypeCode
int getSqlTypeCode()
The SQL type code of the descriptor.- Returns:
- a SQL type code
-
getRawTypeName
String getRawTypeName()
Returns the default type name without precision/length and scale parameters.
-
getRawTypeNames
default String[] getRawTypeNames()
Returns all type names without precision/length and scale parameters.
-
getTypeNamePattern
String getTypeNamePattern()
-
getCastTypeName
default String getCastTypeName(SqlExpressible type, Long length, Integer precision, Integer scale)
Get the name of the database type appropriate for casting operations (via the CAST() SQL function) for the givenSqlExpressible
SQL type.- Returns:
- The database type name
-
-