Class TupleMarshalledBinding<E extends MarshalledTupleEntry>

java.lang.Object
com.sleepycat.bind.tuple.TupleBase<E>
com.sleepycat.bind.tuple.TupleBinding<E>
com.sleepycat.bind.tuple.TupleMarshalledBinding<E>
All Implemented Interfaces:
EntryBinding<E>

public class TupleMarshalledBinding<E extends MarshalledTupleEntry> extends TupleBinding<E>
A concrete TupleBinding that delegates to the MarshalledTupleEntry interface of the data or key object.

This class works by calling the methods of the MarshalledTupleEntry interface, which must be implemented by the key or data class, to convert between the key or data entry and the object.

  • Constructor Details

    • TupleMarshalledBinding

      public TupleMarshalledBinding(Class<E> cls)
      Creates a tuple marshalled binding object.

      The given class is used to instantiate key or data objects using Class.newInstance(), and therefore must be a public class and have a public no-arguments constructor. It must also implement the MarshalledTupleEntry interface.

      Parameters:
      cls - is the class of the key or data objects.
  • Method Details