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

com::sleepycat::bind::tuple::TupleTupleMarshalledBinding Class Reference

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

com::sleepycat::bind::tuple::TupleTupleBinding com::sleepycat::bind::tuple::TupleBase com::sleepycat::bind::EntityBinding

Public Member Functions

 TupleTupleMarshalledBinding (Class cls)
Object entryToObject (TupleInput keyInput, TupleInput dataInput)
void objectToKey (Object object, TupleOutput output)
void objectToData (Object object, TupleOutput output)

Detailed Description

A concrete TupleTupleBinding that delegates to the MarshalledTupleEntry and MarshalledTupleKeyEntity interfaces of the entity class.

This class calls the methods of the MarshalledTupleEntry interface to convert between the data entry and entity object. It calls the methods of the MarshalledTupleKeyEntity interface to convert between the key entry and the entity object. These two interfaces must both be implemented by the entity class.

Author:
Mark Hayes

Definition at line 27 of file TupleTupleMarshalledBinding.java.


Constructor & Destructor Documentation

com::sleepycat::bind::tuple::TupleTupleMarshalledBinding::TupleTupleMarshalledBinding Class  cls  )  [inline]
 

Creates a tuple-tuple marshalled binding object.

The given class is used to instantiate entity objects using Class#forName, and therefore must be a public class and have a public no-arguments constructor. It must also implement the MarshalledTupleEntry and MarshalledTupleKeyEntity interfaces.

Parameters:
cls is the class of the entity objects.

Definition at line 42 of file TupleTupleMarshalledBinding.java.


Member Function Documentation

Object com::sleepycat::bind::tuple::TupleTupleMarshalledBinding::entryToObject TupleInput  keyInput,
TupleInput  dataInput
[inline, 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.

Implements com::sleepycat::bind::tuple::TupleTupleBinding.

Definition at line 59 of file TupleTupleMarshalledBinding.java.

References com::sleepycat::bind::tuple::MarshalledTupleEntry::unmarshalEntry(), and com::sleepycat::bind::tuple::MarshalledTupleKeyEntity::unmarshalPrimaryKey().

Referenced by com::sleepycat::bind::tuple::TupleTupleMarshalledKeyCreator::createSecondaryKey(), and com::sleepycat::bind::tuple::TupleTupleMarshalledKeyCreator::nullifyForeignKey().

void com::sleepycat::bind::tuple::TupleTupleMarshalledBinding::objectToData Object  object,
TupleOutput  output
[inline, 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.

Implements com::sleepycat::bind::tuple::TupleTupleBinding.

Definition at line 89 of file TupleTupleMarshalledBinding.java.

References com::sleepycat::bind::tuple::MarshalledTupleEntry::marshalEntry().

Referenced by com::sleepycat::bind::tuple::TupleTupleMarshalledKeyCreator::nullifyForeignKey().

void com::sleepycat::bind::tuple::TupleTupleMarshalledBinding::objectToKey Object  object,
TupleOutput  output
[inline, 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.

Implements com::sleepycat::bind::tuple::TupleTupleBinding.

Definition at line 82 of file TupleTupleMarshalledBinding.java.

References com::sleepycat::bind::tuple::MarshalledTupleKeyEntity::marshalPrimaryKey().


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