Interface DdlType
-
- All Superinterfaces:
Serializable
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 StringgetCastTypeName(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 givenSqlExpressibleSQL type.StringgetCastTypeName(JdbcType jdbcType, JavaType<?> javaType)StringgetCastTypeName(JdbcType jdbcType, JavaType<?> javaType, Long length, Integer precision, Integer scale)StringgetRawTypeName()Returns the default type name without precision/length and scale parameters.default String[]getRawTypeNames()Returns all type names without precision/length and scale parameters.intgetSqlTypeCode()The SQL type code of the descriptor.StringgetTypeName(Long size, Integer precision, Integer scale)default StringgetTypeName(Size size)StringgetTypeNamePattern()
-
-
-
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 givenSqlExpressibleSQL type.- Returns:
- The database type name
-
-