Exemplo n.º 1
0
 public void afterCompletion(int status) {
   if (Status.STATUS_ROLLEDBACK == status
       && TransactionState.ROLLED_BACK.equals(transactionState)) {
     transactionListener.execute(commandContext);
   } else if (Status.STATUS_COMMITTED == status
       && TransactionState.COMMITTED.equals(transactionState)) {
     transactionListener.execute(commandContext);
   }
 }
Exemplo n.º 2
0
 public void beforeCompletion() {
   if (TransactionState.COMMITTING.equals(transactionState)
       || TransactionState.ROLLINGBACK.equals(transactionState)) {
     transactionListener.execute(commandContext);
   }
 }