Java Code Examples for net.sf.jsqlparser.statement.select.WithItem

The following examples show how to use net.sf.jsqlparser.statement.select.WithItem. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
public void visit(SubSelect subSelect) {
    if (subSelect.getWithItemsList() != null) {
        for (WithItem withItem : subSelect.getWithItemsList()) {
            withItem.accept(new SelectVisitorImpl());
        }
    }
    subSelect.getSelectBody().accept(new SelectVisitorImpl());
}
 
Example 2
Source Project: dynamic-add-date   Source File: AddDateInterceptor.java    License: MIT License 5 votes vote down vote up
@Override
public void visit(WithItem withItem) {
    if (index != -1) {
        withItem.getWithItemList().set(index, new SelectExpressionItem(new QuotationTimestampValue(columnValue)));
    } else {
        withItem.getWithItemList().add(new SelectExpressionItem(new QuotationTimestampValue(columnValue)));
    }
}
 
Example 3
Source Project: DataPermissionHelper   Source File: SelectVisitorImpl.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void visit(WithItem withItem) {
    withItem.getSelectBody().accept(new SelectVisitorImpl());
}
 
Example 4
Source Project: ddal   Source File: JSQLBaseVisitor.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void visit(WithItem withItem) {
    withItem.getSelectBody().accept(this);
}
 
Example 5
Source Project: quetzal   Source File: CTEToNestedQueryConverter.java    License: Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void visit(WithItem withItem) {
	if (withItem!=null) {
		replace(withItem.getSelectBody(), cteName2Def, placeHolderTables);
	}
}