public class StandaloneMybatisTransactionContext extends Object implements TransactionContext
| Modifier and Type | Field and Description |
|---|---|
protected CommandContext |
commandContext |
protected Map<TransactionState,List<TransactionListener>> |
stateTransactionListeners |
| Constructor and Description |
|---|
StandaloneMybatisTransactionContext(CommandContext commandContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTransactionListener(TransactionState transactionState,
TransactionListener transactionListener) |
void |
commit() |
protected void |
fireTransactionEvent(TransactionState transactionState) |
void |
rollback() |
protected CommandContext commandContext
protected Map<TransactionState,List<TransactionListener>> stateTransactionListeners
public StandaloneMybatisTransactionContext(CommandContext commandContext)
public void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener)
addTransactionListener in interface TransactionContextpublic void commit()
commit in interface TransactionContextprotected void fireTransactionEvent(TransactionState transactionState)
public void rollback()
rollback in interface TransactionContextCopyright © 2015. All rights reserved.