Inheritance diagram for com::sleepycat::bind::tuple::IntegerBinding:
Public Member Functions | |
Object | entryToObject (TupleInput input) |
void | objectToEntry (Object object, TupleOutput output) |
Static Public Member Functions | |
static int | entryToInt (DatabaseEntry entry) |
static void | intToEntry (int val, DatabaseEntry entry) |
Protected Member Functions | |
TupleOutput | getTupleOutput (Object object) |
TupleBinding
for a Integer
primitive wrapper or an int
primitive.There are two ways to use this class:
Definition at line 29 of file IntegerBinding.java.
|
Converts an entry buffer into a simple
Definition at line 58 of file IntegerBinding.java. References com::sleepycat::bind::tuple::TupleBase::entryToInput(). |
|
Constructs a key or data object from a TupleInput entry.
Implements com::sleepycat::bind::tuple::TupleBinding. Definition at line 34 of file IntegerBinding.java. References com::sleepycat::bind::tuple::TupleInput::readInt(). |
|
Returns an empty TupleOutput instance that will be used by the tuple binding or key creator. The default implementation of this method creates a new TupleOutput with an initial buffer size that can be changed using the setTupleBufferSize method. This method may be overridden to return a TupleOutput instance. For example, an instance per thread could be created and returned by this method. If a TupleOutput instance is reused, be sure to call its com.sleepycat.util.FastOutputStream#reset method before each use.
Reimplemented from com::sleepycat::bind::tuple::TupleBase. Definition at line 46 of file IntegerBinding.java. |
|
Converts a simple
Definition at line 70 of file IntegerBinding.java. References com::sleepycat::bind::tuple::TupleBase::outputToEntry(). |
|
Converts a key or data object to a tuple entry.
Implements com::sleepycat::bind::tuple::TupleBinding. Definition at line 40 of file IntegerBinding.java. References com::sleepycat::bind::tuple::TupleOutput::writeInt(). |