|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MarshalledTupleData
A marshalling interface implemented by key, value or entity classes that
have tuple data. Key classes implement this interface to marshal their key
data. Value or entity classes implement this interface to marshal their
value data. Implementations of this interface must have a public no
arguments contructor so that they can be instantiated by a binding,
prior to calling the unmarshalData(com.sleepycat.bdb.bind.tuple.TupleInput)
method.
Note that implementing this interface is not necessary when the data is a
Java simple type, for example: String, Integer, etc. These types can be
used with built-in bindings returned by TupleBinding.getPrimitiveBinding(java.lang.Class, com.sleepycat.bdb.bind.tuple.TupleFormat)
.
TupleTupleMarshalledBinding
,
TupleTupleMarshalledKeyExtractor
Method Summary | |
---|---|
void |
marshalData(TupleOutput dataOutput)
Construct the key or value tuple data from the key or value object. |
void |
unmarshalData(TupleInput dataInput)
Construct the key or value object from the key or value tuple data. |
Method Detail |
---|
void marshalData(TupleOutput dataOutput) throws java.io.IOException
dataOutput
- is the output tuple.
java.io.IOException
void unmarshalData(TupleInput dataInput) throws java.io.IOException
dataInput
- is the input tuple.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |