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
public class InstantJdbcType extends AbstractJavaTimeJdbcType<Instant>
Descriptor for handling Instant directly through the JDBC driver- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static InstantJdbcType
INSTANCE
-
Constructor Summary
Constructors Constructor Description InstantJdbcType()
-
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.<T> JdbcLiteralFormatter<T>
getJdbcLiteralFormatter(JavaType<T> javaType)
int
getJdbcTypeCode()
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, addAuxiliaryDatabaseObjects, appendWriteExpression, getCastType, getCheckCondition, getDefaultSqlTypeCode, getExtraCreateTableInfo, getFriendlyName, isBinary, isDecimal, isDuration, isFloat, isInteger, isInterval, isLob, isLobOrLong, isNationalized, isNumber, isString, isStringLike, isTemporal, registerOutParameter, registerOutParameter, wrapTopLevelSelectionExpression, wrapWriteExpression
-
-
-
-
Field Detail
-
INSTANCE
public static final InstantJdbcType INSTANCE
-
-
Method Detail
-
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
public <T> JdbcLiteralFormatter<T> getJdbcLiteralFormatter(JavaType<T> javaType)
Description copied from interface:JdbcType
-
-