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,
TransactionDescriptor descriptor)
Performs operation in a transaction which parameters described by descriptor.
|
<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,
TransactionListener callback,
TransactionDescriptor descriptor)
Performs operation in a transaction which parameters described by descriptor.
|
<T> T performInTransaction(TransactionalOperation<T> op)
TransactionalOperation.perform(), and then committing or rolling back the
transaction.T - returned value typeop - an operation to perform within the transaction.<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.T - returned value typeop - an operation to perform within the transaction.callback - a callback to notify as transaction progresses through stages.<T> T performInTransaction(TransactionalOperation<T> op, TransactionDescriptor descriptor)
T - result typeop - an operation to perform within the transaction.descriptor - transaction descriptor<T> T performInTransaction(TransactionalOperation<T> op, TransactionListener callback, TransactionDescriptor descriptor)
T - returned value typeop - an operation to perform within the transaction.callback - a callback to notify as transaction progresses through stages.descriptor - transaction descriptorCopyright © 2001–2018 Apache Cayenne. All rights reserved.