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 protectedAbstractReadContext(Transaction transaction)protectedAbstractReadContext(Transaction transaction, ReadBuffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActivationDepthactivationDepth()voidactivationDepth(ActivationDepth depth)booleanlastReferenceReadWasReallyNull()voidnotifyNullReferenceSkipped()protected booleanpeekPersisted()java.lang.Objectread(TypeHandler4 handlerType)java.lang.ObjectreadAtCurrentSeekPosition(TypeHandler4 handler)ReadWriteBufferreadIndirectedBuffer()java.lang.ObjectreadObject()Interprets the current position in the context as an ID and returns the object with this ID.java.lang.ObjectreadObject(TypeHandler4 handlerType)reads sub-objects, in cases where theTypeHandler4is 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:
readin interfaceInternalReadContext
-
readObject
public final java.lang.Object readObject(TypeHandler4 handlerType)
Description copied from interface:ReadContextreads sub-objects, in cases where theTypeHandler4is known.- Specified by:
readObjectin interfaceReadContext
-
readAtCurrentSeekPosition
public java.lang.Object readAtCurrentSeekPosition(TypeHandler4 handler)
- Specified by:
readAtCurrentSeekPositionin interfaceInternalReadContext
-
readObject
public final java.lang.Object readObject()
Description copied from interface:ReadContextInterprets the current position in the context as an ID and returns the object with this ID.- Specified by:
readObjectin interfaceReadContext- Returns:
- the object
-
peekPersisted
protected boolean peekPersisted()
-
activationDepth
public ActivationDepth activationDepth()
-
activationDepth
public void activationDepth(ActivationDepth depth)
-
readIndirectedBuffer
public ReadWriteBuffer readIndirectedBuffer()
- Specified by:
readIndirectedBufferin interfaceInternalReadContext
-
lastReferenceReadWasReallyNull
public boolean lastReferenceReadWasReallyNull()
-
notifyNullReferenceSkipped
public void notifyNullReferenceSkipped()
- Specified by:
notifyNullReferenceSkippedin interfaceInternalReadContext
-
-