Package net.sf.jsqlparser.statement.select

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


  final public AllTableColumns AllTableColumns() throws ParseException {
        Table table = null;
    table = Table();
    jj_consume_token(81);
    jj_consume_token(82);
                {if (true) return new AllTableColumns(table);}
    throw new Error("Missing return statement in function");
  }
View Full Code Here


    public void visit(AllColumns allColumns) {
        this.qualifiedItems = Collections.singletonList(allColumns);
    }

    public void visit(AllTableColumns allTableColumns) {
        AllTableColumns qualified = new AllTableColumns();

        Table qt = allTableColumns.getTable();
        Table unaliasedTable = (Table) tableAliases.get(qt.getName());

        if (unaliasedTable == null) {
            // not an aliased table, qualify it
            qt = TableQualifier.qualify(session, allTableColumns.getTable());
        } else {
            // AllTableColumns is refering to an aliased table in the FROM
            // clause,
            // replace its table by the original one to get rid of the alias
            qt = unaliasedTable;
        }

        qualified.setTable(qt);

        String tableName = qt.getSchemaName() + "." + qt.getName();
        SeColumnDefinition[] cols;
        try {
            cols = session.describe(tableName);
View Full Code Here

        for (Iterator it = selectItems.iterator(); it.hasNext();) {
            item = (SelectItem) it.next();
            if (item instanceof AllColumns) {
                continue;
            } else if (item instanceof AllTableColumns) {
                AllTableColumns allTableCols = (AllTableColumns) item;
                Table table = allTableCols.getTable();
                List tableColNames = getTableColumns(session, table);
                colNames.addAll(tableColNames);
            } else if (item instanceof SelectExpressionItem) {
                String stringItem = item.toString();
                colNames.add(stringItem);
View Full Code Here

TOP

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

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.