/** * Roll back the current transaction. Transaction mode is closed. */ public void rollbackTransaction() { log.debug("Rolling-back transaction"); assertTxIsActive(); try { connection.rollback(); } catch (SQLException sex) { throw new DbSqlException("Rollback TX failed", sex); } finally { closeTx(); } }
/** * Commit the current transaction, writing any unflushed changes to the database. * Transaction mode is closed. */ public void commitTransaction() { log.debug("Committing transaction"); assertTxIsActive(); try { connection.commit(); } catch (SQLException sex) { throw new DbSqlException("Commit TX failed", sex); } finally { closeTx(); } }
/** * Roll back the current transaction. Transaction mode is closed. */ public void rollbackTransaction() { log.debug("Rolling-back transaction"); assertTxIsActive(); try { connection.rollback(); } catch (SQLException sex) { throw new DbSqlException("Rollback TX failed", sex); } finally { closeTx(); } }
/** * Commit the current transaction, writing any unflushed changes to the database. * Transaction mode is closed. */ public void commitTransaction() { log.debug("Committing transaction"); assertTxIsActive(); try { connection.commit(); } catch (SQLException sex) { throw new DbSqlException("Commit TX failed", sex); } finally { closeTx(); } }
/** * Commit the current transaction, writing any unflushed changes to the database. * Transaction mode is closed. */ public void commitTransaction() { if (log.isDebugEnabled()) { log.debug("Committing transaction"); } checkActiveTx(); try { connection.commit(); } catch (SQLException sex) { throw new DbSqlException("Unable to commit transaction.", sex); } finally { closeTx(); } }
/** * Roll back the current transaction. Transaction mode is closed. */ public void rollbackTransaction() { if (log.isDebugEnabled()) { log.debug("Rolling-back transaction"); } checkActiveTx(); try { connection.rollback(); } catch (SQLException sex) { throw new DbSqlException("Unable to rollback transaction.", sex); } finally { closeTx(); } }