(no commit message)
[utils] / test / enterprise / src / main / java / org / wamblee / test / transactions / TransactionResource.java
index 25fc290fcc5b7b5bf8888a9201b228a752fa2410..1ab649ab54b3218da7ba6dc37e492f8c551de2ef 100644 (file)
@@ -17,7 +17,7 @@ package org.wamblee.test.transactions;
 
 
 /**
- * Interfaces to be implemented by resource that want to participate in transactions
+ * Interfaces to be implemented by resources that want to participate in transactions
  * managed through {@link SimpleTransactionManager}.
  * 
  * @author Erik Brakkee
@@ -25,7 +25,7 @@ package org.wamblee.test.transactions;
  * @param <T>
  */
 public interface TransactionResource<T> {
-
+    
     /**
      * Begins a transaction. 
      * @return Object that manages the transaction for the resource.
@@ -36,12 +36,12 @@ public interface TransactionResource<T> {
      * Rolls back a transaction.
      * @param aT Object that manages the transaction for the resource. 
      */
-    void rollback(T aT); 
+    TransactionResult rollback(T aT); 
     
     /**
      * Commits the transaction. 
      * @param aT Object that manages the transaction for the resource. 
      */
-    void commit(T aT);
+    TransactionResult commit(T aT);
     
 }