| com.db4o.marshall.WriteContext
All known Subclasses: com.db4o.db4ounit.common.handlers.MockWriteContext, com.db4o.internal.marshall.MarshallingContext,
WriteContext | public interface WriteContext extends Context,WriteBuffer(Code) | | this interface is passed to internal class com.db4o.internal.TypeHandler4 during marshalling
and provides methods to marshal objects.
|
Method Summary | |
void | writeObject(Object obj) makes sure the object is stored and writes the ID of
the object to the context.
Use this method for first class objects only (objects that
have an identity in the database). | void | writeObject(TypeHandler4 handler, Object obj) writes sub-objects, in cases where the TypeHandler4
is known. |
writeObject | void writeObject(Object obj)(Code) | | makes sure the object is stored and writes the ID of
the object to the context.
Use this method for first class objects only (objects that
have an identity in the database). If the object can potentially
be a primitive type, do not use this method but use
a matching
WriteBuffer method instead.
Parameters: obj - the object to write. |
writeObject | void writeObject(TypeHandler4 handler, Object obj)(Code) | | writes sub-objects, in cases where the TypeHandler4
is known.
Parameters: obj - the object to write |
|
|