net.sf.letsparty.statement
Class UpdateHandler

java.lang.Object
  extended bynet.sf.letsparty.driver.BasicPreparedStatement
      extended bynet.sf.letsparty.statement.UpdateHandler
All Implemented Interfaces:
Permutable, java.sql.PreparedStatement, java.sql.Statement

public class UpdateHandler
extends BasicPreparedStatement
implements Permutable


Field Summary
private  boolean atLeastOnePartitionedColumnInSet
           
private  java.lang.String colNames
           
private  java.util.List columnList
           
protected  int[] indexes
           
private  int jdbcParsInSetClause
           
protected  int numUpdates
           
private  int parIndex
           
protected  PartitionedTable partitionedTableToUpdate
           
protected  PartTableVisitor partTableVisitor
           
private  java.util.List simpleUpdates
           
protected  java.lang.String sqlQuery
           
private  java.util.List[] tableSuffixes
           
private  java.util.Map toIndexes
           
protected  net.sf.jsqlparser.statement.update.Update update
           
private  java.lang.String values
           
private  java.lang.String whereClause
           
protected  PartitionedExpression wherePartitionedExpression
           
 
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
UpdateHandler(PartTableVisitor partTableVisitor, net.sf.jsqlparser.statement.update.Update update, 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()
           
 void findColumnList()
           
 java.sql.ResultSet getGeneratedKeys()
           
 int[] getIndexes()
           
 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 onPermutation()
           
 
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

update

protected net.sf.jsqlparser.statement.update.Update update

partTableVisitor

protected PartTableVisitor partTableVisitor

sqlQuery

protected java.lang.String sqlQuery

indexes

protected int[] indexes

numUpdates

protected int numUpdates

partitionedTableToUpdate

protected PartitionedTable partitionedTableToUpdate

wherePartitionedExpression

protected PartitionedExpression wherePartitionedExpression

tableSuffixes

private java.util.List[] tableSuffixes

toIndexes

private java.util.Map toIndexes

columnList

private java.util.List columnList

whereClause

private java.lang.String whereClause

simpleUpdates

private java.util.List simpleUpdates

jdbcParsInSetClause

private int jdbcParsInSetClause

atLeastOnePartitionedColumnInSet

private boolean atLeastOnePartitionedColumnInSet

parIndex

private int parIndex

values

private java.lang.String values

colNames

private java.lang.String colNames
Constructor Detail

UpdateHandler

public UpdateHandler(PartTableVisitor partTableVisitor,
                     net.sf.jsqlparser.statement.update.Update update,
                     java.lang.String sqlQuery,
                     Connection connection)
Method Detail

findColumnList

public void findColumnList()
                    throws java.sql.SQLException
Throws:
java.sql.SQLException

executeUpdate

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

onPermutation

public void onPermutation()
                   throws LetsPartyException
Specified by:
onPermutation in interface Permutable
Throws:
LetsPartyException

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

getParameterMetaData

public java.sql.ParameterMetaData getParameterMetaData()
                                                throws java.sql.SQLException
Specified by:
getParameterMetaData 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

getMetaData

public java.sql.ResultSetMetaData getMetaData()
                                       throws java.sql.SQLException
Specified by:
getMetaData in interface java.sql.PreparedStatement
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

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

getMoreResults

public boolean getMoreResults()
                       throws java.sql.SQLException
Specified by:
getMoreResults 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

getMoreResults

public boolean getMoreResults(int arg0)
                       throws java.sql.SQLException
Specified by:
getMoreResults in interface java.sql.Statement
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

getGeneratedKeys

public java.sql.ResultSet getGeneratedKeys()
                                    throws java.sql.SQLException
Specified by:
getGeneratedKeys 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

getWarnings

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

getIndexes

public int[] getIndexes()
Specified by:
getIndexes in interface Permutable

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