public class ClobTypeDescriptor extends AbstractTypeDescriptor<Clob>
Clob handling.
Note, clobs really are mutable (their internal state can in fact be mutated). We simply
treat them as immutable because we cannot properly check them for changes nor deep copy them.| Modifier and Type | Class and Description |
|---|---|
static class |
ClobTypeDescriptor.ClobMutabilityPlan |
| Modifier and Type | Field and Description |
|---|---|
static ClobTypeDescriptor |
INSTANCE |
| Constructor and Description |
|---|
ClobTypeDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(Clob one,
Clob another)
Determine if two instances are equal
|
int |
extractHashCode(Clob value)
Extract a proper hash code for this value.
|
String |
extractLoggableRepresentation(Clob value)
Extract a loggable representation of the value.
|
Clob |
fromString(String string) |
Comparator<Clob> |
getComparator()
Retrieve the natural comparator for this type.
|
String |
toString(Clob value) |
<X> X |
unwrap(Clob value,
Class<X> type,
WrapperOptions options)
Unwrap an instance of our handled Java type into the requested type.
|
<X> Clob |
wrap(X value,
WrapperOptions options)
Wrap a value as our handled Java type.
|
getJavaType, getJavaTypeClass, getMutabilityPlan, unknownUnwrap, unknownWrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJdbcRecommendedSqlTypepublic static final ClobTypeDescriptor INSTANCE
public String extractLoggableRepresentation(Clob value)
JavaTypeDescriptorextractLoggableRepresentation in interface JavaTypeDescriptor<Clob>extractLoggableRepresentation in class AbstractTypeDescriptor<Clob>value - The value for which to extract a loggable representation.public Comparator<Clob> getComparator()
JavaTypeDescriptorgetComparator in interface JavaTypeDescriptor<Clob>getComparator in class AbstractTypeDescriptor<Clob>public int extractHashCode(Clob value)
JavaTypeDescriptorextractHashCode in interface JavaTypeDescriptor<Clob>extractHashCode in class AbstractTypeDescriptor<Clob>value - The value for which to extract a hash code.public boolean areEqual(Clob one, Clob another)
JavaTypeDescriptorareEqual in interface JavaTypeDescriptor<Clob>areEqual in class AbstractTypeDescriptor<Clob>one - One instanceanother - The other instancepublic <X> X unwrap(Clob value, 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> Clob wrap(X value, WrapperOptions options)
JavaTypeDescriptorResultSet extraction.X - The conversion type.value - The value to wrap.options - The optionsCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.