|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.type.descriptor.java.AbstractTypeDescriptor<NClob>
org.hibernate.type.descriptor.java.NClobTypeDescriptor
public class NClobTypeDescriptor
Descriptor for NClob
handling.
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.
Nested Class Summary | |
---|---|
static class |
NClobTypeDescriptor.NClobMutabilityPlan
|
Field Summary | |
---|---|
static NClobTypeDescriptor |
INSTANCE
|
Constructor Summary | |
---|---|
NClobTypeDescriptor()
|
Method Summary | ||
---|---|---|
boolean |
areEqual(NClob one,
NClob another)
Determine if two instances are equal |
|
int |
extractHashCode(NClob value)
Extract a proper hash code for this value. |
|
NClob |
fromString(String string)
|
|
Comparator<NClob> |
getComparator()
Retrieve the natural comparator for this type. |
|
String |
toString(NClob value)
|
|
|
unwrap(NClob value,
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 NClobTypeDescriptor INSTANCE
Constructor Detail |
---|
public NClobTypeDescriptor()
Method Detail |
---|
public String toString(NClob value)
public NClob fromString(String string)
public Comparator<NClob> getComparator()
AbstractTypeDescriptor
getComparator
in interface JavaTypeDescriptor<NClob>
getComparator
in class AbstractTypeDescriptor<NClob>
public int extractHashCode(NClob value)
AbstractTypeDescriptor
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)
AbstractTypeDescriptor
areEqual
in interface JavaTypeDescriptor<NClob>
areEqual
in class AbstractTypeDescriptor<NClob>
one
- One instanceanother
- The other instance
public <X> X unwrap(NClob value, Class<X> type, WrapperOptions options)
JavaTypeDescriptor
JavaTypeDescriptor<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> NClob wrap(X value, WrapperOptions options)
JavaTypeDescriptor
ResultSet
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 |