@Override public void accept(final Transaction transaction) { if (transaction.isOpen()) transaction.commit(); }
@Override public void accept(final Transaction transaction) { if (!transaction.isOpen()) throw Exceptions.transactionMustBeOpenToReadWrite(); }
@Override public void accept(final Transaction transaction) { if (transaction.isOpen()) throw Exceptions.openTransactionsOnClose(); }
@Override public void accept(final Transaction transaction) { if (!transaction.isOpen()) transaction.open(); }
@Override public void accept(final Transaction transaction) { if (transaction.isOpen()) transaction.rollback(); }