Class BinaryOrderableWrapper
java.lang.Object
org.apache.derby.impl.store.access.conglomerate.BinaryOrderableWrapper
- All Implemented Interfaces:
Externalizable, Serializable, Formatable, Storable, TypedFormat
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) BinaryOrderable(package private) BinaryOrderable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintShort one line description of routine.intGet a universally unique identifier for the type of this object.protected voidinit(BinaryOrderable ref_object, BinaryOrderable other_object) Short one line description of routine.booleanisNull()Return whether the value is null or not.voidRestore the in-memory representation from the stream.voidvoidRestore the in-memory representation to the null value.voidStore the stored representation of the column value in the stream.
-
Field Details
-
ref_object
BinaryOrderable ref_object -
other_object
BinaryOrderable other_object -
cmp_result
int cmp_result
-
-
Constructor Details
-
BinaryOrderableWrapper
BinaryOrderableWrapper()
-
-
Method Details
-
init
Short one line description of routine.Longer descrption of routine.
- Parameters:
ref_object- The object that this object is wrapping (ie. being read from disk)other_object- The object to compare ref_object to.
-
getCmpResult
public int getCmpResult()Short one line description of routine.Longer descrption of routine.
- Returns:
- The identifier to be used to open the conglomerate later.
-
getTypeFormatId
public int getTypeFormatId()Description copied from interface:TypedFormatGet a universally unique identifier for the type of this object.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- The identifier. (A UUID stuffed in an array of 16 bytes).
-
isNull
-
restoreToNull
public void restoreToNull()Restore the in-memory representation to the null value. The containerid being zero is what determines nullness; subclasses are not expected to override this method.- Specified by:
restoreToNullin interfaceStorable- See Also:
-
readExternal
Restore the in-memory representation from the stream.- Specified by:
readExternalin interfaceExternalizable- Throws:
ClassNotFoundException- Thrown if the stored representation is serialized and a class named in the stream could not be found.IOException- thrown by readObject()- See Also:
-
readExternalFromArray
- Throws:
IOExceptionClassNotFoundException
-
writeExternal
Store the stored representation of the column value in the stream.A BinaryOrderableWrapper is never used to store data out, only to read data from disk and compare it to another byte stream.
- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out- Stream to write the object to.- Throws:
IOException- thrown by writeObject()
-