Package com.db4o.query
Interface Candidate
-
- All Known Subinterfaces:
InternalCandidate
,ParentCandidate
- All Known Implementing Classes:
QCandidate
,QCandidateBase
,QPrimitiveCandidate
public interface Candidate
Candidate forEvaluation
callbacks.
Duringquery execution
all registeredEvaluation
callback handlers are called withCandidate
proxies that represent the persistent objects that meet all otherQuery
criteria.
ACandidate
provides access to the query candidate object. It represents and allows to specify whether it is to be included in the query result
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getObject()
Returns the persistent object that is represented by this queryCandidate
.void
include(boolean flag)
Specify whether the Candidate is to be included in the result
This method may be called multiple times.ObjectContainer
objectContainer()
Returns the object container the query is executed on
-
-
-
Method Detail
-
getObject
java.lang.Object getObject()
Returns the persistent object that is represented by this queryCandidate
.- Returns:
- Object the persistent object.
-
include
void include(boolean flag)
Specify whether the Candidate is to be included in the result
This method may be called multiple times. The last call prevails.- Parameters:
flag
- true to include that object. False otherwise.
-
objectContainer
ObjectContainer objectContainer()
Returns the object container the query is executed on- Returns:
- the
ObjectContainer
-
-