コード例 #1
0
 @Override
 public T beforeCommit(TransactionData data) throws Exception {
   if (willFail) {
     throw new Exception("Just failing commit, that's all");
   }
   return source.beforeCommit(data);
 }
コード例 #2
0
 @Override
 public void afterRollback(TransactionData data, T state) {
   source.afterRollback(data, state);
 }
コード例 #3
0
 @Override
 public void afterCommit(TransactionData data, T state) {
   source.afterCommit(data, state);
 }