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.
|
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() |
java.math.BigDecimal |
readSortedBigDecimal() |
double |
readSortedDouble() |
float |
readSortedFloat() |
java.lang.String |
readString() |
java.lang.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(java.lang.Object o)
Called via Accessor.readSecKeyFields for a primary key field with a
reference type.
|
void |
registerPriStringKeyObject(java.lang.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)
java.lang.Object readObject() throws RefreshException
RefreshException
java.lang.Object 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.
RefreshException
java.lang.Object 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.
RefreshException
void registerPriKeyObject(java.lang.Object o)
void registerPriStringKeyObject(java.lang.Object o)
int readArrayLength()
int readEnumConstant(java.lang.String[] names)
void skipField(Format declaredFormat) throws RefreshException
RefreshException
java.lang.String readString() throws RefreshException
RefreshException
char readChar() throws RefreshException
RefreshException
boolean readBoolean() throws RefreshException
RefreshException
byte readByte() throws RefreshException
RefreshException
short readShort() throws RefreshException
RefreshException
int readInt() throws RefreshException
RefreshException
long readLong() throws RefreshException
RefreshException
float readSortedFloat() throws RefreshException
RefreshException
double readSortedDouble() throws RefreshException
RefreshException
java.math.BigInteger readBigInteger() throws RefreshException
RefreshException
java.math.BigDecimal readSortedBigDecimal() throws RefreshException
RefreshException