public class TimeZoneTypeDescriptor extends AbstractTypeDescriptor<java.util.TimeZone>
TimeZone handling.| Modifier and Type | Class and Description |
|---|---|
static class |
TimeZoneTypeDescriptor.TimeZoneComparator |
| Modifier and Type | Field and Description |
|---|---|
static TimeZoneTypeDescriptor |
INSTANCE |
| Constructor and Description |
|---|
TimeZoneTypeDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
java.util.TimeZone |
fromString(java.lang.String string) |
java.util.Comparator<java.util.TimeZone> |
getComparator()
Retrieve the natural comparator for this type.
|
java.lang.String |
toString(java.util.TimeZone value) |
<X> X |
unwrap(java.util.TimeZone value,
java.lang.Class<X> type,
WrapperOptions options)
Unwrap an instance of our handled Java type into the requested type.
|
<X> java.util.TimeZone |
wrap(X value,
WrapperOptions options)
Wrap a value as our handled Java type.
|
areEqual, extractHashCode, extractLoggableRepresentation, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrappublic static final TimeZoneTypeDescriptor INSTANCE
public java.lang.String toString(java.util.TimeZone value)
public java.util.TimeZone fromString(java.lang.String string)
public java.util.Comparator<java.util.TimeZone> getComparator()
AbstractTypeDescriptorgetComparator in interface JavaTypeDescriptor<java.util.TimeZone>getComparator in class AbstractTypeDescriptor<java.util.TimeZone>public <X> X unwrap(java.util.TimeZone 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 optionspublic <X> java.util.TimeZone wrap(X value,
WrapperOptions options)
JavaTypeDescriptorResultSet extraction.X - The conversion type.value - The value to wrap.options - The optionsCopyright © 2013. All Rights Reserved.