Package com.db4o.typehandlers
Class MapTypeHandler
- java.lang.Object
-
- com.db4o.typehandlers.MapTypeHandler
-
- All Implemented Interfaces:
VariableLengthTypeHandler
,CascadingTypeHandler
,ReferenceTypeHandler
,TypeHandler4
public class MapTypeHandler extends java.lang.Object implements ReferenceTypeHandler, CascadingTypeHandler, VariableLengthTypeHandler
Typehandler for classes that implement java.util.Map.
-
-
Constructor Summary
Constructors Constructor Description MapTypeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate(ReferenceActivationContext context)
gets called when an object is to be activated.void
cascadeActivation(ActivationContext context)
will be called during activation if the handled object is already activevoid
collectIDs(QueryingReadContext context)
will be called during querying to ask for IDs of member objects of the handled object.void
defragment(DefragmentContext context)
gets called when an object gets defragmented.void
delete(DeleteContext context)
gets called when an object gets deleted.PreparedComparison
prepareComparison(Context context, java.lang.Object obj)
TypeHandler4
readCandidateHandler(QueryingReadContext context)
will be called during querying to ask for the handler to be used to collect children of the handled objectvoid
write(WriteContext context, java.lang.Object obj)
gets called when an object is to be written to the database.
-
-
-
Method Detail
-
prepareComparison
public PreparedComparison prepareComparison(Context context, java.lang.Object obj)
-
write
public void write(WriteContext context, java.lang.Object obj)
Description copied from interface:TypeHandler4
gets called when an object is to be written to the database.- Specified by:
write
in interfaceTypeHandler4
obj
- the object
-
activate
public void activate(ReferenceActivationContext context)
Description copied from interface:ReferenceTypeHandler
gets called when an object is to be activated.- Specified by:
activate
in interfaceReferenceTypeHandler
-
delete
public void delete(DeleteContext context) throws Db4oIOException
Description copied from interface:TypeHandler4
gets called when an object gets deleted.- Specified by:
delete
in interfaceTypeHandler4
- Throws:
Db4oIOException
-
defragment
public void defragment(DefragmentContext context)
Description copied from interface:TypeHandler4
gets called when an object gets defragmented.- Specified by:
defragment
in interfaceTypeHandler4
-
cascadeActivation
public final void cascadeActivation(ActivationContext context)
Description copied from interface:CascadingTypeHandler
will be called during activation if the handled object is already active- Specified by:
cascadeActivation
in interfaceCascadingTypeHandler
-
readCandidateHandler
public TypeHandler4 readCandidateHandler(QueryingReadContext context)
Description copied from interface:CascadingTypeHandler
will be called during querying to ask for the handler to be used to collect children of the handled object- Specified by:
readCandidateHandler
in interfaceCascadingTypeHandler
- Returns:
-
collectIDs
public void collectIDs(QueryingReadContext context)
Description copied from interface:CascadingTypeHandler
will be called during querying to ask for IDs of member objects of the handled object.- Specified by:
collectIDs
in interfaceCascadingTypeHandler
-
-