public class MultiTransactionStatus extends Object implements TransactionStatus
TransactionStatus implementation to orchestrate TransactionStatus instances for multiple PlatformTransactionManager instances.
Constructor and description |
---|
MultiTransactionStatus(PlatformTransactionManager mainTransactionManager) Creates a new MultiTransactionStatus for the given PlatformTransactionManager. |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
commit(PlatformTransactionManager transactionManager) |
|
public Object |
createSavepoint() |
|
public void |
flush() |
|
public Map<PlatformTransactionManager, TransactionStatus> |
getTransactionStatuses() |
|
public boolean |
hasSavepoint() |
|
public boolean |
isCompleted() |
|
public boolean |
isNewSynchronization() |
|
public boolean |
isNewTransaction() |
|
public boolean |
isRollbackOnly() |
|
public void |
registerTransactionManager(TransactionDefinition definition, PlatformTransactionManager transactionManager) |
|
public void |
releaseSavepoint(Object savepoint) |
|
public void |
rollback(PlatformTransactionManager transactionManager) Rolls back the TransactionStatus registered for the given PlatformTransactionManager. |
|
public void |
rollbackToSavepoint(Object savepoint) |
|
public void |
setNewSynchronization() |
|
public void |
setRollbackOnly() |
Creates a new MultiTransactionStatus for the given PlatformTransactionManager.
mainTransactionManager
- must not be null.Rolls back the TransactionStatus registered for the given PlatformTransactionManager.
transactionManager
- must not be null.