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

com::sleepycat::bind::tuple::TupleMarshalledBinding Class Reference

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

com::sleepycat::bind::tuple::TupleBinding com::sleepycat::bind::tuple::TupleBase com::sleepycat::bind::EntryBinding

Public Member Functions

 TupleMarshalledBinding (Class cls)
Object entryToObject (TupleInput input)
void objectToEntry (Object object, TupleOutput output)

Detailed Description

A concrete TupleBinding that delegates to the MarshalledTupleEntry interface of the data or key object.

This class works by calling the methods of the MarshalledTupleEntry interface, which must be implemented by the key or data class, to convert between the key or data entry and the object.

Author:
Mark Hayes

Definition at line 24 of file TupleMarshalledBinding.java.


Constructor & Destructor Documentation

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

Creates a tuple marshalled binding object.

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

Parameters:
cls is the class of the key or data objects.

Definition at line 38 of file TupleMarshalledBinding.java.


Member Function Documentation

Object com::sleepycat::bind::tuple::TupleMarshalledBinding::entryToObject TupleInput  input  )  [inline, virtual]
 

Constructs a key or data object from a TupleInput entry.

Parameters:
input is the tuple key or data entry.
Returns:
the key or data object constructed from the entry.

Implements com::sleepycat::bind::tuple::TupleBinding.

Definition at line 50 of file TupleMarshalledBinding.java.

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

void com::sleepycat::bind::tuple::TupleMarshalledBinding::objectToEntry Object  object,
TupleOutput  output
[inline, virtual]
 

Converts a key or data object to a tuple entry.

Parameters:
object is the key or data object.
output is the tuple entry to which the key or data should be written.

Implements com::sleepycat::bind::tuple::TupleBinding.

Definition at line 65 of file TupleMarshalledBinding.java.

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


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