public Savepoint setSavepoint(String name) throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { return super.setSavepoint(name); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("savepoint: " + name, start, this); handleSQLErrors(err); } }
public void rollback() throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { super.rollback(); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("rollback", start, this); handleSQLErrors(err); } }
public Savepoint setSavepoint(String name) throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { return super.setSavepoint(name); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("savepoint: " + name, start, this); handleSQLErrors(err); } }
protected PreparedStatement prepareStatement(String sql, int rsType, int rsConcur, boolean wrap) throws SQLException { SQLException err = null; try { PreparedStatement stmnt = super.prepareStatement (sql, rsType, rsConcur, false); return newLoggingPreparedStatement(stmnt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
protected PreparedStatement prepareStatement(String sql, int[] columnIndexes, boolean wrap) throws SQLException { SQLException err = null; try { PreparedStatement stmnt = super.prepareStatement (sql, columnIndexes, false); return newLoggingPreparedStatement(stmnt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
public Savepoint setSavepoint() throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { return super.setSavepoint(); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("savepoint", start, this); handleSQLErrors(err); } }
protected Statement createStatement(int type, int concurrency, boolean wrap) throws SQLException { SQLException err = null; try { Statement stmnt = super.createStatement(type, concurrency, false); return newLoggingStatement(stmnt); } catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(err); } }
protected PreparedStatement prepareStatement(String sql, int[] columnIndexes, boolean wrap) throws SQLException { SQLException err = null; try { PreparedStatement stmnt = super.prepareStatement (sql, columnIndexes, false); return newLoggingPreparedStatement(stmnt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
public Savepoint setSavepoint() throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { return super.setSavepoint(); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("savepoint", start, this); handleSQLErrors(err); } }
protected PreparedStatement prepareStatement(String sql, String[] columnNames, boolean wrap) throws SQLException { SQLException err = null; try { PreparedStatement stmnt = super.prepareStatement (sql, columnNames, false); return newLoggingPreparedStatement(stmnt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
public void rollback() throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { super.rollback(); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("rollback", start, this); handleSQLErrors(err); } }
public void commit() throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { super.commit(); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("commit", start, this); handleSQLErrors(err); } }
protected PreparedStatement prepareStatement(String sql, int autoGeneratedKeys, boolean wrap) throws SQLException { SQLException err = null; try { PreparedStatement stmnt = super.prepareStatement (sql, autoGeneratedKeys, false); return newLoggingPreparedStatement(stmnt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
protected Statement createStatement(boolean wrap) throws SQLException { SQLException err = null; try { Statement stmnt = super.createStatement(false); return newLoggingStatement(stmnt); }catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(err); } }
protected Statement createStatement(boolean wrap) throws SQLException { SQLException err = null; try { Statement stmnt = super.createStatement(false); return newLoggingStatement(stmnt); }catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(err); } }
protected CallableStatement prepareCall(String sql, boolean wrap) throws SQLException { SQLException err = null; try { CallableStatement stmt = super.prepareCall(sql, wrap); return newLoggingCallableStatement(stmt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
protected PreparedStatement prepareStatement(String sql, boolean wrap) throws SQLException { SQLException err = null; try { PreparedStatement stmnt = super.prepareStatement(sql, false); return newLoggingPreparedStatement(stmnt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
protected CallableStatement prepareCall(String sql, boolean wrap) throws SQLException { SQLException err = null; try { CallableStatement stmt = super.prepareCall(sql, wrap); return newLoggingCallableStatement(stmt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
protected PreparedStatement prepareStatement(String sql, boolean wrap) throws SQLException { SQLException err = null; try { PreparedStatement stmnt = super.prepareStatement(sql, false); return newLoggingPreparedStatement(stmnt, sql); } catch (SQLException se) { err = wrap(se, sql); throw err; } finally { handleSQLErrors(err); } }
protected Statement createStatement(boolean wrap) throws SQLException { SQLException err = null; try { Statement stmnt = super.createStatement(false); return newLoggingStatement(stmnt); }catch (SQLException se) { err = se; throw se; } finally { handleSQLErrors(err); } }