@Override public final void addBatch(String sql) throws SQLException { this.lastExecutingSql = sql; try { super.addBatch(sql); }catch (SQLException e) { throw handleSQLException(e); } }
@Override public final int executeUpdate(String sql, String[] columnNames) throws SQLException { try { beginExecute(sql); return stmt.executeUpdate(sql, columnNames); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final int executeUpdate(String sql, int[] columnIndexes) throws SQLException { try { beginExecute(sql); return stmt.executeUpdate(sql, columnIndexes); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final int executeUpdate(String sql) throws SQLException { try { beginExecute(sql); return stmt.executeUpdate(sql); }catch(SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final boolean execute(String sql, String[] columnNames) throws SQLException { try { beginExecute(sql); return stmt.execute(sql, columnNames); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final boolean execute(String sql, int autoGeneratedKeys) throws SQLException { try { beginExecute(sql); return stmt.execute(sql, autoGeneratedKeys); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final boolean execute(String sql, int[] columnIndexes) throws SQLException { try { beginExecute(sql); return stmt.execute(sql, columnIndexes); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final boolean execute(String sql) throws SQLException { try { beginExecute(sql); return stmt.execute(sql); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final int[] executeBatch() throws SQLException { try { beginExecute(null); return stmt.executeBatch(); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException { try { beginExecute(sql); return stmt.executeUpdate(sql, autoGeneratedKeys); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }
@Override public final ResultSet executeQuery(String sql) throws SQLException { try { beginExecute(sql); return proxyOfResultSet(stmt.executeQuery(sql)); }catch (SQLException e) { throw handleSQLException(e); }finally{ endExecute(); } }