| java.lang.Object com.sleepycat.bind.tuple.TupleBase com.sleepycat.bind.serial.TupleSerialBinding
All known Subclasses: com.sleepycat.bind.serial.TupleSerialMarshalledBinding,
TupleSerialBinding | abstract public class TupleSerialBinding extends TupleBase implements EntityBinding(Code) | | An abstract EntityBinding that treats an entity's key entry as
a tuple and its data entry as a serialized object.
This class takes care of serializing and deserializing the data entry,
and converting the key entry to/from
TupleInput and
TupleOutput objects. Its three abstract methods must be implemented by a
concrete subclass to convert these objects to/from an entity object.
author: Mark Hayes |
TupleSerialBinding | public TupleSerialBinding(ClassCatalog classCatalog, Class baseClass)(Code) | | Creates a tuple-serial entity binding.
Parameters: classCatalog - is the catalog to hold shared class information andfor a database should be a StoredClassCatalog. Parameters: baseClass - is the base class. |
TupleSerialBinding | public TupleSerialBinding(SerialBinding dataBinding)(Code) | | Creates a tuple-serial entity binding.
Parameters: dataBinding - is the data binding. |
entryToObject | abstract public Object entryToObject(TupleInput keyInput, Object dataInput)(Code) | | Constructs an entity object from
TupleInput key entry and
deserialized data entry objects.
Parameters: keyInput - is the TupleInput key entry object. Parameters: dataInput - is the deserialized data entry object. the entity object constructed from the key and data. |
objectToData | abstract public Object objectToData(Object object)(Code) | | Extracts a data object from an entity object.
Parameters: object - is the entity object. the deserialized data object. |
objectToKey | abstract public void objectToKey(Object object, TupleOutput keyOutput)(Code) | | Extracts a key tuple from an entity object.
Parameters: object - is the entity object. Parameters: keyOutput - is the TupleOutput to which the key should bewritten. |
|
|