public class NClobTypeDescriptor extends AbstractTypeDescriptor<NClob>
Descriptor for NClob handling.
<p/>
Note, nclobs 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 |
NClobTypeDescriptor.NClobMutabilityPlan |
| Modifier and Type | Field and Description |
|---|---|
static NClobTypeDescriptor |
INSTANCE |
| Constructor and Description |
|---|
NClobTypeDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(NClob one,
NClob another)
Determine if two instances are equal
|
int |
extractHashCode(NClob value)
Extract a proper hash code for this value.
|
String |
extractLoggableRepresentation(NClob value)
Extract a loggable representation of the value.
|
NClob |
fromString(String string) |
Comparator<NClob> |
getComparator()
Retrieve the natural comparator for this type.
|
String |
toString(NClob value) |
<X> X |
unwrap(NClob value,
Class<X> type,
WrapperOptions options)
Unwrap an instance of our handled Java type into the requested type.
|
<X> NClob |
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 NClobTypeDescriptor INSTANCE
public String extractLoggableRepresentation(NClob value)
JavaTypeDescriptorExtract a loggable representation of the value.
extractLoggableRepresentation in interface JavaTypeDescriptor<NClob>extractLoggableRepresentation in class AbstractTypeDescriptor<NClob>value - The value for which to extract a loggable representation.public Comparator<NClob> getComparator()
JavaTypeDescriptorRetrieve the natural comparator for this type.
getComparator in interface JavaTypeDescriptor<NClob>getComparator in class AbstractTypeDescriptor<NClob>public int extractHashCode(NClob value)
JavaTypeDescriptorExtract a proper hash code for this value.
extractHashCode in interface JavaTypeDescriptor<NClob>extractHashCode in class AbstractTypeDescriptor<NClob>value - The value for which to extract a hash code.public boolean areEqual(NClob one, NClob another)
JavaTypeDescriptorDetermine if two instances are equal
areEqual in interface JavaTypeDescriptor<NClob>areEqual in class AbstractTypeDescriptor<NClob>one - One instanceanother - The other instancepublic <X> X unwrap(NClob value, Class<X> type, WrapperOptions options)
JavaTypeDescriptorUnwrap an instance of our handled Java type into the requested type.
<p/>
As an example, if this is a JavaTypeDescriptor<Integer> and we are asked to unwrap
the Integer value as a Long we would return something like
<code>Long.valueOf( value.longValue() )</code>.
<p/>
Intended use is during PreparedStatement binding.
X - The conversion type.value - The value to unwraptype - The type as which to unwrapoptions - The optionspublic <X> NClob wrap(X value, WrapperOptions options)
JavaTypeDescriptorWrap a value as our handled Java type.
<p/>
Intended use is during ResultSet extraction.
X - The conversion type.value - The value to wrap.options - The optionsCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.