org.apache.cayenne.tx
Interface TransactionManager
- All Known Implementing Classes:
- DefaultTransactionManager
public interface TransactionManager
An optional utility service that simplifies wrapping multiple operations in
transactions. Users only rarely need to invoke it directly, as all standard
Cayenne operations are managing their own transactions internally.
- Since:
- 3.2
Method Summary |
|
performInTransaction(TransactionalOperation<T> op)
Starts a new transaction (or joins an existing one) calling
TransactionalOperation#perform(CayenneRuntime) , and then
committing or rolling back the transaction. |
performInTransaction
<T> T performInTransaction(TransactionalOperation<T> op)
- Starts a new transaction (or joins an existing one) calling
TransactionalOperation#perform(CayenneRuntime)
, and then
committing or rolling back the transaction. Frees the user
Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.