*/
package org.wamblee.test.transactions;
-
/**
- * Interfaces to be implemented by resources that want to participate in transactions
- * managed through {@link SimpleTransactionManager}.
+ * 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.
+ * Begins a transaction.
+ *
* @return Object that manages the transaction for the resource.
*/
- T begin();
-
+ T begin();
+
/**
* Rolls back a transaction.
- * @param aT Object that manages the transaction for the resource.
+ *
+ * @param aT
+ * Object that manages the transaction for the resource.
*/
- TransactionResult rollback(T aT);
-
+ TransactionResult rollback(T aT);
+
/**
- * Commits the transaction.
- * @param aT Object that manages the transaction for the resource.
+ * Commits the transaction.
+ *
+ * @param aT
+ * Object that manages the transaction for the resource.
*/
TransactionResult commit(T aT);
-
+
}