Package com.db4o.query
Interface Evaluation
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
PredicateEvaluation
public interface Evaluation extends java.io.Serializable
For implementation of callback evaluations.
This is for adding your own constrains to a given query. Note that evaluations force db4o to instantiate your objects in order to execute the query which slows down to query by an order of magnitude. Pass your implementation of this interface toQuery.constrain(Object)
Evaluations are called as the last step during query execution, after all other constraints have been applied.
Client-Server over a network only:
Avoid evaluations, because the evaluation object needs to be serialized, which is hard to manage correctly.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
evaluate(Candidate candidate)
Callback method duringquery execution
.
-
-
-
Method Detail
-
evaluate
void evaluate(Candidate candidate)
Callback method duringquery execution
.- Parameters:
candidate
- reference to the candidate persistent object.
-
-