Class QCandidate
- java.lang.Object
-
- com.db4o.foundation.Tree<java.lang.Integer>
-
- com.db4o.internal.TreeInt
-
- com.db4o.internal.query.processor.QCandidateBase
-
- com.db4o.internal.query.processor.QCandidate
-
- All Implemented Interfaces:
DeepClone,ShallowClone,Visitable<java.lang.Integer>,InternalCandidate,ParentCandidate,Readable,ReadWriteable,Candidate
public class QCandidate extends QCandidateBase implements ParentCandidate
Represents an actual object in the database. Forms a tree structure, indexed by id. Can have dependents that are doNotInclude'd in the query result when this is doNotInclude'd.
-
-
Field Summary
-
Fields inherited from class com.db4o.internal.query.processor.QCandidateBase
_candidates, _dependants
-
Fields inherited from class com.db4o.foundation.Tree
_preceding, _size, _subsequent
-
-
Constructor Summary
Constructors Constructor Description QCandidate(QCandidates candidates, java.lang.Object member, int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassMetadataclassMetadata()voidclassMetadata(ClassMetadata classMetadata)booleancreateChild(QField field, QCandidates candidates)booleanevaluate(QConObject a_constraint, QE a_evaluator)booleanfieldIsAvailable()java.lang.ObjectgetObject()Returns the persistent object that is represented by this queryCandidate.PreparedComparisonprepareComparison(ObjectContainerBase container, java.lang.Object constraint)java.lang.ObjectshallowClone()java.lang.StringtoString()voiduseField(QField a_field)-
Methods inherited from class com.db4o.internal.query.processor.QCandidateBase
addDependant, candidates, doNotInclude, duplicates, evaluate, getRoot, id, include, include, objectContainer, onAttemptToAddDuplicate, pendingJoins, root, transaction
-
Methods inherited from class com.db4o.internal.TreeInt
add, addAll, compare, equals, find, find, key, marshalledLength, marshalledLength, marshalledLength, ownLength, read, removeLike, shallowCloneInternal, 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.query.Candidate
include, objectContainer
-
Methods inherited from interface com.db4o.internal.query.processor.InternalCandidate
candidates, doNotInclude, evaluate, getRoot, id, include, pendingJoins, root, transaction
-
-
-
-
Constructor Detail
-
QCandidate
public QCandidate(QCandidates candidates, java.lang.Object member, int id)
-
-
Method Detail
-
shallowClone
public java.lang.Object shallowClone()
- Specified by:
shallowClonein interfaceShallowClone- Overrides:
shallowClonein classTreeInt
-
createChild
public boolean createChild(QField field, QCandidates candidates)
- Specified by:
createChildin interfaceParentCandidate
-
fieldIsAvailable
public boolean fieldIsAvailable()
- Specified by:
fieldIsAvailablein interfaceInternalCandidate
-
classMetadata
public ClassMetadata classMetadata()
- Specified by:
classMetadatain interfaceInternalCandidate
-
useField
public void useField(QField a_field)
- Specified by:
useFieldin interfaceParentCandidate
-
classMetadata
public void classMetadata(ClassMetadata classMetadata)
-
evaluate
public boolean evaluate(QConObject a_constraint, QE a_evaluator)
- Specified by:
evaluatein interfaceInternalCandidate
-
getObject
public java.lang.Object getObject()
Description copied from interface:CandidateReturns the persistent object that is represented by this queryCandidate.
-
prepareComparison
public PreparedComparison prepareComparison(ObjectContainerBase container, java.lang.Object constraint)
- Specified by:
prepareComparisonin interfaceInternalCandidate
-
-