Package net.sf.jsqlparser.expression

Examples of net.sf.jsqlparser.expression.LongValue


        default:
          jj_la1[113] = jj_gen;
          ;
        }
        token = jj_consume_token(S_INTEGER);
                                                                                                               retval = new LongValue(tmp+token.image);
      } else if (jj_2_29(2)) {
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case 94:
        case 95:
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
View Full Code Here


 
  protected ObjectExpression processExpression(Expression e,JSONObject item) throws JSONException{
    ObjectExpression oe = new ObjectExpression();
    Object columnObj = invokeMethod(e, "getLeftExpression");
    if(columnObj instanceof LongValue){
      LongValue longValue = (LongValue)columnObj;
      oe.setColumnname(longValue.getStringValue());
    }else{
      Column column = (Column)invokeMethod(e, "getLeftExpression");   
      oe.setColumnname(column.getColumnName());
    }
    if (e instanceof BinaryExpression) {
View Full Code Here

    Select select = (Select) CCJSqlParserUtil.parse("select a from mytable");
    SelectUtils.addExpression(select, new Column("b"));
    assertEquals("SELECT a, b FROM mytable", select.toString());
   
    Addition add = new Addition();
    add.setLeftExpression(new LongValue(5));
    add.setRightExpression(new LongValue(6));
    SelectUtils.addExpression(select, add);
   
    assertEquals("SELECT a, b, 5 + 6 FROM mytable", select.toString());
  }
View Full Code Here

TOP

Related Classes of net.sf.jsqlparser.expression.LongValue

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.