public class TransactionWrapper
extends org.springframework.transaction.interceptor.TransactionAspectSupport
TransactionAspectSupport thas accepts a callback function to be executed
in a fixed transaction. If an outer transaction is already present, it should be reused.
If no transaction active yet, a new one will be created with the default attributes.
Unless a different TransactionAttributeSource is configured
the default transaction only has the PROPAGATION_REQUIRED attribute set.| Modifier and Type | Class and Description |
|---|---|
static interface |
TransactionWrapper.InvocationCallback<T> |
| Constructor and Description |
|---|
TransactionWrapper() |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
invokeWithinTransaction(TransactionWrapper.InvocationCallback<R> callback) |
protected String |
methodIdentification(Method method,
Class<?> targetClass) |
afterPropertiesSet, cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanNamepublic <R> R invokeWithinTransaction(TransactionWrapper.InvocationCallback<R> callback) throws Throwable
ThrowableCopyright © 2020. All rights reserved.