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, writeUnsignedShortaddSize, getBufferBytes, getBufferLength, getBufferOffset, makeSpace, reset, size, toByteArray, toString, toString, write, write, write, writeFast, writeFast, writeFast, writeToclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwriteBigInteger, writeBoolean, writeByte, writeChar, writeInt, writeLong, writeShort, writeSortedBigDecimal, writeSortedDouble, writeSortedFloat, writeStringRecordOutput(Catalog catalog, boolean rawAccess)
public void writeObject(java.lang.Object o,
Format fieldFormat)
throws RefreshException
EntityOutputwriteObject in interface EntityOutputRefreshExceptionEntityOutput.writeObject(java.lang.Object, com.sleepycat.persist.impl.Format)public void writeKeyObject(java.lang.Object o,
Format fieldFormat)
throws RefreshException
EntityOutputwriteKeyObject in interface EntityOutputRefreshExceptionEntityOutput.writeKeyObject(java.lang.Object, com.sleepycat.persist.impl.Format)public void registerPriKeyObject(java.lang.Object o)
EntityOutputregisterPriKeyObject in interface EntityOutputEntityOutput.registerPriKeyObject(java.lang.Object)public void registerEntity(java.lang.Object entity)
public void writeArrayLength(int length)
EntityOutputwriteArrayLength in interface EntityOutputEntityOutput.writeArrayLength(int)public void writeEnumConstant(java.lang.String[] names,
int index)
EntityOutputwriteEnumConstant in interface EntityOutputEntityOutput.writeEnumConstant(java.lang.String[], int)Copyright (c) 2004-2012 Oracle. All rights reserved.