Package com.db4o.internal.marshall
Class AbstractReadContext
- java.lang.Object
-
- com.db4o.internal.AbstractBufferContext
-
- com.db4o.internal.marshall.AbstractReadContext
-
- All Implemented Interfaces:
HandlerVersionContext
,InternalReadContext
,BufferContext
,Context
,ReadBuffer
,ReadContext
- Direct Known Subclasses:
ObjectHeaderContext
,QueryingReadContext
public abstract class AbstractReadContext extends AbstractBufferContext implements InternalReadContext
-
-
Field Summary
Fields Modifier and Type Field Description protected ActivationDepth
_activationDepth
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractReadContext(Transaction transaction)
protected
AbstractReadContext(Transaction transaction, ReadBuffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationDepth
activationDepth()
void
activationDepth(ActivationDepth depth)
boolean
lastReferenceReadWasReallyNull()
void
notifyNullReferenceSkipped()
protected boolean
peekPersisted()
java.lang.Object
read(TypeHandler4 handlerType)
java.lang.Object
readAtCurrentSeekPosition(TypeHandler4 handler)
ReadWriteBuffer
readIndirectedBuffer()
java.lang.Object
readObject()
Interprets the current position in the context as an ID and returns the object with this ID.java.lang.Object
readObject(TypeHandler4 handlerType)
reads sub-objects, in cases where theTypeHandler4
is known.-
Methods inherited from class com.db4o.internal.AbstractBufferContext
buffer, buffer, container, handlerVersion, isLegacyHandlerVersion, objectContainer, offset, readBitMap, readByte, readBytes, readInt, readLong, seek, slotFormat, transaction
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.db4o.marshall.Context
objectContainer, transaction
-
Methods inherited from interface com.db4o.internal.marshall.HandlerVersionContext
slotFormat
-
Methods inherited from interface com.db4o.internal.marshall.InternalReadContext
buffer, buffer, container, handlerVersion, offset, seek
-
Methods inherited from interface com.db4o.marshall.ReadBuffer
readBitMap, readByte, readBytes, readInt, readLong
-
-
-
-
Field Detail
-
_activationDepth
protected ActivationDepth _activationDepth
-
-
Constructor Detail
-
AbstractReadContext
protected AbstractReadContext(Transaction transaction, ReadBuffer buffer)
-
AbstractReadContext
protected AbstractReadContext(Transaction transaction)
-
-
Method Detail
-
read
public final java.lang.Object read(TypeHandler4 handlerType)
- Specified by:
read
in interfaceInternalReadContext
-
readObject
public final java.lang.Object readObject(TypeHandler4 handlerType)
Description copied from interface:ReadContext
reads sub-objects, in cases where theTypeHandler4
is known.- Specified by:
readObject
in interfaceReadContext
-
readAtCurrentSeekPosition
public java.lang.Object readAtCurrentSeekPosition(TypeHandler4 handler)
- Specified by:
readAtCurrentSeekPosition
in interfaceInternalReadContext
-
readObject
public final java.lang.Object readObject()
Description copied from interface:ReadContext
Interprets the current position in the context as an ID and returns the object with this ID.- Specified by:
readObject
in interfaceReadContext
- Returns:
- the object
-
peekPersisted
protected boolean peekPersisted()
-
activationDepth
public ActivationDepth activationDepth()
-
activationDepth
public void activationDepth(ActivationDepth depth)
-
readIndirectedBuffer
public ReadWriteBuffer readIndirectedBuffer()
- Specified by:
readIndirectedBuffer
in interfaceInternalReadContext
-
lastReferenceReadWasReallyNull
public boolean lastReferenceReadWasReallyNull()
-
notifyNullReferenceSkipped
public void notifyNullReferenceSkipped()
- Specified by:
notifyNullReferenceSkipped
in interfaceInternalReadContext
-
-