public class DefaultTransactionManager extends Object implements TransactionManager
Constructor and Description |
---|
DefaultTransactionManager(TransactionFactory txFactory,
JdbcEventLogger jdbcEventLogger) |
Modifier and Type | Method and Description |
---|---|
<T> T |
performInTransaction(TransactionalOperation<T> op)
Starts a new transaction (or joins an existing one) calling
TransactionalOperation.perform() , and then
committing or rolling back the transaction. |
public DefaultTransactionManager(TransactionFactory txFactory, JdbcEventLogger jdbcEventLogger)
public <T> T performInTransaction(TransactionalOperation<T> op)
TransactionManager
TransactionalOperation.perform()
, and then
committing or rolling back the transaction. Frees the userperformInTransaction
in interface TransactionManager
Copyright © 2001–2015 Apache Cayenne. All rights reserved.