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
Descriptor for
Duration.- Author:
- Marco Belladelli
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintA JDBC type code that identifies the SQL column type to be used for schema generation.intA JDBC type code that identifies the SQL column type.A "friendly" name for use in loggingtoString()Methods inherited from class org.hibernate.type.descriptor.jdbc.NumericJdbcType
getJdbcTypeCodeMethods inherited from class org.hibernate.type.descriptor.jdbc.DecimalJdbcType
getBinder, getExtractor, getJdbcLiteralFormatter, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcType
addAuxiliaryDatabaseObjects, addAuxiliaryDatabaseObjects, appendWriteExpression, getCastType, getCheckCondition, getExtraCreateTableInfo, hasDatePart, hasTimePart, isArray, isBinary, isBoolean, isComparable, isDecimal, isDuration, isFloat, isInteger, isInterval, isLob, isLobOrLong, isNationalized, isNumber, isSmallInteger, isSpatial, isString, isStringLike, isStringLikeExcludingClob, isTemporal, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DurationJdbcType
public DurationJdbcType()
-
-
Method Details
-
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
Description copied from interface:JdbcTypeA "friendly" name for use in logging- Specified by:
getFriendlyNamein interfaceJdbcType- Overrides:
getFriendlyNamein classDecimalJdbcType
-
toString
- Overrides:
toStringin classNumericJdbcType
-