com.sleepycat.bind.serial

Class TupleSerialMarshalledKeyCreator

public class TupleSerialMarshalledKeyCreator extends TupleSerialKeyCreator

A concrete key creator that works in conjunction with a TupleSerialMarshalledBinding. This key creator works by calling the methods of the MarshalledTupleKeyEntity interface to create and clear the index key fields.
Constructor Summary
TupleSerialMarshalledKeyCreator(TupleSerialMarshalledBinding binding, String keyName)
Creates a tuple-serial marshalled key creator.
Method Summary
booleancreateSecondaryKey(TupleInput primaryKeyInput, Object dataInput, TupleOutput indexKeyOutput)
ObjectnullifyForeignKey(Object dataInput)

Constructor Detail

TupleSerialMarshalledKeyCreator

public TupleSerialMarshalledKeyCreator(TupleSerialMarshalledBinding binding, String keyName)
Creates a tuple-serial marshalled key creator.

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

Method Detail

createSecondaryKey

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

nullifyForeignKey

public Object nullifyForeignKey(Object dataInput)