Package railo.runtime.sql.exp.value

Examples of railo.runtime.sql.exp.value.ValueNumber


      }
     
      sb.append("select\n\t");

      if(s.isDistinct()) sb.append("distinct\n\t");
      ValueNumber top = s.getTop();
      if(top!=null) sb.append("top "+top.getString()+"\n\t");
      // select
      Expression[] sels = s.getSelects();
      Expression exp;
      boolean first=true;
      for(int i=0;i<sels.length;i++) {
View Full Code Here


      raw.removeSpace();
 
      // top
      if(raw.forwardIfCurrentAndNoWordNumberAfter("top")) {
        raw.removeSpace();
        ValueNumber number = number(raw);
        if(number==null)throw new SQLParserException("missing top number");
        select.setTop(number);
        raw.removeSpace();
      }
 
View Full Code Here

      if(rightSite.length()==0)
        throw new SQLParserException("Number can't end with [.]");
      rtn.append(rightSite);
    }
        raw.removeSpace();
        return new ValueNumber(rtn.toString());
       
   
  }
View Full Code Here

      qry.sort(col.getColumn(),col.isDirectionBackward()?Query.ORDER_DESC:Query.ORDER_ASC);
    }
  }

  private void executeSingle(PageContext pc, Select select, Query qr, QueryImpl target, int maxrows, SQL sql,boolean hasOrders) throws PageException {
      ValueNumber oTop = select.getTop();
    if(oTop!=null) {
      int top=(int)oTop.getValueAsDouble();
      if(maxrows==-1 || maxrows>top) maxrows=top;
    }
   
     
      int recCount=qr.getRecordcount();
View Full Code Here

TOP

Related Classes of railo.runtime.sql.exp.value.ValueNumber

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.