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


Java AllTableColumns类代码示例

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


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

示例1: createProjections

import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的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.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns allTableColumns) {
    Table table = allTableColumns.getTable();
    if (table != null) {
        String name = table.getName();
        if (name != null) {
            table.setName(name.toLowerCase());
        }
    }
}
 
开发者ID:diennea,项目名称:herddb,代码行数:11,代码来源:JdbcQueryRewriter.java

示例3: AllTableColumns

import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
final public AllTableColumns AllTableColumns() throws ParseException {
      Table table = null;
  table = Table();
  jj_consume_token(82);
  jj_consume_token(83);
              {if (true) return new AllTableColumns(table);}
  throw new Error("Missing return statement in function");
}
 
开发者ID:UBOdin,项目名称:jsqlparser,代码行数:9,代码来源:CCJSqlParser.java

示例4: AllTableColumns

import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
final public AllTableColumns AllTableColumns() throws ParseException {Table table = null;
    table = Table();
    jj_consume_token(DOT);
    jj_consume_token(MULTIPLY);
{if ("" != null) return new AllTableColumns(table);}
    throw new Error("Missing return statement in function");
  }
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:8,代码来源:CCJSqlParser.java

示例5: visit

import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns allTableColumns)
{
   try {
      String tableName = allTableColumns.getTable().getFullyQualifiedName();
      for (SqlColumn column : mFromTables.getColumns(tableName)) {
         mSelectItems.add(new SqlSelectItem(column));
      }
   }
   catch (SqlParserException e) {
      throw new SemantikaRuntimeException(e);
   }
}
 
开发者ID:obidea,项目名称:semantika,代码行数:14,代码来源:SelectItemHandler.java

示例6: visit

import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns atc) {
    String alias = atc.getTable().getName();
    if (!selectDef.getTables().containsKey(alias)) {
        throw new QueryException("Table alias %s not defined", alias);
    }
    
    SelectDef td = selectDef.getTables().get(alias);
    selectDef.getColumns().addAll(td.getColumns());
}
 
开发者ID:valdasraps,项目名称:resthub,代码行数:11,代码来源:CheckSelectParser.java

示例7: visit

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

示例8: AllTableColumns

import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
final public AllTableColumns AllTableColumns() throws ParseException {
/* @bgen(jjtree) AllTableColumns */
      SimpleNode jjtn000 = new SimpleNode(JJTALLTABLECOLUMNS);
      boolean jjtc000 = true;
      jjtree.openNodeScope(jjtn000);
      Table table = null;
      try {
          table = Table();
          jj_consume_token(169);
          jj_consume_token(168);
          jjtree.closeNodeScope(jjtn000, true);
          jjtc000 = false;
          {
              if (true)
                  return new AllTableColumns(table);
          }
      } catch (Throwable jjte000) {
          if (jjtc000) {
              jjtree.clearNodeScope(jjtn000);
              jjtc000 = false;
          } else {
              jjtree.popNode();
          }
          if (jjte000 instanceof RuntimeException) {
              {
                  if (true)
                      throw (RuntimeException) jjte000;
              }
          }
          if (jjte000 instanceof ParseException) {
              {
                  if (true)
                      throw (ParseException) jjte000;
              }
          }
          {
              if (true)
                  throw (Error) jjte000;
          }
      } finally {
          if (jjtc000) {
              jjtree.closeNodeScope(jjtn000, true);
          }
      }
      throw new Error("Missing return statement in function");
  }
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:47,代码来源:CCJSqlParser.java

示例9: visit

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

示例10: visit

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

示例11: visit

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

示例12: visit

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

示例13: visit

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

示例14: visit

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

示例15: visit

import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
public void visit(AllTableColumns allTableColumns) {
    buffer.append(allTableColumns.getTable().getWholeTableName()).append(".*");
}
 
开发者ID:marat-gainullin,项目名称:platypus-js,代码行数:4,代码来源:SelectDeParser.java


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