示例#1
0
 public _IVisitor4_374(QQueryBase _enclosing, Collection4 executionPath, ObjectContainerBase
                       stream, IdListQueryResult result)
 {
     this._enclosing    = _enclosing;
     this.executionPath = executionPath;
     this.stream        = stream;
     this.result        = result;
 }
示例#2
0
        private Collection4 FieldPathFromTop()
        {
            QQueryBase  q         = this;
            Collection4 fieldPath = new Collection4();

            while (q.i_parent != null)
            {
                fieldPath.Prepend(q.i_field);
                q = q.i_parent;
            }
            return(fieldPath);
        }
示例#3
0
		public override IQueryResult ClassOnlyQuery(QQueryBase query, ClassMetadata clazz
			)
		{
			Transaction trans = query.Transaction();
			long[] ids = GetIDsForClass(trans, clazz, true);
			ClientQueryResult resClient = new ClientQueryResult(trans, ids.Length);
			for (int i = 0; i < ids.Length; i++)
			{
				resClient.Add((int)ids[i]);
			}
			return resClient;
		}
示例#4
0
		public abstract IQueryResult ClassOnlyQuery(QQueryBase queryBase, ClassMetadata clazz
			);
示例#5
0
 public _IVisitor4_275(QQueryBase _enclosing)
 {
     this._enclosing = _enclosing;
     this.untypedFieldConstraintCollected = false;
 }
示例#6
0
 public _IClosure4_331(QQueryBase _enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#7
0
 // cheat emulating '(QQuery)this'
 private static QQuery Cast(QQueryBase obj)
 {
     return((QQuery)obj);
 }
示例#8
0
 public _IVisitor4_139(QQueryBase _enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#9
0
 public _IVisitor4_275(QQueryBase _enclosing)
 {
     this._enclosing = _enclosing;
     untypedFieldConstraintCollected = false;
 }
示例#10
0
 public _IClosure4_331(QQueryBase _enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#11
0
 public _IVisitor4_139(QQueryBase _enclosing)
 {
     this._enclosing = _enclosing;
 }
示例#12
0
 // cheat emulating '(QQuery)this'
 private static QQuery Cast(QQueryBase obj)
 {
     return (QQuery) obj;
 }
示例#13
0
 public _IVisitor4_374(QQueryBase _enclosing, Collection4 executionPath, ObjectContainerBase
     stream, IdListQueryResult result)
 {
     this._enclosing = _enclosing;
     this.executionPath = executionPath;
     this.stream = stream;
     this.result = result;
 }
示例#14
0
		private Collection4 ExecutionPath(QQueryBase.CreateCandidateCollectionResult r)
		{
			return r.topLevel ? null : FieldPathFromTop();
		}
示例#15
0
		public override IQueryResult ClassOnlyQuery(QQueryBase query, ClassMetadata clazz
			)
		{
			if (!clazz.HasClassIndex())
			{
				return new IdListQueryResult(query.Transaction());
			}
			AbstractQueryResult queryResult = NewQueryResult(query.Transaction());
			queryResult.LoadFromClassIndex(clazz);
			return queryResult;
		}