com.db4o.typehandlers
Interface InstantiatingTypeHandler
- All Superinterfaces:
- ReferenceTypeHandler, TypeHandler4
public interface InstantiatingTypeHandler
- extends ReferenceTypeHandler
instantiate
java.lang.Object instantiate(ReadContext context)
writeInstantiation
void writeInstantiation(WriteContext context,
java.lang.Object obj)
- gets called when an object is to be written to the database.
The method must only write data necessary to re instantiate the object, usually
the immutable bits of information held by the object. For value
types that means their complete state.
Mutable state (only allowed in reference types) must be handled
during
ReferenceTypeHandler#activate(WriteContext)
- Parameters:
context
- obj
- the object
Copyright 2009 Versant Corporation. All rights reserved.