com.sleepycat.bind.tuple
public class TupleTupleMarshalledBinding extends TupleTupleBinding
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.
Constructor Summary | |
---|---|
TupleTupleMarshalledBinding(Class cls)
Creates a tuple-tuple marshalled binding object.
|
Method Summary | |
---|---|
Object | entryToObject(TupleInput keyInput, TupleInput dataInput) |
void | objectToData(Object object, TupleOutput output) |
void | objectToKey(Object object, TupleOutput output) |
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.