Package com.db4o.internal.marshall
Class ObjectHeaderContext
- java.lang.Object
-
- com.db4o.internal.AbstractBufferContext
-
- com.db4o.internal.marshall.AbstractReadContext
-
- com.db4o.internal.marshall.ObjectHeaderContext
-
- All Implemented Interfaces:
AspectVersionContext
,HandlerVersionContext
,InternalReadContext
,MarshallingInfo
,BufferContext
,Context
,ReadBuffer
,ReadContext
- Direct Known Subclasses:
CollectIdContext
,DeleteContextImpl
,ObjectIdContextImpl
,ObjectReferenceContext
public class ObjectHeaderContext extends AbstractReadContext implements MarshallingInfo, HandlerVersionContext
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectHeader
_objectHeader
-
Fields inherited from class com.db4o.internal.marshall.AbstractReadContext
_activationDepth
-
-
Constructor Summary
Constructors Constructor Description ObjectHeaderContext(Transaction transaction, ReadBuffer buffer, ObjectHeader objectHeader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginSlot()
ClassMetadata
classMetadata()
int
declaredAspectCount()
void
declaredAspectCount(int count)
int
handlerVersion()
ObjectHeaderAttributes
headerAttributes()
boolean
isNull(int fieldIndex)
void
restoreState(ContextState state)
ContextState
saveState()
-
Methods inherited from class com.db4o.internal.marshall.AbstractReadContext
activationDepth, activationDepth, lastReferenceReadWasReallyNull, notifyNullReferenceSkipped, peekPersisted, read, readAtCurrentSeekPosition, readIndirectedBuffer, readObject, readObject
-
Methods inherited from class com.db4o.internal.AbstractBufferContext
buffer, buffer, container, 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, offset, seek
-
Methods inherited from interface com.db4o.internal.marshall.MarshallingInfo
buffer
-
Methods inherited from interface com.db4o.marshall.ReadBuffer
readBitMap, readByte, readBytes, readInt, readLong
-
-
-
-
Field Detail
-
_objectHeader
protected ObjectHeader _objectHeader
-
-
Constructor Detail
-
ObjectHeaderContext
public ObjectHeaderContext(Transaction transaction, ReadBuffer buffer, ObjectHeader objectHeader)
-
-
Method Detail
-
headerAttributes
public final ObjectHeaderAttributes headerAttributes()
-
isNull
public final boolean isNull(int fieldIndex)
- Specified by:
isNull
in interfaceMarshallingInfo
-
handlerVersion
public int handlerVersion()
- Specified by:
handlerVersion
in interfaceHandlerVersionContext
- Specified by:
handlerVersion
in interfaceInternalReadContext
- Specified by:
handlerVersion
in classAbstractBufferContext
-
beginSlot
public void beginSlot()
- Specified by:
beginSlot
in interfaceMarshallingInfo
-
saveState
public ContextState saveState()
-
restoreState
public void restoreState(ContextState state)
-
classMetadata
public ClassMetadata classMetadata()
- Specified by:
classMetadata
in interfaceMarshallingInfo
-
declaredAspectCount
public int declaredAspectCount()
- Specified by:
declaredAspectCount
in interfaceAspectVersionContext
-
declaredAspectCount
public void declaredAspectCount(int count)
- Specified by:
declaredAspectCount
in interfaceAspectVersionContext
-
-