Package railo.runtime.sql.exp.op

Examples of railo.runtime.sql.exp.op.Operation2


  private Expression xorOp(ParserString raw) throws SQLParserException {
    Expression expr = orOp(raw);
   
    while(raw.forwardIfCurrentAndNoWordNumberAfter("xor")) {
      raw.removeSpace();
          expr=new Operation2(expr, orOp(raw), Operation.OPERATION2_XOR);
    }
    return expr;
  }
View Full Code Here


  private Expression orOp(ParserString raw) throws SQLParserException {
    Expression expr = andOp(raw);
   
    while(raw.forwardIfCurrentAndNoWordNumberAfter("or")) {
      raw.removeSpace();
          expr=new Operation2(expr, andOp(raw),Operation.OPERATION2_OR);
    }
    return expr;
  }
View Full Code Here

  private Expression andOp(ParserString raw) throws SQLParserException {
    Expression expr = notOp(raw);
   
    while(raw.forwardIfCurrentAndNoWordNumberAfter("and")) {
      raw.removeSpace();
          expr=new Operation2(expr, notOp(raw), Operation.OPERATION2_AND);
    }
    return expr;
  }
View Full Code Here

          raw.removeSpace();
          expr= new Operation3(expr,left,right, Operation.OPERATION3_LIKE);
        }
        else {
          raw.removeSpace();
          expr= new Operation2(expr,left, Operation.OPERATION2_LIKE);
        }
        hasChanged=true;
      }
       
     
View Full Code Here

    }while(hasChanged);
    return expr;
  }
  private Expression decisionOpCreate(ParserString raw,int operation, Expression left) throws SQLParserException {
    raw.removeSpace();
        return new Operation2(left, plusMinusOp(raw), operation);
  }
View Full Code Here

    while(!raw.isLast()) {
     
      // Plus Operation
      if (raw.forwardIfCurrent('+')) {
        raw.removeSpace();
                expr=new Operation2(expr, modOp(raw), Operation.OPERATION2_PLUS);
      }
      // Minus Operation
      else if (raw.forwardIfCurrent('-')) {
        raw.removeSpace();
                expr=new Operation2(expr, modOp(raw), Operation.OPERATION2_MINUS);
      }
      else break;
    }
    return expr;
  }
View Full Code Here

    Expression expr = divMultiOp(raw);
   
    // Modulus Operation
    while(raw.forwardIfCurrent('%')) {
      raw.removeSpace();
            expr=new Operation2(expr, divMultiOp(raw), Operation.OPERATION2_MOD);
    }
    return expr;
  }
View Full Code Here

    Expression expr = expoOp(raw);
    while (!raw.isLast()) {
        // Multiply Operation
        if(raw.forwardIfCurrent('*')) {
                    raw.removeSpace();
                    expr=new Operation2(expr, expoOp(raw), Operation.OPERATION2_MULTIPLY);
        }
        // Divide Operation
        else if (raw.forwardIfCurrent('/')) {
          raw.removeSpace();
                    expr=new Operation2(expr, expoOp(raw), Operation.OPERATION2_DIVIDE);
        }
        else {
          break;
        }
     
View Full Code Here

    Expression exp = negateMinusOp(raw);

    // Modulus Operation
    while(raw.forwardIfCurrent('^')) {
      raw.removeSpace();
            exp=new Operation2(exp, negateMinusOp(raw),Operation.OPERATION2_EXP);
    }
    return exp;
  }
View Full Code Here

  }

  private Object executeOperation(PageContext pc,SQL sql,Query qr, Operation operation, int row) throws PageException {
   
    if(operation instanceof Operation2) {
      Operation2 op2=(Operation2) operation;
     
      switch(op2.getOperator()){
      case Operation.OPERATION2_AND:    return executeAnd(pc,sql,qr,op2,row);
      case Operation.OPERATION2_OR:    return executeOr(pc,sql,qr,op2,row);
      case Operation.OPERATION2_XOR:    return executeXor(pc,sql,qr,op2,row);
      case Operation.OPERATION2_EQ:    return executeEQ(pc,sql,qr,op2,row);
      case Operation.OPERATION2_NEQ:    return executeNEQ(pc,sql,qr,op2,row);
View Full Code Here

TOP

Related Classes of railo.runtime.sql.exp.op.Operation2

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.