Package com.db4o.typehandlers
Interface TypeHandler4
-
- All Known Subinterfaces:
BuiltinTypeHandler
,CascadingTypeHandler
,FieldAwareTypeHandler
,IndexableTypeHandler
,InstantiatingTypeHandler
,QueryableTypeHandler
,ReferenceTypeHandler
,TypeFamilyTypeHandler
,ValueTypeHandler
,VariableLengthTypeHandler
,VersionedTypeHandler
- All Known Implementing Classes:
ArrayHandler
,ArrayHandler0
,ArrayHandler1
,ArrayHandler3
,ArrayHandler5
,BigSetTypeHandler
,BooleanHandler
,ByteHandler
,CharHandler
,CollectionTypeHandler
,DateHandler
,DateHandler0
,DateHandlerBase
,DoubleHandler
,DoubleHandler0
,FloatHandler
,FloatHandler0
,HashtableTypeHandler
,IDHandler
,IgnoreFieldsTypeHandler
,InterfaceTypeHandler
,IntHandler
,IntHandler0
,LongHandler
,LongHandler0
,MapTypeHandler
,MultidimensionalArrayHandler
,MultidimensionalArrayHandler0
,MultidimensionalArrayHandler3
,NetDateTime
,NetDecimal
,NetSByte
,NetSimpleTypeHandler
,NetTypeHandler
,NetUInt
,NetULong
,NetUShort
,NullFieldAwareTypeHandler
,OpenTypeHandler
,OpenTypeHandler0
,OpenTypeHandler2
,OpenTypeHandler7
,PlainObjectHandler
,PrimitiveHandler
,ShortHandler
,ShortHandler0
,StandardReferenceTypeHandler
,StandardReferenceTypeHandler0
,StringBasedValueTypeHandlerBase
,StringBufferHandler
,StringHandler
,StringHandler0
,TreeSetTypeHandler
,UnmodifiableListTypeHandler
,VectorTypeHandler
public interface TypeHandler4
handles reading, writing, deleting, defragmenting and comparisons for types of objects.
Custom Typehandlers can be implemented to alter the default behaviour of storing all non-transient fields of an object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
defragment(DefragmentContext context)
gets called when an object gets defragmented.void
delete(DeleteContext context)
gets called when an object gets deleted.void
write(WriteContext context, java.lang.Object obj)
gets called when an object is to be written to the database.
-
-
-
Method Detail
-
delete
void delete(DeleteContext context) throws Db4oIOException
gets called when an object gets deleted.- Parameters:
context
-- Throws:
Db4oIOException
-
defragment
void defragment(DefragmentContext context)
gets called when an object gets defragmented.- Parameters:
context
-
-
write
void write(WriteContext context, java.lang.Object obj)
gets called when an object is to be written to the database.- Parameters:
context
-obj
- the object
-
-