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