public interface EntityInput
Unlike TupleInput, Strings are returned by readObject() when using
this class.
| Modifier and Type | Method and Description |
|---|---|
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.
|
BigInteger |
readBigInteger() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
int |
readEnumConstant(String[] names)
Called by EnumFormat to read and return index of the enum constant.
|
int |
readInt() |
Object |
readKeyObject(Format format)
Called for a primary key field or a composite key field with a reference
type.
|
long |
readLong() |
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() |
BigDecimal |
readSortedBigDecimal() |
double |
readSortedDouble() |
float |
readSortedFloat() |
String |
readString() |
Object |
readStringObject()
Called for a String field, that is not a primary key field or a
composite key field with a reference type.
|
void |
registerPriKeyObject(Object o)
Called via Accessor.readSecKeyFields for a primary key field with a
reference type.
|
void |
registerPriStringKeyObject(Object o)
Called via Accessor.readSecKeyFields for a primary String key field.
|
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.
|
com.sleepycat.persist.impl.Catalog getCatalog()
boolean isRawAccess()
boolean setRawAccess(boolean rawAccessParam)
Object readObject() throws RefreshException
RefreshExceptionObject readKeyObject(Format format) throws RefreshException
For such key fields, no formatId is present nor can the object already be present in the visited object set.
RefreshExceptionObject readStringObject() throws RefreshException
For the new String format, no formatId is present nor can the object already be present in the visited object set. For the old String format, this method simply calls readObject for compatibility.
RefreshExceptionvoid registerPriKeyObject(Object o)
void registerPriStringKeyObject(Object o)
int readArrayLength()
int readEnumConstant(String[] names)
void skipField(Format declaredFormat) throws RefreshException
RefreshExceptionString readString() throws RefreshException
RefreshExceptionchar readChar()
throws RefreshException
RefreshExceptionboolean readBoolean()
throws RefreshException
RefreshExceptionbyte readByte()
throws RefreshException
RefreshExceptionshort readShort()
throws RefreshException
RefreshExceptionint readInt()
throws RefreshException
RefreshExceptionlong readLong()
throws RefreshException
RefreshExceptionfloat readSortedFloat()
throws RefreshException
RefreshExceptiondouble readSortedDouble()
throws RefreshException
RefreshExceptionBigInteger readBigInteger() throws RefreshException
RefreshExceptionBigDecimal readSortedBigDecimal() throws RefreshException
RefreshExceptionCopyright © 2024. All rights reserved.