Class QQueryBase
- java.lang.Object
-
- com.db4o.internal.query.processor.QQueryBase
-
- All Implemented Interfaces:
InternalQuery
,Unversioned
- Direct Known Subclasses:
QQuery
public abstract class QQueryBase extends java.lang.Object implements InternalQuery, Unversioned
QQuery is the users hook on our graph. A QQuery is defined by it's constraints. NOTE: This is just a 'partial' base class to allow for variant implementations in db4oj and db4ojdk1.2. It assumes that itself is an instance of QQuery and should never be used explicitly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QQueryBase.CreateCandidateCollectionResult
-
Constructor Summary
Constructors Modifier Constructor Description protected
QQueryBase()
protected
QQueryBase(Transaction a_trans, QQuery a_parent, java.lang.String a_field)
-
Method Summary
-
-
-
Constructor Detail
-
QQueryBase
protected QQueryBase()
-
QQueryBase
protected QQueryBase(Transaction a_trans, QQuery a_parent, java.lang.String a_field)
-
-
Method Detail
-
captureQueryResultConfig
public void captureQueryResultConfig()
-
constrain
public Constraint constrain(java.lang.Object example)
Search for slot that corresponds to class.
If not found add it.
Constrain it.
-
constraints
public Constraints constraints()
-
descend
public Query descend(java.lang.String a_field)
-
execute
public ObjectSet execute()
-
executeLocal
public void executeLocal(IdListQueryResult result)
-
executeLazy
public Iterator4 executeLazy()
-
getQueryResult
public QueryResult getQueryResult()
-
executeQuery
protected final QueryResult executeQuery()
-
stream
protected ObjectContainerBase stream()
-
container
public InternalObjectContainer container()
- Specified by:
container
in interfaceInternalQuery
-
executeSnapshot
public Iterator4 executeSnapshot()
-
triggeringQueryEvents
public <T> T triggeringQueryEvents(Closure4<T> closure)
-
checkConstraintsEvaluationMode
public void checkConstraintsEvaluationMode()
-
createCandidateCollection
public QQueryBase.CreateCandidateCollectionResult createCandidateCollection()
-
transaction
public final Transaction transaction()
-
iterateConstraints
public Iterator4 iterateConstraints()
-
orderAscending
public Query orderAscending()
-
orderDescending
public Query orderDescending()
-
addOrdering
protected final void addOrdering(SodaQueryComparator.Direction direction, java.util.List<java.lang.String> path)
-
orderings
public final java.util.List<SodaQueryComparator.Ordering> orderings()
Public so it can be used by the LINQ test cases.
-
marshall
public void marshall()
-
unmarshall
public void unmarshall(Transaction a_trans)
-
streamLock
protected java.lang.Object streamLock()
-
sortBy
public Query sortBy(QueryComparator comparator)
-
requiresSort
public boolean requiresSort()
-
comparator
public QueryComparator comparator()
-
evaluationMode
public QueryEvaluationMode evaluationMode()
-
evaluationMode
public void evaluationMode(QueryEvaluationMode mode)
-
prefetchDepth
public int prefetchDepth()
-
prefetchCount
public int prefetchCount()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
parent
public QQuery parent()
-
-