public void rollback() throws SQLException { if (_isolation != TRANSACTION_NONE) super.rollback(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public void rollback() throws SQLException { if (_isolation != TRANSACTION_NONE) super.rollback(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public void rollback() throws SQLException { if (_isolation != TRANSACTION_NONE) super.rollback(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public void rollback() throws SQLException { if (_isolation != TRANSACTION_NONE) super.rollback(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public void rollback() throws SQLException { JDBCEvent before = fireEvent(getDelegate(), JDBCEvent.BEFORE_ROLLBACK, null, null, null); try { super.rollback(); } finally { fireEvent(getDelegate(), JDBCEvent.AFTER_ROLLBACK, before, null, null); } }
public void rollback() throws SQLException { JDBCEvent before = fireEvent(getDelegate(), JDBCEvent.BEFORE_ROLLBACK, null, null, null); try { super.rollback(); } finally { fireEvent(getDelegate(), JDBCEvent.AFTER_ROLLBACK, before, null, null); } }
public void rollback() throws SQLException { JDBCEvent before = fireEvent(getDelegate(), JDBCEvent.BEFORE_ROLLBACK, null, null, null); try { super.rollback(); } finally { fireEvent(getDelegate(), JDBCEvent.AFTER_ROLLBACK, before, null, null); } }
public void rollback() throws SQLException { JDBCEvent before = fireEvent(getDelegate(), JDBCEvent.BEFORE_ROLLBACK, null, null, null); try { super.rollback(); } finally { fireEvent(getDelegate(), JDBCEvent.AFTER_ROLLBACK, before, null, null); } }
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 rollback() throws SQLException { long start = System.currentTimeMillis(); try { super.rollback(); } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("rollback", start, this); handleSQLWarning(); } }
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 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 setAutoCommit(boolean autocommit) throws SQLException { // the sybase jdbc driver demands that the Connection always // be rolled back before autocommit status changes. Failure to // do so will yield "SET CHAINED command not allowed within // multi-statement transaction." exceptions try { super.setAutoCommit(autocommit); } catch (SQLException e) { // failed for some reason: try rolling back and then // setting autocommit again. if (autocommit) super.commit(); else super.rollback(); super.setAutoCommit(autocommit); } } }
public void rollback(Savepoint savepoint) throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { super.rollback(savepoint); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) { String name = null; try { name = savepoint.getSavepointName(); } catch (SQLException sqe) { name = String.valueOf(savepoint.getSavepointId()); } _logs.logJDBC("rollback: " + name, start, this); } handleSQLErrors(err); } }
public void rollback(Savepoint savepoint) throws SQLException { long start = System.currentTimeMillis(); SQLException err = null; try { super.rollback(savepoint); } catch (SQLException se) { err = se; throw se; } finally { if (_logs.isJDBCEnabled()) { String name = null; try { name = savepoint.getSavepointName(); } catch (SQLException sqe) { name = String.valueOf(savepoint.getSavepointId()); } _logs.logJDBC("rollback: " + name, start, this); } handleSQLErrors(err); } }
public void rollback(Savepoint savepoint) throws SQLException { long start = System.currentTimeMillis(); try { super.rollback(savepoint); } finally { if (_logs.isJDBCEnabled()) { String name = null; try { name = savepoint.getSavepointName(); } catch (SQLException sqe) { name = String.valueOf(savepoint.getSavepointId()); } _logs.logJDBC("rollback: " + name, start, this); } handleSQLWarning(); } }
public void setAutoCommit(boolean autocommit) throws SQLException { // the sybase jdbc driver demands that the Connection always // be rolled back before autocommit status changes. Failure to // do so will yield "SET CHAINED command not allowed within // multi-statement transaction." exceptions try { super.setAutoCommit(autocommit); } catch (SQLException e) { // failed for some reason: try rolling back and then // setting autocommit again. if (autocommit) super.commit(); else super.rollback(); super.setAutoCommit(autocommit); } } }
public void setAutoCommit(boolean autocommit) throws SQLException { // the sybase jdbc driver demands that the Connection always // be rolled back before autocommit status changes. Failure to // do so will yield "SET CHAINED command not allowed within // multi-statement transaction." exceptions try { super.setAutoCommit(autocommit); } catch (SQLException e) { // failed for some reason: try rolling back and then // setting autocommit again. if (autocommit) super.commit(); else super.rollback(); super.setAutoCommit(autocommit); } } }
public void setAutoCommit(boolean autocommit) throws SQLException { // the sybase jdbc driver demands that the Connection always // be rolled back before autocommit status changes. Failure to // do so will yield "SET CHAINED command not allowed within // multi-statement transaction." exceptions try { super.setAutoCommit(autocommit); } catch (SQLException e) { // failed for some reason: try rolling back and then // setting autocommit again. if (autocommit) super.commit(); else super.rollback(); super.setAutoCommit(autocommit); } } }
public void setAutoCommit(boolean autocommit) throws SQLException { // the sybase jdbc driver demands that the Connection always // be rolled back before autocommit status changes. Failure to // do so will yield "SET CHAINED command not allowed within // multi-statement transaction." exceptions try { super.setAutoCommit(autocommit); } catch (SQLException e) { // failed for some reason: try rolling back and then // setting autocommit again. if (autocommit) super.commit(); else super.rollback(); super.setAutoCommit(autocommit); } } }