|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.unitofwork.NoTransactionManager
public class NoTransactionManager
TransactionManager implementation that does nothing. Is a placeholder implementation for the cases where no special transaction management is required.
Constructor Summary | |
---|---|
NoTransactionManager()
|
Method Summary | |
---|---|
void |
commitTransaction(Object transactionStatus)
Commits the transaction identifier by given transactionStatus . |
void |
rollbackTransaction(Object transaction)
Rolls back the transaction identifier by given transactionStatus . |
Object |
startTransaction()
Starts a transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoTransactionManager()
Method Detail |
---|
public Object startTransaction()
TransactionManager
TransactionManager.commitTransaction(Object)
or TransactionManager.rollbackTransaction(Object)
.
The returned object must never be null
if a transaction was successfully created.
startTransaction
in interface TransactionManager
public void commitTransaction(Object transactionStatus)
TransactionManager
transactionStatus
.
commitTransaction
in interface TransactionManager
transactionStatus
- The status object provided by TransactionManager.startTransaction()
.public void rollbackTransaction(Object transaction)
TransactionManager
transactionStatus
.
rollbackTransaction
in interface TransactionManager
transaction
- The status object provided by TransactionManager.startTransaction()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |