本文整理汇总了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;
}
示例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));
}
}
}
示例3: visit
import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns)
{
invalid = true;
super.visit(allColumns);
}
示例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.
}
示例5: visit
import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
throw new UnsupportedOperationException("Not supported yet.");
}
示例6: visit
import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
buffer.append('*');
}
示例7: visit
import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
}
示例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");
}
示例9: visit
import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
public void visit(AllColumns allColumns) {
}
示例10: visit
import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns arg0) {
}
示例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("*");
}
示例12: visit
import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns allColumns) {
results.add(allColumns);
}
示例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$
}
示例14: visit
import net.sf.jsqlparser.statement.select.AllColumns; //导入依赖的package包/类
@Override
public void visit(AllColumns ac) { }
示例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);
}
}