public interface TransactionManager
| 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. |
<T> T |
performInTransaction(TransactionalOperation<T> op,
TransactionListener callback)
Starts a new transaction (or joins an existing one) calling
TransactionalOperation.perform(), and then committing or rolling back the
transaction. |
<T> T performInTransaction(TransactionalOperation<T> op)
TransactionalOperation.perform(), and then committing or rolling back the
transaction.op - an operation to perform within the trsnaction.<T> T performInTransaction(TransactionalOperation<T> op, TransactionListener callback)
TransactionalOperation.perform(), and then committing or rolling back the
transaction. As transaction goes through stages, callback methods are invoked allowing the caller to customize
transaction parameters.op - an operation to perform within the trsnaction.callback - a callback to notify as transaction progresses through stages.Copyright © 2001–2023 Apache Cayenne. All rights reserved.