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_TIMEZONE
handling.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static TimeAsTimestampWithTimeZoneJdbcType
INSTANCE
-
Constructor Summary
Constructors Constructor Description TimeAsTimestampWithTimeZoneJdbcType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDefaultSqlTypeCode()
A JDBC type code that identifies the SQL column type.String
getFriendlyName()
A "friendly" name for use in logging<T> JdbcLiteralFormatter<T>
getJdbcLiteralFormatter(JavaType<T> javaType)
<T> JavaType<T>
getJdbcRecommendedJavaTypeMapping(Integer length, Integer scale, TypeConfiguration typeConfiguration)
int
getJdbcTypeCode()
The JDBC type code used when interacting with JDBC APIs.String
toString()
-
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:JdbcType
The JDBC type code used when interacting with JDBC APIs.For example, it's used when calling
PreparedStatement.setNull(int, int)
.- Specified by:
getJdbcTypeCode
in interfaceJdbcType
- Overrides:
getJdbcTypeCode
in classTimestampWithTimeZoneJdbcType
- 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 classTimestampWithTimeZoneJdbcType
-
toString
public String toString()
- Overrides:
toString
in classTimestampWithTimeZoneJdbcType
-
getJdbcRecommendedJavaTypeMapping
public <T> JavaType<T> getJdbcRecommendedJavaTypeMapping(Integer length, Integer scale, TypeConfiguration typeConfiguration)
- Specified by:
getJdbcRecommendedJavaTypeMapping
in interfaceJdbcType
- Overrides:
getJdbcRecommendedJavaTypeMapping
in classTimestampWithTimeZoneJdbcType
-
getJdbcLiteralFormatter
public <T> JdbcLiteralFormatter<T> getJdbcLiteralFormatter(JavaType<T> javaType)
Description copied from interface:JdbcType
Obtain a formatter object capable of rendering values of the given Java type as SQL literals of the type represented by this object.- Specified by:
getJdbcLiteralFormatter
in interfaceJdbcType
- Overrides:
getJdbcLiteralFormatter
in classTimestampWithTimeZoneJdbcType
-
-