Package net.sf.jsqlparser.statement.select

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


    this.expressionVisitor = expressionVisitor;
  }

  public void visit(PlainSelect plainSelect) {
    buffer.append("SELECT ");
    Top top = plainSelect.getTop();
    if (top != null)
      top.toString();
    if (plainSelect.getDistinct() != null) {
      buffer.append("DISTINCT ");
      if (plainSelect.getDistinct().getOnSelectItems() != null) {
        buffer.append("ON (");
        for (Iterator iter = plainSelect.getDistinct().getOnSelectItems().iterator(); iter.hasNext();) {
View Full Code Here


        Expression where = null;
        List orderByElements;
        List groupByColumnReferences = null;
        Expression having = null;
        Limit limit = null;
        Top top = null;
    jj_consume_token(K_SELECT);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case K_ALL:
    case K_DISTINCT:
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
View Full Code Here

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

  final public Top Top() throws ParseException {
        Top top = new Top();
        Token token = null;
    jj_consume_token(K_TOP);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case S_INTEGER:
      token = jj_consume_token(S_INTEGER);
                                    top.setRowCount(Long.parseLong(token.image));
      break;
    case 83:
      jj_consume_token(83);
                      top.setRowCountJdbcParameter(true);
      break;
    default:
      jj_la1[78] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
View Full Code Here

TOP

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

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.