net.sf.letsparty.statement
Class UpdateHandler
java.lang.Object
net.sf.letsparty.driver.BasicPreparedStatement
net.sf.letsparty.statement.UpdateHandler
- All Implemented Interfaces:
- Permutable, java.sql.PreparedStatement, java.sql.Statement
- public class UpdateHandler
- extends BasicPreparedStatement
- implements Permutable
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 |
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 |
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
UpdateHandler
public UpdateHandler(PartTableVisitor partTableVisitor,
net.sf.jsqlparser.statement.update.Update update,
java.lang.String sqlQuery,
Connection connection)
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