commit & rollback stat

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@733 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-09-11 09:15:28 +00:00
parent 347b0c61a3
commit 31618d538f
3 changed files with 28 additions and 2 deletions
@@ -545,6 +545,7 @@ public class PoolableConnection implements PooledConnection, Connection {
public void commit() throws SQLException {
checkOpen();
holder.getDataSource().incrementCommitCount();
try {
conn.commit();
} catch (SQLException ex) {
@@ -556,6 +557,7 @@ public class PoolableConnection implements PooledConnection, Connection {
public void rollback() throws SQLException {
checkOpen();
holder.getDataSource().incrementRollbackCount();
try {
conn.rollback();
} catch (SQLException ex) {