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 to Query.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 Detail

      • evaluate

        void evaluate​(Candidate candidate)
        Callback method during query execution.
        Parameters:
        candidate - reference to the candidate persistent object.