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_candidatesprotected 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 voidaddDependant(InternalCandidate a_candidate)QCandidatescandidates()voiddoNotInclude()booleanduplicates()booleanevaluate(QPending pending)InternalCandidategetRoot()intid()booleaninclude()voidinclude(boolean flag)For external interface use only.ObjectContainerobjectContainer()Returns the object container the query is executed onTreeonAttemptToAddDuplicate(Tree oldNode)TreependingJoins()voidroot(InternalCandidate root)LocalTransactiontransaction()-
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:
doNotIncludein interfaceInternalCandidate
-
evaluate
public boolean evaluate(QPending pending)
- Specified by:
evaluatein interfaceInternalCandidate
-
objectContainer
public ObjectContainer objectContainer()
Description copied from interface:CandidateReturns the object container the query is executed on- Specified by:
objectContainerin interfaceCandidate- Returns:
- the
ObjectContainer
-
getRoot
public InternalCandidate getRoot()
- Specified by:
getRootin interfaceInternalCandidate
-
transaction
public final LocalTransaction transaction()
- Specified by:
transactionin interfaceInternalCandidate
-
include
public boolean include()
- Specified by:
includein 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:
onAttemptToAddDuplicatein classTree<java.lang.Integer>
-
duplicates
public boolean duplicates()
- Overrides:
duplicatesin classTreeInt
-
candidates
public QCandidates candidates()
- Specified by:
candidatesin interfaceInternalCandidate
-
root
public void root(InternalCandidate root)
- Specified by:
rootin interfaceInternalCandidate
-
pendingJoins
public Tree pendingJoins()
- Specified by:
pendingJoinsin interfaceInternalCandidate
-
id
public int id()
- Specified by:
idin interfaceInternalCandidate
-
-