Class DurationJdbcType
- java.lang.Object
-
- org.hibernate.type.descriptor.jdbc.DecimalJdbcType
-
- org.hibernate.type.descriptor.jdbc.NumericJdbcType
-
- org.hibernate.type.descriptor.jdbc.DurationJdbcType
-
- All Implemented Interfaces:
Serializable,JdbcType
public class DurationJdbcType extends NumericJdbcType
Descriptor forDuration.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DurationJdbcTypeINSTANCE
-
Constructor Summary
Constructors Constructor Description DurationJdbcType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDdlTypeCode()A JDBC type code that identifies the SQL column type to be used for schema generation.intgetDefaultSqlTypeCode()A JDBC type code that identifies the SQL column type.StringgetFriendlyName()A "friendly" name for use in loggingStringtoString()-
Methods inherited from class org.hibernate.type.descriptor.jdbc.NumericJdbcType
getJdbcTypeCode
-
Methods inherited from class org.hibernate.type.descriptor.jdbc.DecimalJdbcType
getBinder, getExtractor, getJdbcLiteralFormatter, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClass
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcType
addAuxiliaryDatabaseObjects, addAuxiliaryDatabaseObjects, appendWriteExpression, getCastType, getCheckCondition, getExtraCreateTableInfo, isBinary, isDecimal, isDuration, isFloat, isInteger, isInterval, isLob, isLobOrLong, isNationalized, isNumber, isString, isStringLike, isTemporal, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression
-
-
-
-
Field Detail
-
INSTANCE
public static final DurationJdbcType INSTANCE
-
-
Method Detail
-
getDdlTypeCode
public int getDdlTypeCode()
Description copied from interface:JdbcTypeA JDBC type code that identifies the SQL column type to be used for schema generation.This value is passed to
DdlTypeRegistry.getTypeName(int, Size, Type)to obtain the SQL column type.- Returns:
- a JDBC type code
-
getDefaultSqlTypeCode
public int getDefaultSqlTypeCode()
Description copied from interface:JdbcTypeA JDBC type code that identifies the SQL column type.This value might be different from
JdbcType.getDdlTypeCode()if the actual type e.g. JSON is emulated through a type like CLOB.- Returns:
- a JDBC type code
-
getFriendlyName
public String getFriendlyName()
Description copied from interface:JdbcTypeA "friendly" name for use in logging- Specified by:
getFriendlyNamein interfaceJdbcType- Overrides:
getFriendlyNamein classDecimalJdbcType
-
toString
public String toString()
- Overrides:
toStringin classNumericJdbcType
-
-