Interface TemporalJavaType<T>
- All Superinterfaces:
BasicJavaType<T>
,JavaType<T>
,Serializable
- All Known Implementing Classes:
AbstractTemporalJavaType
,CalendarDateJavaType
,CalendarJavaType
,CalendarTimeJavaType
,DateJavaType
,InstantJavaType
,JdbcDateJavaType
,JdbcTimeJavaType
,JdbcTimestampJavaType
,LocalDateJavaType
,LocalDateTimeJavaType
,LocalTimeJavaType
,OffsetDateTimeJavaType
,OffsetTimeJavaType
,ZonedDateTimeJavaType
Specialized JavaType for temporal types.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
JavaType.CoercionContext
-
Method Summary
Modifier and TypeMethodDescriptionThe precision represented by this typedefault boolean
Return true if the implementation is an instance ofTemporalJavaType
static Class<?>
resolveJavaTypeClass
(TemporalType requestedTemporalPrecision) static int
resolveJdbcTypeCode
(TemporalType requestedTemporalPrecision) <X> TemporalJavaType<X>
resolveTypeForPrecision
(TemporalType precision, TypeConfiguration typeConfiguration) Resolve the appropriate TemporalJavaType for the given precision "relative" to this type.Methods inherited from interface org.hibernate.type.descriptor.java.BasicJavaType
fromString, getRecommendedJdbcType
Methods inherited from interface org.hibernate.type.descriptor.java.JavaType
appendEncodedString, areEqual, coerce, createJavaType, extractHashCode, extractLoggableRepresentation, fromEncodedString, getCheckCondition, getComparator, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaType, getJavaTypeClass, getLongSqlLength, getMutabilityPlan, getReplacement, getTypeName, isInstance, isWider, toString, unwrap, useObjectEqualsHashCode, wrap
-
Method Details
-
resolveJdbcTypeCode
-
resolveJavaTypeClass
-
getPrecision
TemporalType getPrecision()The precision represented by this type -
resolveTypeForPrecision
<X> TemporalJavaType<X> resolveTypeForPrecision(TemporalType precision, TypeConfiguration typeConfiguration) Resolve the appropriate TemporalJavaType for the given precision "relative" to this type. -
isTemporalType
default boolean isTemporalType()Description copied from interface:JavaType
Return true if the implementation is an instance ofTemporalJavaType
- Specified by:
isTemporalType
in interfaceJavaType<T>
- Returns:
- true if it is an instance of
TemporalJavaType
; false otherwise
-