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 ClassMetadata
classMetadata()
void
classMetadata(ClassMetadata classMetadata)
boolean
createChild(QField field, QCandidates candidates)
boolean
evaluate(QConObject a_constraint, QE a_evaluator)
boolean
fieldIsAvailable()
java.lang.Object
getObject()
Returns the persistent object that is represented by this queryCandidate
.PreparedComparison
prepareComparison(ObjectContainerBase container, java.lang.Object constraint)
java.lang.Object
shallowClone()
java.lang.String
toString()
void
useField(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:
shallowClone
in interfaceShallowClone
- Overrides:
shallowClone
in classTreeInt
-
createChild
public boolean createChild(QField field, QCandidates candidates)
- Specified by:
createChild
in interfaceParentCandidate
-
fieldIsAvailable
public boolean fieldIsAvailable()
- Specified by:
fieldIsAvailable
in interfaceInternalCandidate
-
classMetadata
public ClassMetadata classMetadata()
- Specified by:
classMetadata
in interfaceInternalCandidate
-
useField
public void useField(QField a_field)
- Specified by:
useField
in interfaceParentCandidate
-
classMetadata
public void classMetadata(ClassMetadata classMetadata)
-
evaluate
public boolean evaluate(QConObject a_constraint, QE a_evaluator)
- Specified by:
evaluate
in interfaceInternalCandidate
-
getObject
public java.lang.Object getObject()
Description copied from interface:Candidate
Returns the persistent object that is represented by this queryCandidate
.
-
prepareComparison
public PreparedComparison prepareComparison(ObjectContainerBase container, java.lang.Object constraint)
- Specified by:
prepareComparison
in interfaceInternalCandidate
-
-