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

The following examples show how to use net.sf.jsqlparser.statement.select.WithItem. 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
Source File: ExpressionVisitorImpl.java    From DataPermissionHelper with Apache License 2.0 5 votes vote down vote up
@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 File: AddDateInterceptor.java    From dynamic-add-date with 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 File: SelectVisitorImpl.java    From DataPermissionHelper with Apache License 2.0 4 votes vote down vote up
@Override
public void visit(WithItem withItem) {
    withItem.getSelectBody().accept(new SelectVisitorImpl());
}
 
Example #4
Source File: JSQLBaseVisitor.java    From ddal with Apache License 2.0 4 votes vote down vote up
@Override
public void visit(WithItem withItem) {
    withItem.getSelectBody().accept(this);
}
 
Example #5
Source File: CTEToNestedQueryConverter.java    From quetzal with 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);
	}
}