Class 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.
    • 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.
      • descend

        public Query descend​(java.lang.String a_field)
      • executeLazy

        public Iterator4 executeLazy()
      • executeQuery

        protected final QueryResult executeQuery()
      • executeSnapshot

        public Iterator4 executeSnapshot()
      • triggeringQueryEvents

        public <T> T triggeringQueryEvents​(Closure4<T> closure)
      • checkConstraintsEvaluationMode

        public void checkConstraintsEvaluationMode()
      • iterateConstraints

        public Iterator4 iterateConstraints()
      • orderAscending

        public Query orderAscending()
      • orderDescending

        public Query orderDescending()
      • marshall

        public void marshall()
      • unmarshall

        public void unmarshall​(Transaction a_trans)
      • streamLock

        protected java.lang.Object streamLock()
      • requiresSort

        public boolean requiresSort()
      • prefetchDepth

        public int prefetchDepth()
      • prefetchCount

        public int prefetchCount()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • parent

        public QQuery parent()