Package com.db4o.typehandlers
Interface InstantiatingTypeHandler
-
- All Superinterfaces:
ReferenceTypeHandler
,TypeHandler4
- All Known Implementing Classes:
TreeSetTypeHandler
,UnmodifiableListTypeHandler
public interface InstantiatingTypeHandler extends ReferenceTypeHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 duringReferenceTypeHandler#activate(WriteContext)
- Parameters:
context
-obj
- the object
-
-