| java.lang.Object com.ziclix.python.sql.DataHandler com.ziclix.python.sql.FilterDataHandler com.ziclix.python.sql.handler.UpdateCountDataHandler
UpdateCountDataHandler | public class UpdateCountDataHandler extends FilterDataHandler (Code) | | A data handler that keeps track of the update count for each execution of a
Statement.
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 .
author: brian zimmer author: last revised by $Author: bzimmer $ version: $Revision: 2414 $ See Also: java.sql.Statement.getUpdateCount |
Field Summary | |
public int | updateCount The update count for the last executed statement. |
Method Summary | |
public void | postExecute(Statement stmt) Gets the update count from the statement after successfully executing. | public void | preExecute(Statement stmt) Sets the update count to -1 prior to the statement being executed. |
updateCount | public int updateCount(Code) | | The update count for the last executed statement.
|
UpdateCountDataHandler | public UpdateCountDataHandler(DataHandler datahandler)(Code) | | Handle capturing the update count. The initial value of the updateCount is
-1 .
|
postExecute | public void postExecute(Statement stmt) throws SQLException(Code) | | Gets the update count from the statement after successfully executing.
|
preExecute | public void preExecute(Statement stmt) throws SQLException(Code) | | Sets the update count to -1 prior to the statement being executed.
|
Methods inherited from com.ziclix.python.sql.DataHandler | public PyObject __chain__()(Code)(Java Doc) final public static boolean checkNull(PreparedStatement stmt, int index, PyObject object, int type) throws SQLException(Code)(Java Doc) public String getMetaDataName(PyObject name)(Code)(Java Doc) public Procedure getProcedure(PyCursor cursor, PyObject name) throws SQLException(Code)(Java Doc) public PyObject getPyObject(ResultSet set, int col, int type) throws SQLException(Code)(Java Doc) public PyObject getPyObject(CallableStatement stmt, int col, int type) throws SQLException(Code)(Java Doc) public PyObject getRowId(Statement stmt) throws SQLException(Code)(Java Doc) final public static DataHandler getSystemDataHandler()(Code)(Java Doc) public void postExecute(Statement stmt) throws SQLException(Code)(Java Doc) public void preExecute(Statement stmt) throws SQLException(Code)(Java Doc) final public static byte[] read(InputStream stream)(Code)(Java Doc) final public static String read(Reader reader)(Code)(Java Doc) public void registerOut(CallableStatement statement, int index, int colType, int dataType, String dataTypeName) throws SQLException(Code)(Java Doc) public void setJDBCObject(PreparedStatement stmt, int index, PyObject object) throws SQLException(Code)(Java Doc) public void setJDBCObject(PreparedStatement stmt, int index, PyObject object, int type) throws SQLException(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|