|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WriteContext
this interface is passed to internal class com.db4o.internal.TypeHandler4 during marshalling and provides methods to marshal objects.
Method Summary | |
---|---|
ReservedBuffer |
reserve(int length)
reserves a buffer with a specific length at the current position, to be written in a later step. |
void |
writeObject(java.lang.Object obj)
makes sure the object is stored and writes the ID of the object to the context. |
void |
writeObject(TypeHandler4 handler,
java.lang.Object obj)
writes sub-objects, in cases where the TypeHandler4 is known. |
Methods inherited from interface com.db4o.marshall.Context |
---|
objectContainer, transaction |
Methods inherited from interface com.db4o.marshall.WriteBuffer |
---|
writeByte, writeBytes, writeInt, writeLong |
Method Detail |
---|
void writeObject(java.lang.Object obj)
WriteBuffer
method instead.
obj
- the object to write.void writeObject(TypeHandler4 handler, java.lang.Object obj)
obj
- the object to writeReservedBuffer reserve(int length)
length
- the length to be reserved.
|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |