java.lang.Object | ||
↳ | org.springframework.transaction.interceptor.TransactionAspectSupport | |
↳ | org.springframework.transaction.interceptor.TransactionInterceptor |
AOP Alliance MethodInterceptor for declarative transaction
management using the common Spring transaction infrastructure
(PlatformTransactionManager
).
Derives from the TransactionAspectSupport
class which
contains the integration with Spring's underlying transaction API.
TransactionInterceptor simply calls the relevant superclass methods
such as createTransactionIfNecessary(Method, Class)
in the correct order.
TransactionInterceptors are thread-safe.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.transaction.interceptor.TransactionAspectSupport
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new TransactionInterceptor.
| |||||||||||
Create a new TransactionInterceptor.
| |||||||||||
Create a new TransactionInterceptor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.transaction.interceptor.TransactionAspectSupport
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanFactoryAware
| |||||||||||
From interface
org.springframework.beans.factory.InitializingBean
|
Create a new TransactionInterceptor.
Transaction manager and transaction attributes still need to be set.
Create a new TransactionInterceptor.
ptm | the transaction manager to perform the actual transaction management |
---|---|
attributes | the transaction attributes in properties format |
Create a new TransactionInterceptor.
ptm | the transaction manager to perform the actual transaction management |
---|---|
tas | the attribute source to be used to find transaction attributes |