Class QCandidateBase
- java.lang.Object
-
- com.db4o.foundation.Tree<java.lang.Integer>
-
- com.db4o.internal.TreeInt
-
- com.db4o.internal.query.processor.QCandidateBase
-
- All Implemented Interfaces:
DeepClone
,ShallowClone
,Visitable<java.lang.Integer>
,InternalCandidate
,Readable
,ReadWriteable
,Candidate
- Direct Known Subclasses:
QCandidate
,QPrimitiveCandidate
public abstract class QCandidateBase extends TreeInt implements InternalCandidate
-
-
Field Summary
Fields Modifier and Type Field Description protected QCandidates
_candidates
protected List4
_dependants
-
Fields inherited from class com.db4o.foundation.Tree
_preceding, _size, _subsequent
-
-
Constructor Summary
Constructors Constructor Description QCandidateBase(QCandidates candidates, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDependant(InternalCandidate a_candidate)
QCandidates
candidates()
void
doNotInclude()
boolean
duplicates()
boolean
evaluate(QPending pending)
InternalCandidate
getRoot()
int
id()
boolean
include()
void
include(boolean flag)
For external interface use only.ObjectContainer
objectContainer()
Returns the object container the query is executed onTree
onAttemptToAddDuplicate(Tree oldNode)
Tree
pendingJoins()
void
root(InternalCandidate root)
LocalTransaction
transaction()
-
Methods inherited from class com.db4o.internal.TreeInt
add, addAll, compare, equals, find, find, key, marshalledLength, marshalledLength, marshalledLength, ownLength, read, removeLike, shallowClone, shallowCloneInternal, toString, write, write, write
-
Methods inherited from class com.db4o.foundation.Tree
accept, add, add, add, addedOrExisting, balance, balanceCheckNulls, calculateSize, deepClone, deepClone, depth, filter, find, find, findGreaterOrEqual, findSmaller, first, last, last, nodes, ownSize, remove, removeChildren, removeFirst, removeLike, removeLike, removeNode, root, rotateLeft, rotateRight, setSizeOwn, setSizeOwnPlus, setSizeOwnPlus, setSizeOwnPreceding, setSizeOwnPrecedingSubsequent, setSizeOwnSubsequent, size, size, traverse, traverse, traverse, traverseFromLeaves, wasAddedToTree
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.db4o.internal.query.processor.InternalCandidate
classMetadata, evaluate, fieldIsAvailable, prepareComparison
-
-
-
-
Field Detail
-
_candidates
protected final QCandidates _candidates
-
_dependants
protected List4 _dependants
-
-
Constructor Detail
-
QCandidateBase
public QCandidateBase(QCandidates candidates, int id)
-
-
Method Detail
-
addDependant
protected void addDependant(InternalCandidate a_candidate)
-
doNotInclude
public void doNotInclude()
- Specified by:
doNotInclude
in interfaceInternalCandidate
-
evaluate
public boolean evaluate(QPending pending)
- Specified by:
evaluate
in interfaceInternalCandidate
-
objectContainer
public ObjectContainer objectContainer()
Description copied from interface:Candidate
Returns the object container the query is executed on- Specified by:
objectContainer
in interfaceCandidate
- Returns:
- the
ObjectContainer
-
getRoot
public InternalCandidate getRoot()
- Specified by:
getRoot
in interfaceInternalCandidate
-
transaction
public final LocalTransaction transaction()
- Specified by:
transaction
in interfaceInternalCandidate
-
include
public boolean include()
- Specified by:
include
in interfaceInternalCandidate
-
include
public void include(boolean flag)
For external interface use only. Call doNotInclude() internally so dependancies can be checked.
-
onAttemptToAddDuplicate
public Tree onAttemptToAddDuplicate(Tree oldNode)
- Overrides:
onAttemptToAddDuplicate
in classTree<java.lang.Integer>
-
duplicates
public boolean duplicates()
- Overrides:
duplicates
in classTreeInt
-
candidates
public QCandidates candidates()
- Specified by:
candidates
in interfaceInternalCandidate
-
root
public void root(InternalCandidate root)
- Specified by:
root
in interfaceInternalCandidate
-
pendingJoins
public Tree pendingJoins()
- Specified by:
pendingJoins
in interfaceInternalCandidate
-
id
public int id()
- Specified by:
id
in interfaceInternalCandidate
-
-