net.sf.jsqlparser.statement.SetStatement Java Examples

The following examples show how to use net.sf.jsqlparser.statement.SetStatement. 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: INodeSqlStatementVisitor.java    From NNAnalytics with 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 File: TableRenameVisitor.java    From compass with 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 File: TableVisitor.java    From DDF with Apache License 2.0 2 votes vote down vote up
@Override
public void visit(SetStatement setStatement) throws Exception {

}