com.mobixess.jodb.soda.api
Interface Evaluation

All Superinterfaces:
java.io.Serializable

public interface Evaluation
extends java.io.Serializable

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.


Method Summary
 void evaluate(Candidate candidate)
          callback method during query execution.
 int getActivationDepth()
          get activation depth for evaluation object.
 

Method Detail

evaluate

void evaluate(Candidate candidate)
callback method during query execution.

Parameters:
Candidate - reference to the candidate persistent object.

getActivationDepth

int getActivationDepth()
get activation depth for evaluation object. Return -1 to use default activation depth

Returns:
int activation depth or -1 for default activation depth


Copyright © Mobixess Inc. All Rights Reserved.