private class SpringTransactionExecutor.SpringTransactionAdapter extends AbstractTransactionExecutor.AbstractTransactionAdapter<org.springframework.transaction.TransactionStatus>
TransactionAdapter
interface using
spring-tx.Modifier and Type | Field and Description |
---|---|
private org.springframework.transaction.support.DefaultTransactionDefinition |
transactionDefinition |
Constructor and Description |
---|
SpringTransactionAdapter(TransactionSettings settings)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.springframework.transaction.TransactionStatus |
createNewTransaction()
This method creates a new technical transaction.
|
protected void |
doCommit()
This method performs the actual
AbstractTransactionExecutor.AbstractTransactionAdapter.commit() on the active
transaction . |
protected void |
doRollback()
This method performs the actual
AbstractTransactionExecutor.AbstractTransactionAdapter.rollback() on the active
transaction . |
commit, getActiveTransaction, getContext, interCommit, isActive, rollback, start, stop
private final org.springframework.transaction.support.DefaultTransactionDefinition transactionDefinition
createNewTransaction()
public SpringTransactionAdapter(TransactionSettings settings)
settings
- are the settings to use.protected org.springframework.transaction.TransactionStatus createNewTransaction()
createNewTransaction
in class AbstractTransactionExecutor.AbstractTransactionAdapter<org.springframework.transaction.TransactionStatus>
protected void doCommit()
AbstractTransactionExecutor.AbstractTransactionAdapter.commit()
on the active
transaction
.doCommit
in class AbstractTransactionExecutor.AbstractTransactionAdapter<org.springframework.transaction.TransactionStatus>
protected void doRollback()
AbstractTransactionExecutor.AbstractTransactionAdapter.rollback()
on the active
transaction
.doRollback
in class AbstractTransactionExecutor.AbstractTransactionAdapter<org.springframework.transaction.TransactionStatus>
Copyright © 2001–2016 mmm-Team. All rights reserved.