Class YearMonthEpochTypeDescriptor
- java.lang.Object
-
- org.hibernate.type.descriptor.java.AbstractTypeDescriptor<java.time.YearMonth>
-
- com.vladmihalcea.hibernate.type.basic.internal.YearMonthEpochTypeDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
,org.hibernate.type.descriptor.java.BasicJavaDescriptor<java.time.YearMonth>
,org.hibernate.type.descriptor.java.JavaTypeDescriptor<java.time.YearMonth>
public class YearMonthEpochTypeDescriptor extends org.hibernate.type.descriptor.java.AbstractTypeDescriptor<java.time.YearMonth>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static YearMonthEpochTypeDescriptor
INSTANCE
static java.time.LocalDate
LOCAL_DATE_EPOCH
static java.time.YearMonth
YEAR_MONTH_EPOCH
-
Constructor Summary
Constructors Constructor Description YearMonthEpochTypeDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areEqual(java.time.YearMonth one, java.time.YearMonth another)
java.time.YearMonth
fromString(java.lang.String string)
java.lang.String
toString(java.time.YearMonth value)
<X> X
unwrap(java.time.YearMonth value, java.lang.Class<X> type, org.hibernate.type.descriptor.WrapperOptions options)
<X> java.time.YearMonth
wrap(X value, org.hibernate.type.descriptor.WrapperOptions options)
-
Methods inherited from class org.hibernate.type.descriptor.java.AbstractTypeDescriptor
extractHashCode, extractLoggableRepresentation, getComparator, getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap
-
-
-
-
Field Detail
-
YEAR_MONTH_EPOCH
public static final java.time.YearMonth YEAR_MONTH_EPOCH
-
LOCAL_DATE_EPOCH
public static final java.time.LocalDate LOCAL_DATE_EPOCH
-
INSTANCE
public static final YearMonthEpochTypeDescriptor INSTANCE
-
-
Method Detail
-
areEqual
public boolean areEqual(java.time.YearMonth one, java.time.YearMonth another)
- Specified by:
areEqual
in interfaceorg.hibernate.type.descriptor.java.JavaTypeDescriptor<java.time.YearMonth>
- Overrides:
areEqual
in classorg.hibernate.type.descriptor.java.AbstractTypeDescriptor<java.time.YearMonth>
-
toString
public java.lang.String toString(java.time.YearMonth value)
-
fromString
public java.time.YearMonth fromString(java.lang.String string)
-
unwrap
public <X> X unwrap(java.time.YearMonth value, java.lang.Class<X> type, org.hibernate.type.descriptor.WrapperOptions options)
-
wrap
public <X> java.time.YearMonth wrap(X value, org.hibernate.type.descriptor.WrapperOptions options)
-
-