public class ServiceTransactionInterceptor
extends org.springframework.transaction.interceptor.TransactionInterceptor
| Constructor and Description |
|---|
ServiceTransactionInterceptor()
Create a new TransactionInterceptor.
|
ServiceTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager ptm,
Properties attributes)
Create a new TransactionInterceptor.
|
ServiceTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager ptm,
org.springframework.transaction.interceptor.TransactionAttributeSource tas)
Create a new TransactionInterceptor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
completeTransactionAfterReturning(org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo txInfo,
ServiceResult<?> result) |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
afterPropertiesSet, cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanNamepublic ServiceTransactionInterceptor()
Transaction manager and transaction attributes still need to be set.
TransactionAspectSupport.setTransactionManager(org.springframework.transaction.PlatformTransactionManager),
TransactionAspectSupport.setTransactionAttributes(java.util.Properties),
TransactionAspectSupport.setTransactionAttributeSource(TransactionAttributeSource)public ServiceTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager ptm,
Properties attributes)
ptm - the transaction manager to perform the actual transaction managementattributes - the transaction attributes in properties formatTransactionAspectSupport.setTransactionManager(org.springframework.transaction.PlatformTransactionManager),
TransactionAspectSupport.setTransactionAttributes(java.util.Properties)public ServiceTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager ptm,
org.springframework.transaction.interceptor.TransactionAttributeSource tas)
ptm - the transaction manager to perform the actual transaction managementtas - the attribute source to be used to find transaction attributesTransactionAspectSupport.setTransactionManager(org.springframework.transaction.PlatformTransactionManager),
TransactionAspectSupport.setTransactionAttributeSource(TransactionAttributeSource)public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorinvoke in class org.springframework.transaction.interceptor.TransactionInterceptorThrowableprotected void completeTransactionAfterReturning(org.springframework.transaction.interceptor.TransactionAspectSupport.TransactionInfo txInfo,
ServiceResult<?> result)
Copyright © 2016–2017. All rights reserved.