com.sleepycat.persist.impl
Interface EntityInput


public interface EntityInput

Used for reading object fields.

Unlike TupleInput, Strings are returned by readObject() when using this class.


Method Summary
 com.sleepycat.persist.impl.Catalog getCatalog()
          Returns the Catalog associated with this input.
 boolean isRawAccess()
          Return whether this input is in raw mode, i.e., whether it is returning raw instances.
 int readArrayLength()
          Called by ObjectArrayFormat and PrimitiveArrayFormat to read the array length.
 java.math.BigInteger readBigInteger()
           
 boolean readBoolean()
           
 byte readByte()
           
 char readChar()
           
 int readEnumConstant(java.lang.String[] names)
          Called by EnumFormat to read and return index of the enum constant.
 int readInt()
           
 java.lang.Object readKeyObject(Format format)
          Called for a primary key field or a composite key field with a reference type.
 long readLong()
           
 java.lang.Object readObject()
          Called via Accessor to read all fields with reference types, except for the primary key field and composite key fields (see readKeyObject below).
 short readShort()
           
 double readSortedDouble()
           
 float readSortedFloat()
           
 java.lang.String readString()
           
 void registerPriKeyObject(java.lang.Object o)
          Called via Accessor.readSecKeyFields for a primary key field with a reference type.
 boolean setRawAccess(boolean rawAccessParam)
          Changes raw mode and returns the original mode, which is normally restored later.
 void skipField(Format declaredFormat)
          Called via PersistKeyCreator to skip fields prior to the secondary key field.
 

Method Detail

getCatalog

com.sleepycat.persist.impl.Catalog getCatalog()
Returns the Catalog associated with this input.


isRawAccess

boolean isRawAccess()
Return whether this input is in raw mode, i.e., whether it is returning raw instances.


setRawAccess

boolean setRawAccess(boolean rawAccessParam)
Changes raw mode and returns the original mode, which is normally restored later. For temporarily changing the mode during a conversion.


readObject

java.lang.Object readObject()
Called via Accessor to read all fields with reference types, except for the primary key field and composite key fields (see readKeyObject below).


readKeyObject

java.lang.Object readKeyObject(Format format)
Called for a primary key field or a composite key field with a reference type.

For such key fields, no formatId is present nor can the object already be present in the visited object set.


registerPriKeyObject

void registerPriKeyObject(java.lang.Object o)
Called via Accessor.readSecKeyFields for a primary key field with a reference type. This method must be called before reading any other fields.


readArrayLength

int readArrayLength()
Called by ObjectArrayFormat and PrimitiveArrayFormat to read the array length.


readEnumConstant

int readEnumConstant(java.lang.String[] names)
Called by EnumFormat to read and return index of the enum constant.


skipField

void skipField(Format declaredFormat)
Called via PersistKeyCreator to skip fields prior to the secondary key field. Also called during class evolution so skip deleted fields.


readString

java.lang.String readString()

readChar

char readChar()

readBoolean

boolean readBoolean()

readByte

byte readByte()

readShort

short readShort()

readInt

int readInt()

readLong

long readLong()

readSortedFloat

float readSortedFloat()

readSortedDouble

double readSortedDouble()

readBigInteger

java.math.BigInteger readBigInteger()