Class InstantJdbcType
java.lang.Object
org.hibernate.type.descriptor.jdbc.internal.AbstractJavaTimeJdbcType<Instant>
org.hibernate.type.descriptor.jdbc.InstantJdbcType
- All Implemented Interfaces:
Serializable
,JavaTimeJdbcType
,JdbcType
Descriptor for handling Instant directly through the JDBC driver
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
A JDBC type code that identifies the SQL column type to be used for schema generation.<T> JdbcLiteralFormatter<T>
getJdbcLiteralFormatter
(JavaType<T> javaType) int
The JDBC type code used when interacting with JDBC APIs.Methods inherited from class org.hibernate.type.descriptor.jdbc.internal.AbstractJavaTimeJdbcType
getBinder, getExtractor, getJdbcRecommendedJavaTypeMapping, getPreferredJavaTypeClass
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.type.descriptor.jdbc.JdbcType
addAuxiliaryDatabaseObjects, appendWriteExpression, getCastType, getCheckCondition, getDefaultSqlTypeCode, getExtraCreateTableInfo, getFriendlyName, hasDatePart, hasTimePart, isArray, isBinary, isBoolean, isComparable, isDecimal, isDuration, isFloat, isImplicitJson, isImplicitXml, isInteger, isInterval, isJson, isLob, isLobOrLong, isNationalized, isNumber, isSmallInteger, isSpatial, isString, isStringLike, isStringLikeExcludingClob, isTemporal, isXml, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
InstantJdbcType
public InstantJdbcType()
-
-
Method Details
-
getJdbcTypeCode
public int getJdbcTypeCode()Description copied from interface:JdbcType
The JDBC type code used when interacting with JDBC APIs.For example, it's used when calling
PreparedStatement.setNull(int, int)
.- Returns:
- a JDBC type code
-
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
-
getJdbcLiteralFormatter
Description copied from interface:JdbcType
-