public class

CalendarTypeDescriptor

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

Class Overview

Descriptor for Calendar handling.

Summary

Nested Classes
class CalendarTypeDescriptor.CalendarMutabilityPlan  
Fields
public static final CalendarTypeDescriptor INSTANCE
Protected Constructors
CalendarTypeDescriptor()
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 CalendarTypeDescriptor INSTANCE

Protected Constructors

protected CalendarTypeDescriptor ()

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)