Class AbstractTemporalJavaType<T>
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractClassJavaType<T>
-
- org.hibernate.type.descriptor.java.AbstractTemporalJavaType<T>
-
- All Implemented Interfaces:
Serializable
,BasicJavaType<T>
,JavaType<T>
,TemporalJavaType<T>
- Direct Known Subclasses:
CalendarDateJavaType
,CalendarJavaType
,CalendarTimeJavaType
,DateJavaType
,InstantJavaType
,JdbcDateJavaType
,JdbcTimeJavaType
,JdbcTimestampJavaType
,LocalDateJavaType
,LocalDateTimeJavaType
,LocalTimeJavaType
,OffsetDateTimeJavaType
,OffsetTimeJavaType
,ZonedDateTimeJavaType
public abstract class AbstractTemporalJavaType<T> extends AbstractClassJavaType<T> implements TemporalJavaType<T>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.type.descriptor.java.JavaType
JavaType.CoercionContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTemporalJavaType(Class<? extends T> type)
protected
AbstractTemporalJavaType(Class<? extends T> type, MutabilityPlan<? extends T> mutabilityPlan)
AbstractTemporalJavaType(Class<? extends T> type, MutabilityPlan<? extends T> mutabilityPlan, Comparator<? extends T> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <X> TemporalJavaType<X>
forDatePrecision(TypeConfiguration typeConfiguration)
protected <X> TemporalJavaType<X>
forTimePrecision(TypeConfiguration typeConfiguration)
protected <X> TemporalJavaType<X>
forTimestampPrecision(TypeConfiguration typeConfiguration)
<X> TemporalJavaType<X>
resolveTypeForPrecision(TemporalType precision, TypeConfiguration typeConfiguration)
Resolve the appropriate TemporalJavaType for the given precision "relative" to this type.String
toString()
-
Methods inherited from class org.hibernate.type.descriptor.java.AbstractClassJavaType
areEqual, extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
-
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.java.BasicJavaType
fromString, getRecommendedJdbcType
-
Methods inherited from interface org.hibernate.type.descriptor.java.JavaType
appendEncodedString, areEqual, coerce, createJavaType, createJavaType, extractHashCode, extractLoggableRepresentation, fromEncodedString, getComparator, getDefaultSqlLength, getDefaultSqlPrecision, getDefaultSqlScale, getDefaultValue, getJavaType, getJavaTypeClass, getLongSqlLength, getMutabilityPlan, getReplacement, isInstance, isWider, toString, unwrap, wrap
-
Methods inherited from interface org.hibernate.type.descriptor.java.TemporalJavaType
getPrecision, isTemporalType
-
-
-
-
Constructor Detail
-
AbstractTemporalJavaType
protected AbstractTemporalJavaType(Class<? extends T> type, MutabilityPlan<? extends T> mutabilityPlan)
-
AbstractTemporalJavaType
public AbstractTemporalJavaType(Class<? extends T> type, MutabilityPlan<? extends T> mutabilityPlan, Comparator<? extends T> comparator)
-
-
Method Detail
-
resolveTypeForPrecision
public final <X> TemporalJavaType<X> resolveTypeForPrecision(TemporalType precision, TypeConfiguration typeConfiguration)
Description copied from interface:TemporalJavaType
Resolve the appropriate TemporalJavaType for the given precision "relative" to this type.- Specified by:
resolveTypeForPrecision
in interfaceTemporalJavaType<T>
-
forTimestampPrecision
protected <X> TemporalJavaType<X> forTimestampPrecision(TypeConfiguration typeConfiguration)
-
forDatePrecision
protected <X> TemporalJavaType<X> forDatePrecision(TypeConfiguration typeConfiguration)
-
forTimePrecision
protected <X> TemporalJavaType<X> forTimePrecision(TypeConfiguration typeConfiguration)
-
-