|
Berkeley DB version 4.3.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sleepycat.bind.tuple.TupleTupleBinding
An abstract EntityBinding that treats an entity's key entry and
data entry as tuples.
This class takes care of converting the entries to/from TupleInput and TupleOutput objects. Its three abstract methods
must be implemented by a concrete subclass to convert between tuples and
entity objects.
entryToObject(TupleInput,TupleInput) objectToKey(Object,TupleOutput) objectToData(Object,TupleOutput)
| Constructor Summary | |
TupleTupleBinding()
Creates a tuple-tuple entity binding. |
|
| Method Summary | |
Object |
entryToObject(DatabaseEntry key,
DatabaseEntry data)
Converts key and data entry buffers into an entity Object. |
abstract Object |
entryToObject(TupleInput keyInput,
TupleInput dataInput)
Constructs an entity object from TupleInput key and data
entries. |
void |
objectToData(Object object,
DatabaseEntry data)
Extracts the data entry from an entity Object. |
abstract void |
objectToData(Object object,
TupleOutput output)
Extracts a key tuple from an entity object. |
void |
objectToKey(Object object,
DatabaseEntry key)
Extracts the key entry from an entity Object. |
abstract void |
objectToKey(Object object,
TupleOutput output)
Extracts a key tuple from an entity object. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TupleTupleBinding()
| Method Detail |
public Object entryToObject(DatabaseEntry key,
DatabaseEntry data)
EntityBinding
entryToObject in interface EntityBindingkey - is the source key entry.data - is the source data entry.
public void objectToKey(Object object,
DatabaseEntry key)
EntityBinding
objectToKey in interface EntityBindingobject - is the source Object.key - is the destination entry buffer.
public void objectToData(Object object,
DatabaseEntry data)
EntityBinding
objectToData in interface EntityBindingobject - is the source Object.data - is the destination entry buffer.
public abstract Object entryToObject(TupleInput keyInput,
TupleInput dataInput)
TupleInput key and data
entries.
keyInput - is the TupleInput key entry object.dataInput - is the TupleInput data entry object.
public abstract void objectToKey(Object object,
TupleOutput output)
object - is the entity object.output - is the TupleOutput to which the key should be
written.
public abstract void objectToData(Object object,
TupleOutput output)
object - is the entity object.output - is the TupleOutput to which the data should be
written.
|
Berkeley DB version 4.3.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||