当前位置: 首页>>代码示例>>Java>>正文


Java AllColumns类代码示例

本文整理汇总了Java中net.sf.jsqlparser.statement.select.AllColumns的典型用法代码示例。如果您正苦于以下问题:Java AllColumns类的具体用法?Java AllColumns怎么用?Java AllColumns使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AllColumns类属于net.sf.jsqlparser.statement.select包,在下文中一共展示了AllColumns类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createProjections

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
private List<ProjectionItem> createProjections(PlainSelect plainSelect, List<ProjectionItem> fromProjections) throws AmbiguousCoalesceException {
	List<ProjectionItem> projections = Lists.newArrayList();

	List<SelectItem> selectItems = plainSelect.getSelectItems();

	for (SelectItem selectItem : selectItems) {
		if (selectItem instanceof AllColumns) {
			addAllFromProjections(fromProjections, projections);
		} else if (selectItem instanceof AllTableColumns) {
			AllTableColumns allTableColumns = (AllTableColumns) selectItem;
			Table table = allTableColumns.getTable();

			addAllFromProjectionsOfTable(fromProjections, projections, table);
		} else if (selectItem instanceof SelectExpressionItem) {
			SelectExpressionItem selectExpressionItem = (SelectExpressionItem) selectItem;
			Expression expression = selectExpressionItem.getExpression();

			addExpressionProjection(fromProjections, projections, expression, selectExpressionItem.getAlias());
		}
	}
	
	return projections;
}
 
开发者ID:sebastianoe,项目名称:s4j,代码行数:24,代码来源:QueryTypeExtractor.java

示例2: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns)
{
   for (SqlTable table : mFromTables) {
      for (SqlColumn column : table.getColumns()) {
         mSelectItems.add(new SqlSelectItem(column));
      }
   }
}
 
开发者ID:obidea,项目名称:semantika,代码行数:10,代码来源:SelectItemHandler.java

示例3: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns)
{
	invalid = true;
	super.visit(allColumns);
}
 
开发者ID:olavloite,项目名称:spanner-jdbc,代码行数:7,代码来源:DMLWhereClauseVisitorAdapter.java

示例4: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
	throw new UnsupportedOperationException(NOT_SUPPORTED_YET); //To change body of generated methods, choose Tools | Templates.
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:AddAliasesVisitor.java

示例5: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
	throw new UnsupportedOperationException("Not supported yet.");
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:ConnectExpressionsVisitor.java

示例6: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
    buffer.append('*');
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:5,代码来源:SelectDeParser.java

示例7: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:4,代码来源:TablesNamesFinder.java

示例8: ItemList

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
final public ItemsList ItemList() throws ParseException {
      ItemsList itemsList = null;
      Table table = null;
  switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
  case 80:
    jj_consume_token(80);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case K_KEY:
    case K_NOT:
    case K_END:
    case K_NULL:
    case K_CASE:
    case K_BEGIN:
    case K_SELECT:
    case K_EXISTS:
    case K_REPLACE:
    case K_CAST:
    case S_DOUBLE:
    case S_INTEGER:
    case S_IDENTIFIER:
    case S_CHAR_LITERAL:
    case S_QUOTED_IDENTIFIER:
    case 80:
    case 84:
    case 96:
    case 97:
    case 100:
    case 102:
    case 103:
    case 104:
      if (jj_2_19(2147483647)) {
        itemsList = SubSelect();
      } else if (jj_2_20(2147483647)) {
        itemsList = ExpressionList();
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
      break;
    default:
      jj_la1[85] = jj_gen;
      ;
    }
    jj_consume_token(81);
    break;
  default:
    jj_la1[86] = jj_gen;
    if (jj_2_21(2147483647)) {
      table = Table();
              // Encode `x IN tableName` as `x in (SELECT * FROM tableName)`
                      SubSelect subSel = new SubSelect();
                      PlainSelect body = new PlainSelect();
                      subSel.setAlias(table.getName());
                      subSel.setSelectBody(body);
                      body.setFromItem(table);
                      body.setSelectItems(Arrays.asList(
                              new AllColumns()
                      ));
                      itemsList = subSel;
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
  }
          {if (true) return itemsList;}
  throw new Error("Missing return statement in function");
}
 
开发者ID:UBOdin,项目名称:jsqlparser,代码行数:68,代码来源:CCJSqlParser.java

示例9: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
public void visit(AllColumns allColumns) {
}
 
开发者ID:scouter-project,项目名称:scouter,代码行数:3,代码来源:TableFinder.java

示例10: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns arg0) {
}
 
开发者ID:coastland,项目名称:gsp-dba-maven-plugin,代码行数:4,代码来源:ViewAnalyzer.java

示例11: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
public void visit(AllColumns allColumns) {
    buffer.append(allColumns.getComment() != null ? allColumns.getComment() + " " + ExpressionDeParser.LINE_SEPARATOR : "").append("*");
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:SelectDeParser.java

示例12: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
    results.add(allColumns);
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:5,代码来源:ResultsFinder.java

示例13: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns)
{
   throw new SqlParserException("User query needs explicit select column statement"); //$NON-NLS-1$
}
 
开发者ID:obidea,项目名称:semantika,代码行数:6,代码来源:UserQueryHandler.java

示例14: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns ac) { }
 
开发者ID:valdasraps,项目名称:resthub,代码行数:3,代码来源:AbstractAllParser.java

示例15: visit

import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(PlainSelect ps) {

    // First collect FROM and JOIN items
    
    ps.getFromItem().accept(this);
    
    if (ps.getJoins() != null) {
        for (Join j : ps.getJoins()) {
            j.getRightItem().accept(this);
            if (j.getOnExpression() != null) {
                j.getOnExpression().accept(this);
            }
            if (j.getUsingColumns() != null) {
                for (Iterator it1 = j.getUsingColumns().iterator(); it1.hasNext();) {
                    ((Expression) it1.next()).accept(this);
                }
            }
        }
    }
    
   // Next iterate over SELECT, WHERE and ORDER BY items
    
    for (Iterator it = ps.getSelectItems().iterator(); it.hasNext();) {
        Object o = it.next();
        if (o instanceof SelectExpressionItem) {
            ((SelectExpressionItem) o).accept(this);
        }
        if (o instanceof AllColumns) {
            ((AllColumns) o).accept(this);
        }
        if (o instanceof AllTableColumns) {
            ((AllTableColumns) o).accept(this);
        }
    }

    if (ps.getWhere() != null) {
        ps.getWhere().accept(this);
    }
    
    if (ps.getOrderByElements() != null) {
        for (Iterator it = ps.getOrderByElements().iterator(); it.hasNext();) {
            ((OrderByElement) it.next()).accept(this);
        }
    }
    
    if (ps.getOracleHierarchical() != null) {
        ps.getOracleHierarchical().accept(this);
    }
    
}
 
开发者ID:valdasraps,项目名称:resthub,代码行数:52,代码来源:SqlParser.java


注:本文中的net.sf.jsqlparser.statement.select.AllColumns类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。