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

com::sleepycat::bind::serial::SerialSerialBinding Class Reference

Inheritance diagram for com::sleepycat::bind::serial::SerialSerialBinding:

com::sleepycat::bind::EntityBinding

Public Member Functions

 SerialSerialBinding (ClassCatalog classCatalog, Class keyClass, Class dataClass)
 SerialSerialBinding (SerialBinding keyBinding, SerialBinding dataBinding)
Object entryToObject (DatabaseEntry key, DatabaseEntry data)
void objectToKey (Object object, DatabaseEntry key)
void objectToData (Object object, DatabaseEntry data)
abstract Object entryToObject (Object keyInput, Object dataInput)
abstract Object objectToKey (Object object)
abstract Object objectToData (Object object)

Detailed Description

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

This class takes care of serializing and deserializing the key and data entry automatically. Its three abstract methods must be implemented by a concrete subclass to convert the deserialized objects to/from an entity object.

Author:
Mark Hayes

Definition at line 31 of file SerialSerialBinding.java.


Constructor & Destructor Documentation

com::sleepycat::bind::serial::SerialSerialBinding::SerialSerialBinding ClassCatalog  classCatalog,
Class  keyClass,
Class  dataClass
[inline]
 

Creates a serial-serial entity binding.

Parameters:
classCatalog is the catalog to hold shared class information and for a database should be a StoredClassCatalog.
keyClass is the key base class.
dataClass is the data base class.

Definition at line 46 of file SerialSerialBinding.java.

com::sleepycat::bind::serial::SerialSerialBinding::SerialSerialBinding SerialBinding  keyBinding,
SerialBinding  dataBinding
[inline]
 

Creates a serial-serial entity binding.

Parameters:
keyBinding is the key binding.
dataBinding is the data binding.

Definition at line 61 of file SerialSerialBinding.java.


Member Function Documentation

abstract Object com::sleepycat::bind::serial::SerialSerialBinding::entryToObject Object  keyInput,
Object  dataInput
[pure virtual]
 

Constructs an entity object from deserialized key and data objects.

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

Object com::sleepycat::bind::serial::SerialSerialBinding::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 69 of file SerialSerialBinding.java.

References com::sleepycat::bind::serial::SerialBinding::entryToObject().

abstract Object com::sleepycat::bind::serial::SerialSerialBinding::objectToData Object  object  )  [pure virtual]
 

Extracts a data object from an entity object.

Parameters:
object is the entity object.
Returns:
the deserialized data object.

void com::sleepycat::bind::serial::SerialSerialBinding::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 83 of file SerialSerialBinding.java.

References com::sleepycat::bind::serial::SerialBinding::objectToEntry().

abstract Object com::sleepycat::bind::serial::SerialSerialBinding::objectToKey Object  object  )  [pure virtual]
 

Extracts a key object from an entity object.

Parameters:
object is the entity object.
Returns:
the deserialized key object.

void com::sleepycat::bind::serial::SerialSerialBinding::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 76 of file SerialSerialBinding.java.

References com::sleepycat::bind::serial::SerialBinding::objectToEntry().


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