* @param <T>
*/
public interface TransactionResource<T> {
-
+
/**
* Begins a transaction.
* @return Object that manages the transaction for the resource.
* 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);
}