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
@Incubating public interface TemporalJavaType<T> extends BasicJavaType<T>
Specialized JavaType for temporal types.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
JavaType.CoercionContext
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TemporalType
getPrecision()
The precision represented by this typedefault boolean
isTemporalType()
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, createJavaType, extractHashCode, extractLoggableRepresentation, fromEncodedString, getCheckCondition, getComparator, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaType, getJavaTypeClass, getLongSqlLength, getMutabilityPlan, getReplacement, getTypeName, isInstance, isWider, toString, unwrap, useObjectEqualsHashCode, wrap
-
-
-
-
Method Detail
-
resolveJdbcTypeCode
static int resolveJdbcTypeCode(TemporalType requestedTemporalPrecision)
-
resolveJavaTypeClass
static Class<?> resolveJavaTypeClass(TemporalType requestedTemporalPrecision)
-
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
-
-