class RecordOutput extends TupleOutput implements EntityOutput
DEFAULT_BUMP_SIZE, DEFAULT_INIT_SIZE
Constructor and Description |
---|
RecordOutput(Catalog catalog,
boolean rawAccess)
Creates a new output with an empty/null visited map.
|
Modifier and Type | Method and Description |
---|---|
void |
registerEntity(java.lang.Object entity)
Registers the top level entity before writing it, to allow nested fields
to reference their parent entity.
|
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.
|
void |
writeEnumConstant(java.lang.String[] names,
int index)
Called by EnumFormat to write the given index of the enum constant.
|
void |
writeKeyObject(java.lang.Object o,
Format fieldFormat)
Called for a primary key field or composite key field with a reference
type.
|
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).
|
getBigDecimalMaxByteLength, getBigIntegerByteLength, getSortedBigDecimalMaxByteLength, writeBigDecimal, writeBigInteger, writeBoolean, writeByte, writeBytes, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeFloat, writeInt, writeLong, writePackedInt, writePackedLong, writeShort, writeSortedBigDecimal, writeSortedDouble, writeSortedFloat, writeSortedPackedInt, writeSortedPackedLong, writeString, writeString, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort
addSize, getBufferBytes, getBufferLength, getBufferOffset, makeSpace, reset, size, toByteArray, toString, toString, write, write, write, writeFast, writeFast, writeFast, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
writeBigInteger, writeBoolean, writeByte, writeChar, writeInt, writeLong, writeShort, writeSortedBigDecimal, writeSortedDouble, writeSortedFloat, writeString
RecordOutput(Catalog catalog, boolean rawAccess)
public void writeObject(java.lang.Object o, Format fieldFormat) throws RefreshException
EntityOutput
writeObject
in interface EntityOutput
RefreshException
EntityOutput.writeObject(java.lang.Object, com.sleepycat.persist.impl.Format)
public void writeKeyObject(java.lang.Object o, Format fieldFormat) throws RefreshException
EntityOutput
writeKeyObject
in interface EntityOutput
RefreshException
EntityOutput.writeKeyObject(java.lang.Object, com.sleepycat.persist.impl.Format)
public void registerPriKeyObject(java.lang.Object o)
EntityOutput
registerPriKeyObject
in interface EntityOutput
EntityOutput.registerPriKeyObject(java.lang.Object)
public void registerEntity(java.lang.Object entity)
public void writeArrayLength(int length)
EntityOutput
writeArrayLength
in interface EntityOutput
EntityOutput.writeArrayLength(int)
public void writeEnumConstant(java.lang.String[] names, int index)
EntityOutput
writeEnumConstant
in interface EntityOutput
EntityOutput.writeEnumConstant(java.lang.String[], int)
Copyright (c) 2004-2012 Oracle. All rights reserved.