Class DdlTypeImpl
java.lang.Object
org.hibernate.type.descriptor.sql.internal.DdlTypeImpl
- All Implemented Interfaces:
Serializable,DdlType
- Direct Known Subclasses:
ArrayDdlTypeImpl,BinaryFloatDdlType,CapacityDependentDdlType,Scale6IntervalSecondDdlType
Descriptor for a SQL type.
- Author:
- Christian Beikov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDdlTypeImpl(int sqlTypeCode, boolean isLob, String typeNamePattern, String castTypeNamePattern, String castTypeName, Dialect dialect) DdlTypeImpl(int sqlTypeCode, boolean isLob, String typeNamePattern, String castTypeName, Dialect dialect) DdlTypeImpl(int sqlTypeCode, String typeNamePattern, String castTypeNamePattern, String castTypeName, Dialect dialect) DdlTypeImpl(int sqlTypeCode, String typeNamePattern, String castTypeName, Dialect dialect) DdlTypeImpl(int sqlTypeCode, String typeNamePattern, Dialect dialect) -
Method Summary
Modifier and TypeMethodDescriptiongetCastTypeName(JdbcType jdbcType, JavaType<?> javaType) getCastTypeName(JdbcType jdbcType, JavaType<?> javaType, Long length, Integer precision, Integer scale) Returns the default type name without precision/length and scale parameters.intThe SQL type code of the descriptor.getTypeName(Long size, Integer precision, Integer scale) Return a type with the given length, precision, and scale.booleanstatic StringFill 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, waitMethods inherited from interface org.hibernate.type.descriptor.sql.DdlType
getCastTypeName, getCastTypeName, getRawTypeNames, getTypeName, getTypeName
-
Constructor Details
-
DdlTypeImpl
-
DdlTypeImpl
-
DdlTypeImpl
-
DdlTypeImpl
-
DdlTypeImpl
-
-
Method Details
-
getSqlTypeCode
public int getSqlTypeCode()Description copied from interface:DdlTypeThe SQL type code of the descriptor.- Specified by:
getSqlTypeCodein interfaceDdlType- Returns:
- a SQL type code
-
getRawTypeName
Description copied from interface:DdlTypeReturns the default type name without precision/length and scale parameters.- Specified by:
getRawTypeNamein interfaceDdlType
-
isLob
-
getTypeName
Description copied from interface:DdlTypeReturn a type with the given length, precision, and scale.- Specified by:
getTypeNamein interfaceDdlType
-
getCastTypeName
public String getCastTypeName(JdbcType jdbcType, JavaType<?> javaType, Long length, Integer precision, Integer scale) Description copied from interface:DdlTypeReturn the database type with the given length, precision, and scale, if specified, corresponding to the givenJdbcType, that may be used as a target type in casting operations using the SQLCAST()function, using the givenJavaTypeto help determine the appropriate precision and scale. The length, if not explicitly specified, is usually chosen to be the maximum possible length for the dialect.- Specified by:
getCastTypeNamein interfaceDdlType- Returns:
- The SQL type name
- See Also:
-
getCastTypeName
Description copied from interface:DdlTypeReturn the database type corresponding to the givenJdbcTypethat may be used as a target type in casting operations using the SQLCAST()function, using the givenJavaTypeto help determine the appropriate precision and scale. The length is usually chosen to be the maximum possible length for the dialect.- Specified by:
getCastTypeNamein interfaceDdlType- Returns:
- The SQL type name
- See Also:
-
replace
Fill in the placemarkers with the given length, precision, and scale.
-