public class UpdateCountDataHandler extends FilterDataHandler
Note: MySql does not return the correct count for a
delete statement that has
no where clause. Therefore, to assure the correct update count is returned,
either include a where clause, or understand that the value will always be
0.
Statement.getUpdateCount()| Modifier and Type | Field and Description |
|---|---|
int |
updateCount
The update count for the last executed statement.
|
| Constructor and Description |
|---|
UpdateCountDataHandler(DataHandler datahandler)
Handle capturing the update count.
|
| Modifier and Type | Method and Description |
|---|---|
void |
postExecute(java.sql.Statement stmt)
Gets the update count from the statement after successfully executing.
|
void |
preExecute(java.sql.Statement stmt)
Sets the update count to
-1 prior to the statement being executed. |
__chain__, getPyObject, getRowId, setJDBCObject, setJDBCObjectcheckNull, createUnsupportedTypeSQLException, getMetaDataName, getProcedure, getPyObject, getSystemDataHandler, read, read, registerOut, toStringpublic UpdateCountDataHandler(DataHandler datahandler)
-1.public void preExecute(java.sql.Statement stmt)
throws java.sql.SQLException
-1 prior to the statement being executed.preExecute in class FilterDataHandlerjava.sql.SQLExceptionpublic void postExecute(java.sql.Statement stmt)
throws java.sql.SQLException
postExecute in class FilterDataHandlerjava.sql.SQLException