@Requires(classes=org.springframework.transaction.PlatformTransactionManager.class) @EachBean(value=org.springframework.transaction.PlatformTransactionManager.class) public class SpringTestTransactionInterceptor extends java.lang.Object implements TestTransactionInterceptor
Constructor and Description |
---|
SpringTestTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Begin the transaction.
|
void |
commit()
Commit the transaction.
|
void |
rollback()
Rollback the transaction.
|
public SpringTestTransactionInterceptor(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager
- Spring's PlatformTransactionManager
public void begin()
TestTransactionInterceptor
begin
in interface TestTransactionInterceptor
public void commit()
TestTransactionInterceptor
commit
in interface TestTransactionInterceptor
public void rollback()
TestTransactionInterceptor
rollback
in interface TestTransactionInterceptor