Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

com::sleepycat::bind::tuple::TupleTupleBinding Class Reference

Inheritance diagram for com::sleepycat::bind::tuple::TupleTupleBinding:

com::sleepycat::bind::tuple::TupleBase com::sleepycat::bind::EntityBinding com::sleepycat::bind::tuple::TupleTupleMarshalledBinding

Public Member Functions

 TupleTupleBinding ()
Object entryToObject (DatabaseEntry key, DatabaseEntry data)
void objectToKey (Object object, DatabaseEntry key)
void objectToData (Object object, DatabaseEntry data)
abstract Object entryToObject (TupleInput keyInput, TupleInput dataInput)
abstract void objectToKey (Object object, TupleOutput output)
abstract void objectToData (Object object, TupleOutput output)

Detailed Description

An abstract EntityBinding that treats an entity's key entry and data entry as tuples.

This class takes care of converting the entries to/from TupleInput and TupleOutput objects. Its three abstract methods must be implemented by a concrete subclass to convert between tuples and entity objects.

Author:
Mark Hayes

Definition at line 31 of file TupleTupleBinding.java.


Constructor & Destructor Documentation

com::sleepycat::bind::tuple::TupleTupleBinding::TupleTupleBinding  )  [inline]
 

Creates a tuple-tuple entity binding.

Definition at line 37 of file TupleTupleBinding.java.


Member Function Documentation

abstract Object com::sleepycat::bind::tuple::TupleTupleBinding::entryToObject TupleInput  keyInput,
TupleInput  dataInput
[pure virtual]
 

Constructs an entity object from TupleInput key and data entries.

Parameters:
keyInput is the TupleInput key entry object.
dataInput is the TupleInput data entry object.
Returns:
the entity object constructed from the key and data.

Implemented in com::sleepycat::bind::tuple::TupleTupleMarshalledBinding.

Object com::sleepycat::bind::tuple::TupleTupleBinding::entryToObject DatabaseEntry  key,
DatabaseEntry  data
[inline]
 

Converts key and data entry buffers into an entity Object.

Parameters:
key is the source key entry.
data is the source data entry.
Returns:
the resulting Object.

Implements com::sleepycat::bind::EntityBinding.

Definition at line 41 of file TupleTupleBinding.java.

abstract void com::sleepycat::bind::tuple::TupleTupleBinding::objectToData Object  object,
TupleOutput  output
[pure virtual]
 

Extracts a key tuple from an entity object.

Parameters:
object is the entity object.
output is the TupleOutput to which the data should be written.

Implemented in com::sleepycat::bind::tuple::TupleTupleMarshalledBinding.

void com::sleepycat::bind::tuple::TupleTupleBinding::objectToData Object  object,
DatabaseEntry  data
[inline]
 

Extracts the data entry from an entity Object.

Parameters:
object is the source Object.
data is the destination entry buffer.

Implements com::sleepycat::bind::EntityBinding.

Definition at line 56 of file TupleTupleBinding.java.

References com::sleepycat::bind::tuple::TupleBase::getTupleOutput(), and com::sleepycat::bind::tuple::TupleBase::outputToEntry().

abstract void com::sleepycat::bind::tuple::TupleTupleBinding::objectToKey Object  object,
TupleOutput  output
[pure virtual]
 

Extracts a key tuple from an entity object.

Parameters:
object is the entity object.
output is the TupleOutput to which the key should be written.

Implemented in com::sleepycat::bind::tuple::TupleTupleMarshalledBinding.

void com::sleepycat::bind::tuple::TupleTupleBinding::objectToKey Object  object,
DatabaseEntry  key
[inline]
 

Extracts the key entry from an entity Object.

Parameters:
object is the source Object.
key is the destination entry buffer.

Implements com::sleepycat::bind::EntityBinding.

Definition at line 48 of file TupleTupleBinding.java.

References com::sleepycat::bind::tuple::TupleBase::getTupleOutput(), and com::sleepycat::bind::tuple::TupleBase::outputToEntry().


The documentation for this class was generated from the following file:
Generated on Sun Dec 25 12:15:00 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2