本文整理汇总了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;
}
示例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());
}
}
}
示例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");
}
示例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");
}
示例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);
}
}
示例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());
}
示例7: visit
import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns allTableColumns)
{
invalid = true;
super.visit(allTableColumns);
}
示例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");
}
示例9: visit
import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns allTableColumns) {
throw new UnsupportedOperationException(NOT_SUPPORTED_YET);
}
示例10: visit
import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns allTableColumns) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例11: visit
import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns allTableColumns) {
buffer.append(allTableColumns.getTable().getFullyQualifiedName()).append(".*");
}
示例12: visit
import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns allTableColumns) {
}
示例13: visit
import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
public void visit(AllTableColumns allTableColumns) {
}
示例14: visit
import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
@Override
public void visit(AllTableColumns arg0) {
}
示例15: visit
import net.sf.jsqlparser.statement.select.AllTableColumns; //导入依赖的package包/类
public void visit(AllTableColumns allTableColumns) {
buffer.append(allTableColumns.getTable().getWholeTableName()).append(".*");
}