db4o 8.0

com.db4o.query
Interface Candidate


public interface Candidate

candidate for Evaluation callbacks.

During query execution all registered Evaluation callback handlers are called with Candidate proxies that represent the persistent objects that meet all other Query criteria.

A Candidate provides access to the persistent object it represents and allows to specify, whether it is to be included in the ObjectSet resultset.


Method Summary
 java.lang.Object getObject()
          returns the persistent object that is represented by this query Candidate.
 void include(boolean flag)
          specify whether the Candidate is to be included in the ObjectSet resultset.
 ObjectContainer objectContainer()
          returns the ObjectContainer the Candidate object is stored in.
 

Method Detail

getObject

java.lang.Object getObject()
returns the persistent object that is represented by this query Candidate.

Returns:
Object the persistent object.

include

void include(boolean flag)
specify whether the Candidate is to be included in the ObjectSet resultset.

This method may be called multiple times. The last call prevails.

Parameters:
flag - inclusion.

objectContainer

ObjectContainer objectContainer()
returns the ObjectContainer the Candidate object is stored in.

Returns:
the ObjectContainer

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.