130131132133134135136137138139140141142
//------------------------------- transaction handling @Override public void commit() throws SQLException { makeActive(); final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "commit"); try { inner.commit(); } finally { m.finish(); } }
142143144145146147148149150151152153
} @Override public void rollback() throws SQLException { makeActive(); final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback"); try { inner.rollback(); } finally { m.finish(); } }
153154155156157158159160161162163164
} @Override public Savepoint setSavepoint() throws SQLException { makeActive(); final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "setSavepoint"); try { return inner.setSavepoint(); } finally { m.finish(); } }
164165166167168169170171172173174175
} @Override public Savepoint setSavepoint(String name) throws SQLException { makeActive(); final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "setSavepoint"); try { return inner.setSavepoint(name); } finally { m.finish(); } }
175176177178179180181182183184185186
} @Override public void rollback(Savepoint savepoint) throws SQLException { makeActive(); final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback"); try { inner.rollback(savepoint); } finally { m.finish(); } }
186187188189190191192193194195196197
} @Override public void releaseSavepoint(Savepoint savepoint) throws SQLException { makeActive(); final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "releaseSavepoint"); try { inner.releaseSavepoint(savepoint); } finally { m.finish(); } }
148149150151152153154155156157158159160
//------------------------------- transaction handling @Override public void commit() throws SQLException { makePassive(); final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "commit"); try { inner.commit(); } finally { m.finish(); } }
160161162163164165166167168169170171
} @Override public void rollback() throws SQLException { makePassive(); final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "rollback"); try { inner.rollback(); } finally { m.finish(); } }
170171172173174175176177178179180181
} } @Override public Savepoint setSavepoint() throws SQLException { final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "setSavepoint"); try { return inner.setSavepoint(); } finally { m.finish(); } }
180181182183184185186187188189190191
} } @Override public Savepoint setSavepoint(String name) throws SQLException { final ASimpleMeasurement m = sysMon.start(ASysMonStatement.IDENT_PREFIX_JDBC + "setSavepoint"); try { return inner.setSavepoint(name); } finally { m.finish(); } }