| com.sleepycat.persist.impl.EntityOutput
All known Subclasses: com.sleepycat.persist.impl.RecordOutput,
EntityOutput | public interface EntityOutput (Code) | | Used for writing object fields.
Unlike TupleOutput, Strings should be passed to
EntityOutput.writeObject when
using this class.
Note that currently there is only one implementation of EntityOutput:
RecordOutput. There is no RawObjectOutput implemention because we currently
have no need to convert from persistent objects to RawObject instances.
The EntityOutput interface is only for symmetry with EntityInput and in case
we need RawObjectOutput in the future.
author: Mark Hayes |
registerPriKeyObject | void registerPriKeyObject(Object o)(Code) | | Called via Accessor.writeSecKeyFields for a primary key field with a
reference type. This method must be called before writing any other
fields.
|
writeArrayLength | void writeArrayLength(int length)(Code) | | Called by ObjectArrayFormat and PrimitiveArrayFormat to write the array
length.
|
writeEnumConstant | void writeEnumConstant(String[] names, int index)(Code) | | Called by EnumFormat to write the given index of the enum constant.
|
writeKeyObject | void writeKeyObject(Object o, Format fieldFormat)(Code) | | Called for a primary key field or composite key field with a reference
type.
|
writeObject | void writeObject(Object o, Format fieldFormat)(Code) | | Called via Accessor to write all fields with reference types, except for
the primary key field and composite key fields (see writeKeyObject
below).
|
|
|