public class SpringTransactionContext extends Object implements TransactionContext
Modifier and Type | Class and Description |
---|---|
protected class |
SpringTransactionContext.TransactionSynchronizationAdapter |
Modifier and Type | Field and Description |
---|---|
protected CommandContext |
commandContext |
protected org.springframework.transaction.PlatformTransactionManager |
transactionManager |
Constructor and Description |
---|
SpringTransactionContext(org.springframework.transaction.PlatformTransactionManager transactionManager,
CommandContext commandContext) |
Modifier and Type | Method and Description |
---|---|
void |
addTransactionListener(TransactionState transactionState,
TransactionListener transactionListener) |
void |
commit() |
void |
rollback() |
protected org.springframework.transaction.PlatformTransactionManager transactionManager
protected CommandContext commandContext
public SpringTransactionContext(org.springframework.transaction.PlatformTransactionManager transactionManager, CommandContext commandContext)
public void commit()
commit
in interface TransactionContext
public void rollback()
rollback
in interface TransactionContext
public void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener)
addTransactionListener
in interface TransactionContext
Copyright © 2015. All rights reserved.