Java Code Examples for net.sf.jsqlparser.statement.replace.Replace

The following examples show how to use net.sf.jsqlparser.statement.replace.Replace. 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
Source Project: compass   Source File: TableRenameVisitor.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void visit(Replace replace)
{
    replace.getTable().accept(this);
    
    if (replace.getExpressions() != null) 
    {
        for (Expression expression : replace.getExpressions()) 
        {
            expression.accept(this);
        }
    }
    if (replace.getItemsList() != null)
    {
        replace.getItemsList().accept(this);
    }
}
 
Example 2
Source Project: evosql   Source File: TablesNamesFinder.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public void visit(Replace replace) {
    tables.add(replace.getTable().getName());
    if (replace.getExpressions() != null) {
        for (Expression expression : replace.getExpressions()) {
            expression.accept(this);
        }
    }
    if (replace.getItemsList() != null) {
        replace.getItemsList().accept(this);
    }
}
 
Example 3
Source Project: jobson   Source File: AllColumnRefsFinder.java    License: Apache License 2.0 4 votes vote down vote up
public void visit(Replace replace) {
    throw new UnsupportedSQLFeatureException("Feature Replace not supported");
}
 
Example 4
Source Project: foxtrot   Source File: SqlElementVisitor.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void visit(Replace replace) {
    //supported construct
}
 
Example 5
Source Project: DDF   Source File: TableVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(Replace replace) throws Exception {

}