net.sf.letsparty.parser
Class StatementParser
java.lang.Object
net.sf.letsparty.parser.StatementParser
- All Implemented Interfaces:
- net.sf.jsqlparser.statement.select.SelectVisitor, net.sf.jsqlparser.statement.StatementVisitor
- public class StatementParser
- extends java.lang.Object
- implements net.sf.jsqlparser.statement.StatementVisitor, net.sf.jsqlparser.statement.select.SelectVisitor
Retrieves the proper statementHandler based on the type of the statement (select, delete etc)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
private Configuration config
columnAliasVisitor
private ColumnAliasVisitor columnAliasVisitor
columnSynonymsVisitor
private ColumnSynonymsVisitor columnSynonymsVisitor
partTableVisitor
private PartTableVisitor partTableVisitor
partExpressionVisitor
private PartExpressionVisitor partExpressionVisitor
statementHandler
private java.sql.PreparedStatement statementHandler
connection
private Connection connection
query
private java.lang.String query
StatementParser
public StatementParser(Configuration config,
java.lang.String query,
Connection connection)
isAnyPartitionedTableInStatement
public boolean isAnyPartitionedTableInStatement()
visit
public void visit(net.sf.jsqlparser.statement.select.Select selectStatement)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.StatementVisitor
visit
public void visit(net.sf.jsqlparser.statement.delete.Delete delete)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.StatementVisitor
visit
public void visit(net.sf.jsqlparser.statement.update.Update update)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.StatementVisitor
visit
public void visit(net.sf.jsqlparser.statement.insert.Insert insert)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.StatementVisitor
visit
public void visit(net.sf.jsqlparser.statement.select.PlainSelect plainSelect)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.select.SelectVisitor
visit
public void visit(net.sf.jsqlparser.statement.select.Union union)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.select.SelectVisitor
getColumnAliasVisitor
public ColumnAliasVisitor getColumnAliasVisitor()
getColumnSynonymsVisitor
public ColumnSynonymsVisitor getColumnSynonymsVisitor()
getPartTableVisitor
public PartTableVisitor getPartTableVisitor()
getPartExpressionVisitor
public PartExpressionVisitor getPartExpressionVisitor()
getStatementHandler
public java.sql.PreparedStatement getStatementHandler()
visit
public void visit(net.sf.jsqlparser.statement.drop.Drop drop)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.StatementVisitor
visit
public void visit(net.sf.jsqlparser.statement.replace.Replace replace)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.StatementVisitor
visit
public void visit(net.sf.jsqlparser.statement.truncate.Truncate truncate)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.StatementVisitor
visit
public void visit(net.sf.jsqlparser.statement.create.table.CreateTable createTable)
- Specified by:
visit
in interface net.sf.jsqlparser.statement.StatementVisitor