Inheritance diagram for com::sleepycat::bind::tuple::TupleBinding:
Public Member Functions | |
TupleBinding () | |
Object | entryToObject (DatabaseEntry entry) |
void | objectToEntry (Object object, DatabaseEntry entry) |
abstract Object | entryToObject (TupleInput input) |
abstract void | objectToEntry (Object object, TupleOutput output) |
Static Public Member Functions | |
static TupleBinding | getPrimitiveBinding (Class cls) |
EntryBinding
that treats a key or data entry as a tuple; it includes predefined bindings for Java primitive types.This class takes care of converting the entries to/from TupleInput and TupleOutput objects. Its two abstract methods must be implemented by a concrete subclass to convert between tuples and key or data objects.
For key or data entries which are Java primitive classes (String, Integer, etc) getPrimitiveBinding may be used to return a builtin tuple binding. A custom tuple binding for these types is not needed.
Definition at line 37 of file TupleBinding.java.
|
Creates a tuple binding. Definition at line 61 of file TupleBinding.java. |
|
Constructs a key or data object from a TupleInput entry.
Implemented in com::sleepycat::bind::tuple::BooleanBinding, com::sleepycat::bind::tuple::ByteBinding, com::sleepycat::bind::tuple::CharacterBinding, com::sleepycat::bind::tuple::DoubleBinding, com::sleepycat::bind::tuple::FloatBinding, com::sleepycat::bind::tuple::IntegerBinding, com::sleepycat::bind::tuple::LongBinding, com::sleepycat::bind::tuple::ShortBinding, com::sleepycat::bind::tuple::StringBinding, and com::sleepycat::bind::tuple::TupleMarshalledBinding. |
|
Converts a entry buffer into an Object.
Implements com::sleepycat::bind::EntryBinding. Definition at line 65 of file TupleBinding.java. References com::sleepycat::bind::tuple::TupleBase::entryToInput(). |
|
Creates a tuple binding for a primitive Java class. The following Java classes are supported.
Definition at line 117 of file TupleBinding.java. |
|
Converts a key or data object to a tuple entry.
Implemented in com::sleepycat::bind::tuple::BooleanBinding, com::sleepycat::bind::tuple::ByteBinding, com::sleepycat::bind::tuple::CharacterBinding, com::sleepycat::bind::tuple::DoubleBinding, com::sleepycat::bind::tuple::FloatBinding, com::sleepycat::bind::tuple::IntegerBinding, com::sleepycat::bind::tuple::LongBinding, com::sleepycat::bind::tuple::ShortBinding, com::sleepycat::bind::tuple::StringBinding, and com::sleepycat::bind::tuple::TupleMarshalledBinding. |
|
Converts an Object into a entry buffer.
Implements com::sleepycat::bind::EntryBinding. Definition at line 71 of file TupleBinding.java. References com::sleepycat::bind::tuple::TupleBase::getTupleOutput(), and com::sleepycat::bind::tuple::TupleBase::outputToEntry(). |