Package com.db4o.internal.handlers
Class NullFieldAwareTypeHandler
- java.lang.Object
-
- com.db4o.internal.handlers.NullFieldAwareTypeHandler
-
- All Implemented Interfaces:
DeepClone
,FieldAwareTypeHandler
,VirtualAttributeHandler
,VersionedTypeHandler
,CascadingTypeHandler
,ReferenceTypeHandler
,TypeHandler4
public class NullFieldAwareTypeHandler extends java.lang.Object implements FieldAwareTypeHandler
-
-
Field Summary
Fields Modifier and Type Field Description static FieldAwareTypeHandler
INSTANCE
-
Constructor Summary
Constructors Constructor Description NullFieldAwareTypeHandler()
-
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
addFieldIndices(ObjectIdContextImpl context)
void
cascadeActivation(ActivationContext context)
will be called during activation if the handled object is already activevoid
classMetadata(ClassMetadata classMetadata)
void
collectIDs(CollectIdContext context, Predicate4<ClassAspect> predicate)
void
collectIDs(QueryingReadContext context)
will be called during querying to ask for IDs of member objects of the handled object.java.lang.Object
deepClone(java.lang.Object context)
The parameter allows passing one new object so parent references can be corrected on children.void
defragment(DefragmentContext context)
gets called when an object gets defragmented.void
delete(DeleteContext context)
gets called when an object gets deleted.void
deleteMembers(DeleteContextImpl deleteContext, boolean isUpdate)
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
readVirtualAttributes(ObjectReferenceContext context)
boolean
seekToField(ObjectHeaderContext context, ClassAspect aspect)
TypeHandler4
unversionedTemplate()
void
write(WriteContext context, java.lang.Object obj)
gets called when an object is to be written to the database.
-
-
-
Field Detail
-
INSTANCE
public static final FieldAwareTypeHandler INSTANCE
-
-
Method Detail
-
addFieldIndices
public void addFieldIndices(ObjectIdContextImpl context)
- Specified by:
addFieldIndices
in interfaceFieldAwareTypeHandler
-
classMetadata
public void classMetadata(ClassMetadata classMetadata)
- Specified by:
classMetadata
in interfaceFieldAwareTypeHandler
-
collectIDs
public void collectIDs(CollectIdContext context, Predicate4<ClassAspect> predicate)
- Specified by:
collectIDs
in interfaceFieldAwareTypeHandler
-
deleteMembers
public void deleteMembers(DeleteContextImpl deleteContext, boolean isUpdate)
- Specified by:
deleteMembers
in interfaceFieldAwareTypeHandler
-
readVirtualAttributes
public void readVirtualAttributes(ObjectReferenceContext context)
- Specified by:
readVirtualAttributes
in interfaceFieldAwareTypeHandler
- Specified by:
readVirtualAttributes
in interfaceVirtualAttributeHandler
-
seekToField
public boolean seekToField(ObjectHeaderContext context, ClassAspect aspect)
- Specified by:
seekToField
in interfaceFieldAwareTypeHandler
-
defragment
public void defragment(DefragmentContext context)
Description copied from interface:TypeHandler4
gets called when an object gets defragmented.- Specified by:
defragment
in interfaceTypeHandler4
-
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
-
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
-
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
-
prepareComparison
public PreparedComparison prepareComparison(Context context, java.lang.Object obj)
-
unversionedTemplate
public TypeHandler4 unversionedTemplate()
- Specified by:
unversionedTemplate
in interfaceVersionedTypeHandler
-
deepClone
public java.lang.Object deepClone(java.lang.Object context)
Description copied from interface:DeepClone
The parameter allows passing one new object so parent references can be corrected on children.
-
cascadeActivation
public 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
-
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
-
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:
-
-