TransactionTemplate
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Object | doInTransaction(TransactionStatus
associated transaction status status)Implements org. Gets called by |
| protected abstract void | doInTransactionWithoutResult(TransactionStatus
associated transaction status status)Gets called by |
| TransactionCallbackWithoutResult | back to summary |
|---|---|
| public TransactionCallbackWithoutResult() | |
| doInTransaction | back to summary |
|---|---|
| public final Object doInTransaction(TransactionStatus status) Implements org. Doc from org. Gets called by Allows for returning a result object created within the transaction, i.e. a domain object or a collection of domain objects. A RuntimeException thrown by the callback is treated as application exception that enforces a rollback. Any such exception will be propagated to the caller of the template, unless there is a problem rolling back, in which case a TransactionException will be thrown.
| |
| doInTransactionWithoutResult | back to summary |
|---|---|
| protected abstract void doInTransactionWithoutResult(TransactionStatus status) Gets called by A RuntimeException thrown by the callback is treated as application exception that enforces a rollback. An exception gets propagated to the caller of the template. Note when using JTA: JTA transactions only work with transactional JNDI resources, so implementations need to use such resources if they want transaction support.
| |