public Connection decorate(Connection conn) throws SQLException { if (_isolation == Connection.TRANSACTION_NONE || _queryTimeout != -1 || _autoCommit != null) conn = new ConfiguringConnection(conn); if (_isolation != -1 && _isolation != Connection.TRANSACTION_NONE) conn.setTransactionIsolation(_isolation); return conn; }
public ConfiguringConnection(Connection conn) throws SQLException { super(conn); if (_autoCommit != null) { _curAutoCommit = ConfiguringConnection.this.getAutoCommit(); if (_curAutoCommit != _autoCommit.booleanValue()) 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 commit() throws SQLException { if (_isolation != TRANSACTION_NONE) super.commit(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public Connection decorate(Connection conn) throws SQLException { if (_isolation == Connection.TRANSACTION_NONE || _queryTimeout != -1 || _autoCommit != null) conn = new ConfiguringConnection(conn); if (_isolation != -1 && _isolation != Connection.TRANSACTION_NONE) conn.setTransactionIsolation(_isolation); return conn; }
public void commit() throws SQLException { if (_isolation != TRANSACTION_NONE) super.commit(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public Connection decorate(Connection conn) throws SQLException { if (_isolation == Connection.TRANSACTION_NONE || _queryTimeout != -1 || _autoCommit != null) conn = new ConfiguringConnection(conn); if (_isolation != -1 && _isolation != Connection.TRANSACTION_NONE) conn.setTransactionIsolation(_isolation); return conn; }
public void commit() throws SQLException { if (_isolation != TRANSACTION_NONE) super.commit(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public Connection decorate(Connection conn) throws SQLException { if (_isolation == Connection.TRANSACTION_NONE || _queryTimeout != -1 || _autoCommit != null) conn = new ConfiguringConnection(conn); if (_isolation != -1 && _isolation != Connection.TRANSACTION_NONE) conn.setTransactionIsolation(_isolation); return conn; }
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 commit() throws SQLException { if (_isolation != TRANSACTION_NONE) super.commit(); if (_autoCommit != null && _autoCommit.booleanValue() != _curAutoCommit) setAutoCommit(_autoCommit.booleanValue()); }
public ConfiguringConnection(Connection conn) throws SQLException { super(conn); if (_autoCommit != null) { _curAutoCommit = ConfiguringConnection.this.getAutoCommit(); if (_curAutoCommit != _autoCommit.booleanValue()) setAutoCommit(_autoCommit.booleanValue()); } }
public ConfiguringConnection(Connection conn) throws SQLException { super(conn); if (_autoCommit != null) { _curAutoCommit = ConfiguringConnection.this.getAutoCommit(); if (_curAutoCommit != _autoCommit.booleanValue()) setAutoCommit(_autoCommit.booleanValue()); } }
public ConfiguringConnection(Connection conn) throws SQLException { super(conn); if (_autoCommit != null) { _curAutoCommit = ConfiguringConnection.this.getAutoCommit(); if (_curAutoCommit != _autoCommit.booleanValue()) setAutoCommit(_autoCommit.booleanValue()); } }