public Connection decorate(Connection conn) throws SQLException { // some versions of the DB2 driver seem to default to // READ_UNCOMMITTED, which will prevent locking from working // (multiple SELECT ... FOR UPDATE statements are allowed on // the same instance); if we have not overridden the // transaction isolation in the configuration, default to // TRANSACTION_READ_COMMITTED conn = super.decorate(conn); if (conf.getTransactionIsolationConstant() == -1 && conn.getTransactionIsolation() < conn.TRANSACTION_READ_COMMITTED) conn.setTransactionIsolation(conn.TRANSACTION_READ_COMMITTED); return conn; }
public Connection decorate(Connection conn) throws SQLException { // some versions of the DB2 driver seem to default to // READ_UNCOMMITTED, which will prevent locking from working // (multiple SELECT ... FOR UPDATE statements are allowed on // the same instance); if we have not overridden the // transaction isolation in the configuration, default to // TRANSACTION_READ_COMMITTED conn = super.decorate(conn); if (conf.getTransactionIsolationConstant() == -1 && conn.getTransactionIsolation() < Connection.TRANSACTION_READ_COMMITTED) conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); return conn; }
public Connection decorate(Connection conn) throws SQLException { // some versions of the DB2 driver seem to default to // READ_UNCOMMITTED, which will prevent locking from working // (multiple SELECT ... FOR UPDATE statements are allowed on // the same instance); if we have not overridden the // transaction isolation in the configuration, default to // TRANSACTION_READ_COMMITTED conn = super.decorate(conn); if (conf.getTransactionIsolationConstant() == -1 && conn.getTransactionIsolation() < Connection.TRANSACTION_READ_COMMITTED) conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); return conn; }
public Connection decorate(Connection conn) throws SQLException { // some versions of the DB2 driver seem to default to // READ_UNCOMMITTED, which will prevent locking from working // (multiple SELECT ... FOR UPDATE statements are allowed on // the same instance); if we have not overridden the // transaction isolation in the configuration, default to // TRANSACTION_READ_COMMITTED conn = super.decorate(conn); if (conf.getTransactionIsolationConstant() == -1 && conn.getTransactionIsolation() < Connection.TRANSACTION_READ_COMMITTED) conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); return conn; }
public Connection decorate(Connection conn) throws SQLException { // some versions of the DB2 driver seem to default to // READ_UNCOMMITTED, which will prevent locking from working // (multiple SELECT ... FOR UPDATE statements are allowed on // the same instance); if we have not overridden the // transaction isolation in the configuration, default to // TRANSACTION_READ_COMMITTED conn = super.decorate(conn); if (conf.getTransactionIsolationConstant() == -1 && conn.getTransactionIsolation() < Connection.TRANSACTION_READ_COMMITTED) conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); return conn; }