for (int i = 0; i < insert.getSetColumns().size(); i++) { Column column = insert.getSetColumns().get(i); column.accept(expressionVisitor);
@Override public void visit(PivotXml pivot) { for (FunctionItem item : pivot.getFunctionItems()) { item.getFunction().accept(this); } for (Column col : pivot.getForColumns()) { col.accept(this); } if (pivot.getInSelect() != null && selectVisitor != null) { pivot.getInSelect().accept(selectVisitor); } }
@Override public void visit(Pivot pivot) { for (FunctionItem item : pivot.getFunctionItems()) { item.getFunction().accept(this); } for (Column col : pivot.getForColumns()) { col.accept(this); } if (pivot.getSingleInItems() != null) { for (SelectExpressionItem item : pivot.getSingleInItems()) { item.accept(this); } } if (pivot.getMultiInItems() != null) { for (ExpressionListItem item : pivot.getMultiInItems()) { item.getExpressionList().accept(this); } } }
public void visit(TextSearchMatch match) { match.getColumn().accept(this); }
@Override public void visit(Column tableColumn) { tableColumn.accept(selectNavigator.getReferenceNavigator()); }
/** * De-parse the text matching expression. * * @param match */ public void visit(TextSearchMatch match) { log.debug("visit(TextSearchMatch) " + match); if (match.isNegate()) buffer.append("NOT ("); match.getColumn().accept(this); buffer.append(" @@ "); buffer.append("'").append(match.getQuery()).append("'::tsquery"); if (match.isNegate()) buffer.append(")"); }
for (int i = 0; i < insert.getSetColumns().size(); i++) { Column column = insert.getSetColumns().get(i); column.accept(expressionVisitor);
@Override public void visit(PivotXml pivot) { for (FunctionItem item : pivot.getFunctionItems()) { item.getFunction().accept(this); } for (Column col : pivot.getForColumns()) { col.accept(this); } if (pivot.getInSelect() != null && selectVisitor != null) { pivot.getInSelect().accept(selectVisitor); } }
@SuppressWarnings("unchecked") protected void navigateJoins() { PlainSelect ps = this.plainSelect; List<Join> joins = ps.getJoins(); if (joins != null) { for (Join join : joins) { FromItem fromItem = join.getRightItem(); if (fromItem instanceof Table) { Table rightTable = (Table) join.getRightItem(); rightTable.accept(this.fromItemNavigator); if (join.getOnExpression() != null) join.getOnExpression().accept(this.expressionNavigator); List<Column> columns = join.getUsingColumns(); if (columns != null) for (Column column : columns) column.accept(this.expressionNavigator); } else if (fromItem instanceof SubSelect) throw new UnsupportedOperationException("sub-select not supported in FROM clause."); } } }
@Override public void visit(Update s) { for (Table table : s.getTables()) { visit(table); } if (s.getColumns() != null) { s.getColumns().forEach(c -> { c.accept(this); }); } if (s.getExpressions() != null) { s.getExpressions().forEach(e -> e.accept(this)); } if (s.getOrderByElements() != null) { s.getOrderByElements().forEach(o -> { o.accept(this); }); } if (s.getWhere() != null) { s.getWhere().accept(this); } if (s.getReturningExpressionList() != null) { s.getReturningExpressionList().forEach(o -> { o.accept(this); }); } }
@Override public void visit(Insert s) { visit(s.getTable()); if (s.getColumns() != null) { s.getColumns().forEach(c -> { c.accept(this); }); } if (s.getItemsList() != null) { s.getItemsList().accept(this); } if (s.getSelect() != null) { s.getSelect().accept(this); } if (s.getReturningExpressionList() != null) { s.getReturningExpressionList().forEach(o -> { o.accept(this); }); } }
@Override public void visit(Pivot pivot) { for (FunctionItem item : pivot.getFunctionItems()) { item.getFunction().accept(this); } for (Column col : pivot.getForColumns()) { col.accept(this); } if (pivot.getSingleInItems() != null) { for (SelectExpressionItem item : pivot.getSingleInItems()) { item.accept(this); } } if (pivot.getMultiInItems() != null) { for (ExpressionListItem item : pivot.getMultiInItems()) { item.getExpressionList().accept(this); } } }