git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[utils]
/
test
/
enterprise
/
src
/
main
/
java
/
org
/
wamblee
/
test
/
transactions
/
TransactionResource.java
diff --git
a/test/enterprise/src/main/java/org/wamblee/test/transactions/TransactionResource.java
b/test/enterprise/src/main/java/org/wamblee/test/transactions/TransactionResource.java
index 25fc290fcc5b7b5bf8888a9201b228a752fa2410..1ab649ab54b3218da7ba6dc37e492f8c551de2ef 100644
(file)
--- a/
test/enterprise/src/main/java/org/wamblee/test/transactions/TransactionResource.java
+++ b/
test/enterprise/src/main/java/org/wamblee/test/transactions/TransactionResource.java
@@
-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 resource
s
that want to participate in transactions
* managed through {@link SimpleTransactionManager}.
*
* @author Erik Brakkee
* managed through {@link SimpleTransactionManager}.
*
* @author Erik Brakkee
@@
-25,7
+25,7
@@
package org.wamblee.test.transactions;
* @param <T>
*/
public interface TransactionResource<T> {
* @param <T>
*/
public interface TransactionResource<T> {
-
+
/**
* Begins a transaction.
* @return Object that manages the transaction for the resource.
/**
* 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.
*/
* 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.
*/
/**
* Commits the transaction.
* @param aT Object that manages the transaction for the resource.
*/
-
void
commit(T aT);
+
TransactionResult
commit(T aT);
}
}