Class TimeAsTimestampWithTimeZoneJdbcType
- java.lang.Object
-
- org.hibernate.type.descriptor.jdbc.TimestampWithTimeZoneJdbcType
-
- org.hibernate.type.descriptor.jdbc.TimeAsTimestampWithTimeZoneJdbcType
-
- All Implemented Interfaces:
Serializable,JdbcType
public class TimeAsTimestampWithTimeZoneJdbcType extends TimestampWithTimeZoneJdbcType
Descriptor forTIMESTAMP_WITH_TIMEZONEhandling.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TimeAsTimestampWithTimeZoneJdbcTypeINSTANCE
-
Constructor Summary
Constructors Constructor Description TimeAsTimestampWithTimeZoneJdbcType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDefaultSqlTypeCode()A JDBC type code that identifies the SQL column type.StringgetFriendlyName()A "friendly" name for use in logging<T> JdbcLiteralFormatter<T>getJdbcLiteralFormatter(JavaType<T> javaType)<T> JavaType<T>getJdbcRecommendedJavaTypeMapping(Integer length, Integer scale, TypeConfiguration typeConfiguration)intgetJdbcTypeCode()The JDBC type code used when interacting with JDBC APIs.StringtoString()-
Methods inherited from class org.hibernate.type.descriptor.jdbc.TimestampWithTimeZoneJdbcType
getBinder, getExtractor, 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, getDdlTypeCode, 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 Detail
-
INSTANCE
public static final TimeAsTimestampWithTimeZoneJdbcType INSTANCE
-
-
Method Detail
-
getJdbcTypeCode
public int getJdbcTypeCode()
Description copied from interface:JdbcTypeThe JDBC type code used when interacting with JDBC APIs.For example, it's used when calling
PreparedStatement.setNull(int, int).- Specified by:
getJdbcTypeCodein interfaceJdbcType- Overrides:
getJdbcTypeCodein classTimestampWithTimeZoneJdbcType- 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 classTimestampWithTimeZoneJdbcType
-
toString
public String toString()
- Overrides:
toStringin classTimestampWithTimeZoneJdbcType
-
getJdbcRecommendedJavaTypeMapping
public <T> JavaType<T> getJdbcRecommendedJavaTypeMapping(Integer length, Integer scale, TypeConfiguration typeConfiguration)
- Specified by:
getJdbcRecommendedJavaTypeMappingin interfaceJdbcType- Overrides:
getJdbcRecommendedJavaTypeMappingin classTimestampWithTimeZoneJdbcType
-
getJdbcLiteralFormatter
public <T> JdbcLiteralFormatter<T> getJdbcLiteralFormatter(JavaType<T> javaType)
Description copied from interface:JdbcTypeObtain a formatter object capable of rendering values of the given Java type as SQL literals of the type represented by this object.- Specified by:
getJdbcLiteralFormatterin interfaceJdbcType- Overrides:
getJdbcLiteralFormatterin classTimestampWithTimeZoneJdbcType
-
-