|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.persist.impl.AbstractInput
com.sleepycat.persist.impl.RawAbstractInput
abstract class RawAbstractInput
Base class for EntityInput implementations that type-check RawObject instances and convert them to regular persistent objects, via the Format.convertRawObject method. The subclass implements readNext which should call checkAndConvert before returning the final value.
Field Summary |
---|
Fields inherited from class com.sleepycat.persist.impl.AbstractInput |
---|
catalog, rawAccess |
Constructor Summary | |
---|---|
RawAbstractInput(Catalog catalog,
boolean rawAccess,
IdentityHashMap converted)
|
Method Summary | |
---|---|
(package private) Object |
checkAndConvert(Object o,
Format declaredFormat)
|
(package private) static Format |
checkRawType(Catalog catalog,
Object o,
Format declaredFormat)
|
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()
|
(package private) abstract Object |
readNext()
|
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()
|
String |
readString()
|
void |
registerPriKeyObject(Object o)
Called via Accessor.readSecKeyFields for a primary key field with a reference type. |
void |
skipField(Format declaredFormat)
Called via PersistKeyCreator to skip fields prior to the secondary key field. |
Methods inherited from class com.sleepycat.persist.impl.AbstractInput |
---|
getCatalog, isRawAccess, setRawAccess |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
RawAbstractInput(Catalog catalog, boolean rawAccess, IdentityHashMap converted)
Method Detail |
---|
public Object readObject()
EntityInput
public Object readKeyObject(Format format)
EntityInput
For such key fields, no formatId is present nor can the object already be present in the visited object set.
public void registerPriKeyObject(Object o)
EntityInput
public int readArrayLength()
EntityInput
public int readEnumConstant(String[] names)
EntityInput
public void skipField(Format declaredFormat)
EntityInput
abstract Object readNext()
Object checkAndConvert(Object o, Format declaredFormat)
static Format checkRawType(Catalog catalog, Object o, Format declaredFormat)
public String readString()
public char readChar()
public boolean readBoolean()
public byte readByte()
public short readShort()
public int readInt()
public long readLong()
public float readSortedFloat()
public double readSortedDouble()
public BigInteger readBigInteger()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |