Package net.sf.jsqlparser.statement.select

Examples of net.sf.jsqlparser.statement.select.WithItem


    ExpressionDeParser expressionDeParser = new ExpressionDeParser(selectDeParser, buffer);
    selectDeParser.setExpressionVisitor(expressionDeParser);
    if (select.getWithItemsList() != null && !select.getWithItemsList().isEmpty()) {
      buffer.append("WITH ");
      for (Iterator iter = select.getWithItemsList().iterator(); iter.hasNext();) {
        WithItem withItem = (WithItem)iter.next();
        buffer.append(withItem);
        if (iter.hasNext())
          buffer.append(",");
        buffer.append(" ");
      }
View Full Code Here


    throw new Error("Missing return statement in function");
  }

  final public List WithList() throws ParseException {
        ArrayList withItemsList = new ArrayList();
        WithItem with = null;
    jj_consume_token(K_WITH);
    with = WithItem();
                                   withItemsList.add(with);
    label_9:
    while (true) {
View Full Code Here

          {if (true) return withItemsList;}
    throw new Error("Missing return statement in function");
  }

  final public WithItem WithItem() throws ParseException {
        WithItem with = new WithItem();
        String name = null;
        List selectItems = null;
        SelectBody selectBody = null;
    name = RelObjectName();
                                with.setName(name);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case 79:
      jj_consume_token(79);
      selectItems = SelectItemsList();
      jj_consume_token(80);
                                                   with.setWithItemList(selectItems);
      break;
    default:
      jj_la1[48] = jj_gen;
      ;
    }
    jj_consume_token(K_AS);
    jj_consume_token(79);
    selectBody = SelectBody();
                                         with.setSelectBody(selectBody);
    jj_consume_token(80);
           {if (true) return with;}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

        ExpressionDeParser expressionDeParser = new ExpressionDeParser(selectDeParser, buffer);
        selectDeParser.setExpressionVisitor(expressionDeParser);
        if (select.getWithItemsList() != null && !select.getWithItemsList().isEmpty()) {
            buffer.append("WITH ");
            for (Iterator<WithItem> iter = select.getWithItemsList().iterator(); iter.hasNext();) {
                WithItem withItem = iter.next();
                withItem.accept(selectDeParser);
                if (iter.hasNext()) {
                    buffer.append(",");
                }
                buffer.append(" ");
            }
View Full Code Here

TOP

Related Classes of net.sf.jsqlparser.statement.select.WithItem

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.