Package com.db4o.internal.marshall
Class UnmarshallingContext
- java.lang.Object
-
- com.db4o.internal.AbstractBufferContext
-
- com.db4o.internal.marshall.AbstractReadContext
-
- com.db4o.internal.marshall.ObjectHeaderContext
-
- com.db4o.internal.marshall.ObjectReferenceContext
-
- com.db4o.internal.marshall.UnmarshallingContext
-
- All Implemented Interfaces:
AspectVersionContext
,HandlerVersionContext
,InternalReadContext
,MarshallingInfo
,ObjectIdContext
,BufferContext
,Context
,ReadBuffer
,ReadContext
,ReferenceActivationContext
public class UnmarshallingContext extends ObjectReferenceContext implements HandlerVersionContext, ReferenceActivationContext
Wraps the low-level details of reading a Buffer, which in turn is a glorified byte array.
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.marshall.ObjectReferenceContext
_reference
-
Fields inherited from class com.db4o.internal.marshall.ObjectHeaderContext
_objectHeader
-
Fields inherited from class com.db4o.internal.marshall.AbstractReadContext
_activationDepth
-
-
Constructor Summary
Constructors Constructor Description UnmarshallingContext(Transaction transaction, ByteArrayBuffer buffer, ObjectReference ref, int addToIDTree, boolean checkIDTree)
UnmarshallingContext(Transaction transaction, ObjectReference ref, int addToIDTree, boolean checkIDTree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Config4Class
classConfig()
protected boolean
peekPersisted()
java.lang.Object
persistentObject()
void
persistentObject(java.lang.Object obj)
java.lang.Object
read()
java.lang.Object
readFieldValue(FieldMetadata field)
java.lang.Object
readFullyActivatedObjectForKeys(TypeHandler4 handler)
void
setObjectWeak(java.lang.Object obj)
void
setStateClean()
-
Methods inherited from class com.db4o.internal.marshall.ObjectReferenceContext
byteArrayBuffer, classMetadata, objectId, objectReference
-
Methods inherited from class com.db4o.internal.marshall.ObjectHeaderContext
beginSlot, declaredAspectCount, declaredAspectCount, handlerVersion, headerAttributes, isNull, restoreState, saveState
-
Methods inherited from class com.db4o.internal.marshall.AbstractReadContext
activationDepth, activationDepth, lastReferenceReadWasReallyNull, notifyNullReferenceSkipped, 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, handlerVersion, notifyNullReferenceSkipped, offset, read, readAtCurrentSeekPosition, readIndirectedBuffer, seek
-
Methods inherited from interface com.db4o.internal.marshall.MarshallingInfo
buffer
-
Methods inherited from interface com.db4o.marshall.ReadBuffer
readBitMap, readByte, readBytes, readInt, readLong
-
Methods inherited from interface com.db4o.marshall.ReadContext
readObject, readObject
-
-
-
-
Constructor Detail
-
UnmarshallingContext
public UnmarshallingContext(Transaction transaction, ByteArrayBuffer buffer, ObjectReference ref, int addToIDTree, boolean checkIDTree)
-
UnmarshallingContext
public UnmarshallingContext(Transaction transaction, ObjectReference ref, int addToIDTree, boolean checkIDTree)
-
-
Method Detail
-
read
public java.lang.Object read()
-
readFullyActivatedObjectForKeys
public java.lang.Object readFullyActivatedObjectForKeys(TypeHandler4 handler)
-
readFieldValue
public java.lang.Object readFieldValue(FieldMetadata field)
-
setStateClean
public void setStateClean()
-
persistentObject
public java.lang.Object persistentObject()
- Specified by:
persistentObject
in interfaceReferenceActivationContext
-
setObjectWeak
public void setObjectWeak(java.lang.Object obj)
-
peekPersisted
protected boolean peekPersisted()
- Overrides:
peekPersisted
in classAbstractReadContext
-
classConfig
public Config4Class classConfig()
-
persistentObject
public void persistentObject(java.lang.Object obj)
-
-