|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.type.descriptor.java.AbstractTypeDescriptor<java.util.Calendar>
org.hibernate.type.descriptor.java.CalendarTypeDescriptor
public class CalendarTypeDescriptor
Descriptor for Calendar handling.
| Nested Class Summary | |
|---|---|
static class |
CalendarTypeDescriptor.CalendarMutabilityPlan
|
| Field Summary | |
|---|---|
static CalendarTypeDescriptor |
INSTANCE
|
| Constructor Summary | |
|---|---|
protected |
CalendarTypeDescriptor()
|
| Method Summary | ||
|---|---|---|
boolean |
areEqual(java.util.Calendar one,
java.util.Calendar another)
Determine if two instances are equal |
|
int |
extractHashCode(java.util.Calendar value)
Extract a proper hash code for this value. |
|
java.util.Calendar |
fromString(java.lang.String string)
|
|
java.util.Comparator<java.util.Calendar> |
getComparator()
Retrieve the natural comparator for this type. |
|
java.lang.String |
toString(java.util.Calendar value)
|
|
|
unwrap(java.util.Calendar value,
java.lang.Class<X> type,
WrapperOptions options)
Unwrap an instance of our handled Java type into the requested type. |
|
|
wrap(X value,
WrapperOptions options)
Wrap a value as our handled Java type. |
|
| Methods inherited from class org.hibernate.type.descriptor.java.AbstractTypeDescriptor |
|---|
extractLoggableRepresentation, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CalendarTypeDescriptor INSTANCE
| Constructor Detail |
|---|
protected CalendarTypeDescriptor()
| Method Detail |
|---|
public java.lang.String toString(java.util.Calendar value)
public java.util.Calendar fromString(java.lang.String string)
public boolean areEqual(java.util.Calendar one,
java.util.Calendar another)
AbstractTypeDescriptor
areEqual in interface JavaTypeDescriptor<java.util.Calendar>areEqual in class AbstractTypeDescriptor<java.util.Calendar>one - One instanceanother - The other instance
public int extractHashCode(java.util.Calendar value)
AbstractTypeDescriptor
extractHashCode in interface JavaTypeDescriptor<java.util.Calendar>extractHashCode in class AbstractTypeDescriptor<java.util.Calendar>value - The value for which to extract a hash code.
public java.util.Comparator<java.util.Calendar> getComparator()
AbstractTypeDescriptor
getComparator in interface JavaTypeDescriptor<java.util.Calendar>getComparator in class AbstractTypeDescriptor<java.util.Calendar>
public <X> X unwrap(java.util.Calendar value,
java.lang.Class<X> type,
WrapperOptions options)
JavaTypeDescriptorJavaTypeDescriptor<Integer> and we are asked to unwrap
the Integer value as a Long we would return something like
Long.valueOf( value.longValue() ).
Intended use is during PreparedStatement binding.
X - The conversion type.value - The value to unwraptype - The type as which to unwrapoptions - The options
public <X> java.util.Calendar wrap(X value,
WrapperOptions options)
JavaTypeDescriptorResultSet extraction.
X - The conversion type.value - The value to wrap.options - The options
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||