Java Code Examples for net.sf.jsqlparser.statement.SetStatement

The following examples show how to use net.sf.jsqlparser.statement.SetStatement. 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: NNAnalytics   Source File: INodeSqlStatementVisitor.java    License: Apache License 2.0 6 votes vote down vote up
@Override
public void visit(SetStatement setStatement) {
  String name = setStatement.getName();
  switch (name) {
    case "parentDirDepth":
      parentDirDepth =
          Integer.parseInt(setStatement.getExpression().getASTNode().jjtGetValue().toString());
      return;
    case "timeRange":
      timeRange = setStatement.getExpression().getASTNode().jjtGetValue().toString();
      return;
    default:
      throw new IllegalArgumentException(
          "Tried to set unknown variable: "
              + name
              + ".\n"
              + "Available options are parentDirDepth = <int> and "
              + "timeRange = <daily|weekly|monthly|yearly>.");
  }
}
 
Example 2
Source Project: compass   Source File: TableRenameVisitor.java    License: Apache License 2.0 4 votes vote down vote up
@Override
public void visit(SetStatement set) 
{
    throw new UnsupportedOperationException("Not supported yet."); 
}
 
Example 3
Source Project: DDF   Source File: TableVisitor.java    License: Apache License 2.0 2 votes vote down vote up
@Override
public void visit(SetStatement setStatement) throws Exception {

}