| 
 | Berkeley DB version 4.2.52 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A marshalling interface implemented by entity classes that have tuple data keys. Since MarshalledTupleKeyEntity objects are instantiated by Java serialization, no particular contructor is required.
Note that a marshalled tuple key extractor is somewhat less efficient than a non-marshalled key tuple extractor because more conversions are needed. A marshalled key extractor must convert the data to an object in order to extract the key data, while an unmarshalled key extractor does not.
TupleTupleMarshalledBinding, 
TupleTupleMarshalledKeyExtractor, 
TupleSerialMarshalledBinding, 
TupleSerialMarshalledKeyExtractor| Method Summary | |
|  void | clearIndexKey(String keyName)Clears the entity's index key value for the given key name. | 
|  void | marshalIndexKey(String keyName,
                TupleOutput keyOutput)Extracts the entity's index key and writes it to the key output. | 
|  void | marshalPrimaryKey(TupleOutput keyOutput)Extracts the entity's primary key and writes it to the key output. | 
|  void | unmarshalPrimaryKey(TupleInput keyInput)Completes construction of the entity by setting its primary key from the stored primary key. | 
| Method Detail | 
public void marshalPrimaryKey(TupleOutput keyOutput)
                       throws IOException
keyOutput - is the output tuple.
IOException
public void unmarshalPrimaryKey(TupleInput keyInput)
                         throws IOException
keyInput - is the input tuple.
IOException
public void marshalIndexKey(String keyName,
                            TupleOutput keyOutput)
                     throws IOException
keyName - identifies the index key.keyOutput - is the output tuple.
IOException
public void clearIndexKey(String keyName)
                   throws IOException
keyName - identifies the index key.
IOException| 
 | Berkeley DB version 4.2.52 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||