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 TransactionContext
public void commit()
commit
in interface TransactionContext
protected void fireTransactionEvent(TransactionState transactionState)
public void rollback()
rollback
in interface TransactionContext
Copyright © 2015. All rights reserved.