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 DurationJdbcType
INSTANCE
-
Constructor Summary
Constructors Constructor Description DurationJdbcType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDdlTypeCode()
A JDBC type code that identifies the SQL column type to be used for schema generation.int
getDefaultSqlTypeCode()
A JDBC type code that identifies the SQL column type.String
getFriendlyName()
A "friendly" name for use in loggingString
toString()
-
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:JdbcType
A 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:JdbcType
A 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:JdbcType
A "friendly" name for use in logging- Specified by:
getFriendlyName
in interfaceJdbcType
- Overrides:
getFriendlyName
in classDecimalJdbcType
-
toString
public String toString()
- Overrides:
toString
in classNumericJdbcType
-
-