Ejemplo n.º 1
0
 public CompiledSelect()
 {
     query       = null;
     joinsTables = new System.Collections.Generic.List <Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledJoinCriteria>();
     fields      = new System.Collections.Generic.List <Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledQueryField>(1);
     //        groupByList = new Vector(1);
     groupByExpressions = new System.Collections.Generic.List <Net.Vpc.Upa.Impl.Uql.Compiledexpression.DefaultCompiledExpression>();
     order = new Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrder();
 }
Ejemplo n.º 2
0
 public virtual Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrder Copy()
 {
     Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrder o = new Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrder();
     foreach (Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrderItem i in items)
     {
         o.items.Add(new Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrderItem(i.GetExpression().Copy(), i.IsAsc()));
     }
     return(o);
 }
Ejemplo n.º 3
0
 public virtual Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrder AddOrder(Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrder order)
 {
     foreach (Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrderItem field in order.items)
     {
         items.Add(new Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrderItem(field.GetExpression(), field.IsAsc()));
     }
     return(this);
 }
Ejemplo n.º 4
0
 public virtual Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledSelect OrderBy(Net.Vpc.Upa.Impl.Uql.Compiledexpression.CompiledOrder order)
 {
     if (order != null)
     {
         Invalidate();
         this.order.AddOrder(order);
         for (int i = 0; i < order.Size(); i++)
         {
             PrepareChildren(order.GetOrderAt(i));
         }
     }
     return(this);
 }