net.sf.letsparty.statement
Class InsertHandler

java.lang.Object
  extended bynet.sf.letsparty.driver.BasicPreparedStatement
      extended bynet.sf.letsparty.statement.InsertHandler
All Implemented Interfaces:
net.sf.jsqlparser.expression.operators.relational.ItemsListVisitor, java.sql.PreparedStatement, java.sql.Statement

public class InsertHandler
extends BasicPreparedStatement
implements net.sf.jsqlparser.expression.operators.relational.ItemsListVisitor


Field Summary
private  boolean errorParsing
           
protected  net.sf.jsqlparser.statement.insert.Insert insert
           
private  int jdbcParsInSetClause
           
private  java.lang.String oldTable
           
private  boolean parsedValues
           
protected  PartTableVisitor partTableVisitor
           
protected  java.lang.String sqlQuery
           
private  java.util.List values
           
 
Fields inherited from class net.sf.letsparty.driver.BasicPreparedStatement
connection, jdbcParsHandler
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Constructor Summary
InsertHandler(PartTableVisitor partTableVisitor, net.sf.jsqlparser.statement.insert.Insert insert, java.lang.String sqlQuery, Connection connection)
           
 
Method Summary
 void addBatch()
           
 void addBatch(java.lang.String arg0)
           
 void cancel()
           
 void clearBatch()
           
 void clearWarnings()
           
 void close()
           
 boolean execute()
           
 int[] executeBatch()
           
 java.sql.ResultSet executeQuery()
           
 java.sql.ResultSet executeQuery(java.lang.String arg0)
           
 int executeUpdate()
           
 java.sql.ResultSet getGeneratedKeys()
           
 java.sql.ResultSetMetaData getMetaData()
           
 boolean getMoreResults()
           
 boolean getMoreResults(int arg0)
           
 java.sql.ParameterMetaData getParameterMetaData()
           
 java.sql.ResultSet getResultSet()
           
 int getResultSetConcurrency()
           
 int getResultSetHoldability()
           
 int getResultSetType()
           
 int getUpdateCount()
           
 java.sql.SQLWarning getWarnings()
           
 void visit(net.sf.jsqlparser.expression.operators.relational.ExpressionList expressionList)
           
 void visit(net.sf.jsqlparser.statement.select.SubSelect subSelect)
           
 
Methods inherited from class net.sf.letsparty.driver.BasicPreparedStatement
clearParameters, constructPartitionedTableSuffixList, constructTableListOfTables, execute, execute, execute, execute, executeChangingName, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getMaxFieldSize, getMaxRows, getQueryTimeout, setArray, setAsciiStream, setBigDecimal, setBinaryStream, setBlob, setBoolean, setByte, setBytes, setCharacterStream, setClob, setCursorName, setDate, setDate, setDouble, setEscapeProcessing, setFetchDirection, setFetchSize, setFloat, setInt, setLong, setMaxFieldSize, setMaxRows, setNull, setNull, setObject, setObject, setObject, setParameters, setParameters, setParameters, setQueryTimeout, setRef, setShort, setString, setTime, setTime, setTimestamp, setTimestamp, setUnicodeStream, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

insert

protected net.sf.jsqlparser.statement.insert.Insert insert

partTableVisitor

protected PartTableVisitor partTableVisitor

sqlQuery

protected java.lang.String sqlQuery

values

private java.util.List values

oldTable

private java.lang.String oldTable

errorParsing

private boolean errorParsing

jdbcParsInSetClause

private int jdbcParsInSetClause

parsedValues

private boolean parsedValues
Constructor Detail

InsertHandler

public InsertHandler(PartTableVisitor partTableVisitor,
                     net.sf.jsqlparser.statement.insert.Insert insert,
                     java.lang.String sqlQuery,
                     Connection connection)
Method Detail

addBatch

public void addBatch()
              throws java.sql.SQLException
Specified by:
addBatch in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

execute

public boolean execute()
                throws java.sql.SQLException
Specified by:
execute in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

executeQuery

public java.sql.ResultSet executeQuery()
                                throws java.sql.SQLException
Specified by:
executeQuery in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

executeUpdate

public int executeUpdate()
                  throws java.sql.SQLException
Specified by:
executeUpdate in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

visit

public void visit(net.sf.jsqlparser.expression.operators.relational.ExpressionList expressionList)
Specified by:
visit in interface net.sf.jsqlparser.expression.operators.relational.ItemsListVisitor

getMetaData

public java.sql.ResultSetMetaData getMetaData()
                                       throws java.sql.SQLException
Specified by:
getMetaData in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

getParameterMetaData

public java.sql.ParameterMetaData getParameterMetaData()
                                                throws java.sql.SQLException
Specified by:
getParameterMetaData in interface java.sql.PreparedStatement
Throws:
java.sql.SQLException

addBatch

public void addBatch(java.lang.String arg0)
              throws java.sql.SQLException
Specified by:
addBatch in interface java.sql.Statement
Throws:
java.sql.SQLException

cancel

public void cancel()
            throws java.sql.SQLException
Specified by:
cancel in interface java.sql.Statement
Throws:
java.sql.SQLException

clearBatch

public void clearBatch()
                throws java.sql.SQLException
Specified by:
clearBatch in interface java.sql.Statement
Throws:
java.sql.SQLException

clearWarnings

public void clearWarnings()
                   throws java.sql.SQLException
Specified by:
clearWarnings in interface java.sql.Statement
Throws:
java.sql.SQLException

executeBatch

public int[] executeBatch()
                   throws java.sql.SQLException
Specified by:
executeBatch in interface java.sql.Statement
Throws:
java.sql.SQLException

getGeneratedKeys

public java.sql.ResultSet getGeneratedKeys()
                                    throws java.sql.SQLException
Specified by:
getGeneratedKeys in interface java.sql.Statement
Throws:
java.sql.SQLException

getMoreResults

public boolean getMoreResults()
                       throws java.sql.SQLException
Specified by:
getMoreResults in interface java.sql.Statement
Throws:
java.sql.SQLException

getMoreResults

public boolean getMoreResults(int arg0)
                       throws java.sql.SQLException
Specified by:
getMoreResults in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSet

public java.sql.ResultSet getResultSet()
                                throws java.sql.SQLException
Specified by:
getResultSet in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSetConcurrency

public int getResultSetConcurrency()
                            throws java.sql.SQLException
Specified by:
getResultSetConcurrency in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSetHoldability

public int getResultSetHoldability()
                            throws java.sql.SQLException
Specified by:
getResultSetHoldability in interface java.sql.Statement
Throws:
java.sql.SQLException

getResultSetType

public int getResultSetType()
                     throws java.sql.SQLException
Specified by:
getResultSetType in interface java.sql.Statement
Throws:
java.sql.SQLException

getUpdateCount

public int getUpdateCount()
                   throws java.sql.SQLException
Specified by:
getUpdateCount in interface java.sql.Statement
Throws:
java.sql.SQLException

getWarnings

public java.sql.SQLWarning getWarnings()
                                throws java.sql.SQLException
Specified by:
getWarnings in interface java.sql.Statement
Throws:
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
Specified by:
close in interface java.sql.Statement
Throws:
java.sql.SQLException

executeQuery

public java.sql.ResultSet executeQuery(java.lang.String arg0)
                                throws java.sql.SQLException
Specified by:
executeQuery in interface java.sql.Statement
Throws:
java.sql.SQLException

visit

public void visit(net.sf.jsqlparser.statement.select.SubSelect subSelect)
Specified by:
visit in interface net.sf.jsqlparser.expression.operators.relational.ItemsListVisitor