org.apache.cayenne.tx
Class DefaultTransactionManager
java.lang.Object
org.apache.cayenne.tx.DefaultTransactionManager
- All Implemented Interfaces:
- TransactionManager
public class DefaultTransactionManager
- extends Object
- implements TransactionManager
- 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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTransactionManager
public DefaultTransactionManager(DataDomain dataDomain)
performInTransaction
public <T> T performInTransaction(TransactionalOperation<T> op)
- Description copied from interface:
TransactionManager
- Starts a new transaction (or joins an existing one) calling
TransactionalOperation#perform(CayenneRuntime)
, and then
committing or rolling back the transaction. Frees the user
- Specified by:
performInTransaction
in interface TransactionManager
Copyright © 2001-2013 Apache Cayenne. All Rights Reserved.