net.sf.jsqlparser.statement.Statements Java Examples
The following examples show how to use
net.sf.jsqlparser.statement.Statements.
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: SqlParser.java From NNAnalytics with Apache License 2.0 | 6 votes |
/** * The main method to parse the SQL statement into an NNA-understandable query. * * @param statement The SQL statement. * @throws JSQLParserException - if sql is unreadable */ public void parse(String statement) throws JSQLParserException { Statements statements = CCJSqlParserUtil.parseStatements(statement); INodeSqlStatementVisitor inodeVisitor = new INodeSqlStatementVisitor(); statements.accept(inodeVisitor); set = inodeVisitor.set.toLowerCase(); filters = String.join(",", inodeVisitor.filters); sum = inodeVisitor.sum; find = inodeVisitor.find; type = inodeVisitor.type; limit = inodeVisitor.limit; sortAscending = inodeVisitor.sortAscending; sortDescending = inodeVisitor.sortDescending; parentDirDepth = inodeVisitor.parentDirDepth; timeRange = inodeVisitor.timeRange; }
Example #2
Source File: TableRenameVisitor.java From compass with Apache License 2.0 | 4 votes |
@Override public void visit(Statements stmts) { throw new UnsupportedOperationException("Not supported yet."); }
Example #3
Source File: SqlElementVisitor.java From foxtrot with Apache License 2.0 | 4 votes |
@Override public void visit(Statements stmts) { //supported construct }
Example #4
Source File: TableVisitor.java From DDF with Apache License 2.0 | 2 votes |
@Override public void visit(Statements statements) throws Exception { }