db4o 8.0

com.db4o.typehandlers
Interface InstantiatingTypeHandler

All Superinterfaces:
ReferenceTypeHandler, TypeHandler4

public interface InstantiatingTypeHandler
extends ReferenceTypeHandler


Method Summary
 java.lang.Object instantiate(ReadContext context)
           
 void writeInstantiation(WriteContext context, java.lang.Object obj)
          gets called when an object is to be written to the database.
 
Methods inherited from interface com.db4o.typehandlers.ReferenceTypeHandler
activate
 
Methods inherited from interface com.db4o.typehandlers.TypeHandler4
defragment, delete, write
 

Method Detail

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

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.