| com.db4o.query.Evaluation
All known Subclasses: com.db4o.f1.chapter6.EvenHistoryEvaluation, com.db4o.internal.query.PredicateEvaluation,
Evaluation | public interface Evaluation extends java.io.Serializable(Code) | | for implementation of callback evaluations.
To constrain a
Query node with your own callback
Evaluation , construct an object that implements the
Evaluation interface and register it by passing it
to
Query.constrain(Object) .
Evaluations are called as the last step during query execution,
after all other constraints have been applied. Evaluations in higher
level
Query nodes in the query graph are called first.
Java client/server only:
db4o first attempts to use Java Serialization to allow to pass final
variables to the server. Please make sure that all variables that are
used within the evaluate() method are Serializable. This may include
the class an anonymous Evaluation object is created in. If db4o is
not successful at using Serialization, the Evaluation is transported
to the server in a db4o MemoryFile. In this case final variables can
not be restored.
|
evaluate | public void evaluate(Candidate candidate)(Code) | | callback method during
Query.execute query execution .
Parameters: candidate - reference to the candidate persistent object. |
|
|