/**
- * 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
* @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);
}