net.sf.letsparty.parser
Class StatementParser

java.lang.Object
  extended bynet.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)


Field Summary
private  ColumnAliasVisitor columnAliasVisitor
           
private  ColumnSynonymsVisitor columnSynonymsVisitor
           
private  Configuration config
           
private  Connection connection
           
private  PartExpressionVisitor partExpressionVisitor
           
private  PartTableVisitor partTableVisitor
           
private  java.lang.String query
           
private  java.sql.PreparedStatement statementHandler
           
 
Constructor Summary
StatementParser(Configuration config, java.lang.String query, Connection connection)
           
 
Method Summary
 ColumnAliasVisitor getColumnAliasVisitor()
           
 ColumnSynonymsVisitor getColumnSynonymsVisitor()
           
 PartExpressionVisitor getPartExpressionVisitor()
           
 PartTableVisitor getPartTableVisitor()
           
 java.sql.PreparedStatement getStatementHandler()
           
 boolean isAnyPartitionedTableInStatement()
           
 void visit(net.sf.jsqlparser.statement.create.table.CreateTable createTable)
           
 void visit(net.sf.jsqlparser.statement.delete.Delete delete)
           
 void visit(net.sf.jsqlparser.statement.drop.Drop drop)
           
 void visit(net.sf.jsqlparser.statement.insert.Insert insert)
           
 void visit(net.sf.jsqlparser.statement.select.PlainSelect plainSelect)
           
 void visit(net.sf.jsqlparser.statement.replace.Replace replace)
           
 void visit(net.sf.jsqlparser.statement.select.Select selectStatement)
           
 void visit(net.sf.jsqlparser.statement.truncate.Truncate truncate)
           
 void visit(net.sf.jsqlparser.statement.select.Union union)
           
 void visit(net.sf.jsqlparser.statement.update.Update update)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

StatementParser

public StatementParser(Configuration config,
                       java.lang.String query,
                       Connection connection)
Method Detail

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