public class

CalendarDateTypeDescriptor

extends AbstractTypeDescriptor<T>
java.lang.Object
   ↳ org.hibernate.type.descriptor.java.AbstractTypeDescriptor<T>
     ↳ org.hibernate.type.descriptor.java.CalendarDateTypeDescriptor

Class Overview

Descriptor for java.util.Calendar handling, but just for the date (month, day, year) portion.

Summary

Fields
public static final CalendarDateTypeDescriptor INSTANCE
Protected Constructors
CalendarDateTypeDescriptor()
Public Methods
boolean areEqual(Calendar one, Calendar another)
Determine if two instances are equal
int extractHashCode(Calendar value)
Extract a proper hash code for this value.
Calendar fromString(String string)
Comparator<Calendar> getComparator()
Retrieve the natural comparator for this type.
String toString(Calendar value)
<X> X unwrap(Calendar value, Class<X> type, WrapperOptions options)
<X> Calendar wrap(X value, WrapperOptions options)
[Expand]
Inherited Methods
From class org.hibernate.type.descriptor.java.AbstractTypeDescriptor
From class java.lang.Object
From interface org.hibernate.type.descriptor.java.JavaTypeDescriptor

Fields

public static final CalendarDateTypeDescriptor INSTANCE

Protected Constructors

protected CalendarDateTypeDescriptor ()

Public Methods

public boolean areEqual (Calendar one, Calendar another)

Determine if two instances are equal

Parameters
one One instance
another The other instance
Returns
  • True if the two are considered equal; false otherwise.

public int extractHashCode (Calendar value)

Extract a proper hash code for this value.

Parameters
value The value for which to extract a hash code.
Returns
  • The extracted hash code.

public Calendar fromString (String string)

public Comparator<Calendar> getComparator ()

Retrieve the natural comparator for this type.

Returns
  • The natural comparator.

public String toString (Calendar value)

public X unwrap (Calendar value, Class<X> type, WrapperOptions options)

public Calendar wrap (X value, WrapperOptions options)