void
|
afterPropertiesSet()
Check that required properties were set.
|
void
|
cleanupTransactionInfo(TransactionAspectSupport.TransactionInfo txInfo)
Reset the TransactionInfo ThreadLocal.
|
void
|
commitTransactionAfterReturning(TransactionAspectSupport.TransactionInfo txInfo)
Execute after successful completion of call, but not after an exception was handled.
|
void
|
completeTransactionAfterThrowing(TransactionAspectSupport.TransactionInfo txInfo, Throwable ex)
Handle a throwable, completing the transaction.
|
TransactionAspectSupport.TransactionInfo
|
createTransactionIfNecessary(PlatformTransactionManager tm, TransactionAttribute txAttr, String joinpointIdentification)
Create a transaction if necessary based on the given TransactionAttribute.
|
TransactionAspectSupport.TransactionInfo
|
createTransactionIfNecessary(Method method, Class targetClass)
Create a transaction if necessary, based on the given method and class.
|
static
TransactionAspectSupport.TransactionInfo
|
currentTransactionInfo()
Subclasses can use this to return the current TransactionInfo.
|
static
TransactionStatus
|
currentTransactionStatus()
Return the transaction status of the current method invocation.
|
PlatformTransactionManager
|
determineTransactionManager(TransactionAttribute txAttr)
Determine the specific transaction manager to use for the given transaction.
|
final
BeanFactory
|
getBeanFactory()
Return the BeanFactory to use for retrieving PlatformTransactionManager beans.
|
TransactionAttributeSource
|
getTransactionAttributeSource()
Return the transaction attribute source.
|
PlatformTransactionManager
|
getTransactionManager()
Return the transaction manager, if specified.
|
final
String
|
getTransactionManagerBeanName()
Return the name of the default transaction manager bean.
|
String
|
methodIdentification(Method method, Class targetClass)
Convenience method to return a String representation of this Method
for use in logging.
|
String
|
methodIdentification(Method method)
|
TransactionAspectSupport.TransactionInfo
|
prepareTransactionInfo(PlatformTransactionManager tm, TransactionAttribute txAttr, String joinpointIdentification, TransactionStatus status)
Prepare a TransactionInfo for the given attribute and status object.
|
void
|
setBeanFactory(BeanFactory beanFactory)
Set the BeanFactory to use for retrieving PlatformTransactionManager beans.
|
void
|
setTransactionAttributeSource(TransactionAttributeSource transactionAttributeSource)
Set the transaction attribute source which is used to find transaction
attributes.
|
void
|
setTransactionAttributeSources(TransactionAttributeSource[] transactionAttributeSources)
Set multiple transaction attribute sources which are used to find transaction
attributes.
|
void
|
setTransactionAttributes(Properties transactionAttributes)
Set properties with method names as keys and transaction attribute
descriptors (parsed via TransactionAttributeEditor) as values:
e.g.
|
void
|
setTransactionManager(PlatformTransactionManager transactionManager)
Specify the target transaction manager.
|
void
|
setTransactionManagerBeanName(String transactionManagerBeanName)
Specify the name of the default transaction manager bean.
|