Esempio n. 1
0
 @Override
 public void accept(final Transaction transaction) {
   if (transaction.isOpen()) transaction.commit();
 }
Esempio n. 2
0
 @Override
 public void accept(final Transaction transaction) {
   if (!transaction.isOpen()) throw Exceptions.transactionMustBeOpenToReadWrite();
 }
Esempio n. 3
0
 @Override
 public void accept(final Transaction transaction) {
   if (transaction.isOpen()) throw Exceptions.openTransactionsOnClose();
 }
Esempio n. 4
0
 @Override
 public void accept(final Transaction transaction) {
   if (!transaction.isOpen()) transaction.open();
 }
Esempio n. 5
0
 @Override
 public void accept(final Transaction transaction) {
   if (transaction.isOpen()) transaction.rollback();
 }