|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityOutput
Used for writing object fields.
Unlike TupleOutput, Strings should be passed to writeObject(java.lang.Object, com.sleepycat.persist.impl.Format)
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.
Method Summary | |
---|---|
void |
registerPriKeyObject(java.lang.Object o)
Called via Accessor.writeSecKeyFields for a primary key field with a reference type. |
void |
writeArrayLength(int length)
Called by ObjectArrayFormat and PrimitiveArrayFormat to write the array length. |
TupleOutput |
writeBigInteger(java.math.BigInteger val)
|
TupleOutput |
writeBoolean(boolean val)
|
TupleOutput |
writeByte(int val)
|
TupleOutput |
writeChar(int val)
|
void |
writeEnumConstant(java.lang.String[] names,
int index)
Called by EnumFormat to write the given index of the enum constant. |
TupleOutput |
writeInt(int val)
|
void |
writeKeyObject(java.lang.Object o,
Format fieldFormat)
Called for a primary key field or composite key field with a reference type. |
TupleOutput |
writeLong(long val)
|
void |
writeObject(java.lang.Object o,
Format fieldFormat)
Called via Accessor to write all fields with reference types, except for the primary key field and composite key fields (see writeKeyObject below). |
TupleOutput |
writeShort(int val)
|
TupleOutput |
writeSortedDouble(double val)
|
TupleOutput |
writeSortedFloat(float val)
|
TupleOutput |
writeString(java.lang.String val)
|
Method Detail |
---|
void writeObject(java.lang.Object o, Format fieldFormat)
void writeKeyObject(java.lang.Object o, Format fieldFormat)
void registerPriKeyObject(java.lang.Object o)
void writeArrayLength(int length)
void writeEnumConstant(java.lang.String[] names, int index)
TupleOutput writeString(java.lang.String val)
TupleOutput writeChar(int val)
TupleOutput writeBoolean(boolean val)
TupleOutput writeByte(int val)
TupleOutput writeShort(int val)
TupleOutput writeInt(int val)
TupleOutput writeLong(long val)
TupleOutput writeSortedFloat(float val)
TupleOutput writeSortedDouble(double val)
TupleOutput writeBigInteger(java.math.BigInteger val)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |