public void commit() throws SQLException { if (_isolation != TRANSACTION_NONE) super.commit(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public void commit() throws SQLException { if (_isolation != TRANSACTION_NONE) super.commit(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public void commit() throws SQLException { if (_isolation != TRANSACTION_NONE) super.commit(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public void commit() throws SQLException { if (_isolation != TRANSACTION_NONE) super.commit(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public void commit() throws SQLException { JDBCEvent before = fireEvent(getDelegate(), JDBCEvent.BEFORE_COMMIT, null, null, null); try { super.commit(); } finally { fireEvent(getDelegate(), JDBCEvent.AFTER_COMMIT, before, null, null); } }
public void commit() throws SQLException { JDBCEvent before = fireEvent(getDelegate(), JDBCEvent.BEFORE_COMMIT, null, null, null); try { super.commit(); } finally { fireEvent(getDelegate(), JDBCEvent.AFTER_COMMIT, before, null, null); } }
public void commit() throws SQLException { JDBCEvent before = fireEvent(getDelegate(), JDBCEvent.BEFORE_COMMIT, null, null, null); try { super.commit(); } finally { fireEvent(getDelegate(), JDBCEvent.AFTER_COMMIT, before, null, null); } }
public void commit() throws SQLException { JDBCEvent before = fireEvent(getDelegate(), JDBCEvent.BEFORE_COMMIT, null, null, null); try { super.commit(); } finally { fireEvent(getDelegate(), JDBCEvent.AFTER_COMMIT, before, null, null); } }
public void commit() throws SQLException { long start = System.currentTimeMillis(); try { super.commit(); } finally { if (_logs.isJDBCEnabled()) _logs.logJDBC("commit", start, this); handleSQLWarning(); } }
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); } }
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); } }
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); } }
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); } } }
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); } } }