com.sleepycat.bind.tuple

Class TupleTupleMarshalledKeyCreator

public class TupleTupleMarshalledKeyCreator extends TupleTupleKeyCreator

A concrete key creator that works in conjunction with a TupleTupleMarshalledBinding. This key creator works by calling the methods of the MarshalledTupleKeyEntity interface to create and clear the index key.

Note that a marshalled tuple key creator is somewhat less efficient than a non-marshalled key tuple creator because more conversions are needed. A marshalled key creator must convert the entry to an object in order to create the key, while an unmarshalled key creator does not.

Constructor Summary
TupleTupleMarshalledKeyCreator(TupleTupleMarshalledBinding binding, String keyName)
Creates a tuple-tuple marshalled key creator.
Method Summary
booleancreateSecondaryKey(TupleInput primaryKeyInput, TupleInput dataInput, TupleOutput indexKeyOutput)
booleannullifyForeignKey(TupleInput dataInput, TupleOutput dataOutput)

Constructor Detail

TupleTupleMarshalledKeyCreator

public TupleTupleMarshalledKeyCreator(TupleTupleMarshalledBinding binding, String keyName)
Creates a tuple-tuple marshalled key creator.

Parameters: binding is the binding used for the tuple-tuple entity. keyName is the key name passed to the MarshalledTupleKeyEntity method to identify the index key.

Method Detail

createSecondaryKey

public boolean createSecondaryKey(TupleInput primaryKeyInput, TupleInput dataInput, TupleOutput indexKeyOutput)

nullifyForeignKey

public boolean nullifyForeignKey(TupleInput dataInput, TupleOutput dataOutput)