|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.access.conglomerate.BinaryOrderableWrapper
The BinaryOrderableWrapper is a wrapper class which intercepts the readExternal() callback made by raw store during a fetch, and does a comparison instead.
Field Summary | |
(package private) int |
cmp_result
|
(package private) BinaryOrderable |
other_object
|
(package private) BinaryOrderable |
ref_object
|
Constructor Summary | |
(package private) |
BinaryOrderableWrapper()
|
Method Summary | |
int |
getCmpResult()
Short one line description of routine. |
int |
getTypeFormatId()
Get a universally unique identifier for the type of this object. |
protected void |
init(BinaryOrderable ref_object,
BinaryOrderable other_object)
Short one line description of routine. |
boolean |
isNull()
Return whether the value is null or not. |
void |
readExternal(java.io.ObjectInput in)
Restore the in-memory representation from the stream. |
void |
readExternalFromArray(ArrayInputStream in)
|
void |
restoreToNull()
Restore the in-memory representation to the null value. |
void |
writeExternal(java.io.ObjectOutput out)
Store the stored representation of the column value in the stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
BinaryOrderable ref_object
BinaryOrderable other_object
int cmp_result
Constructor Detail |
BinaryOrderableWrapper()
Method Detail |
protected void init(BinaryOrderable ref_object, BinaryOrderable other_object)
Longer descrption of routine.
ref_object
- The object that this object is wrapping (ie. being
read from disk)other_object
- The object to compare ref_object to.
public int getCmpResult()
Longer descrption of routine.
public int getTypeFormatId()
TypedFormat
getTypeFormatId
in interface TypedFormat
public boolean isNull()
isNull
in interface Storable
Storable.isNull()
public void restoreToNull()
restoreToNull
in interface Storable
Storable.restoreToNull()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.lang.ClassNotFoundException
- Thrown if the stored representation is
serialized and a class named in the stream could not be found.
java.io.IOException
- thrown by readObject()Externalizable.readExternal(java.io.ObjectInput)
public void readExternalFromArray(ArrayInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
A BinaryOrderableWrapper is never used to store data out, only to read data from disk and compare it to another byte stream.
writeExternal
in interface java.io.Externalizable
out
- Stream to write the object to.
java.io.IOException
- thrown by writeObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |