class MultiTransactionStatus extends java.lang.Object implements org.springframework.transaction.TransactionStatus
org.springframework.transaction.TransactionStatus implementation to orchestrate org.springframework.transaction.TransactionStatus instances for multiple org.springframework.transaction.PlatformTransactionManager instances.
Modifiers | Name | Description |
---|---|---|
private static class |
MultiTransactionStatus.SavePoints |
Modifiers | Name | Description |
---|---|---|
private org.springframework.transaction.PlatformTransactionManager |
mainTransactionManager |
|
private boolean |
newSynchronization |
|
private java.util.Map<org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.TransactionStatus> |
transactionStatuses |
Constructor and description |
---|
MultiTransactionStatus
(org.springframework.transaction.PlatformTransactionManager mainTransactionManager) Creates a new MultiTransactionStatus for the given org.springframework.transaction.PlatformTransactionManager. |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
commit(org.springframework.transaction.PlatformTransactionManager transactionManager) |
|
public java.lang.Object |
createSavepoint() |
|
public void |
flush() |
|
private org.springframework.transaction.TransactionStatus |
getMainTransactionStatus() |
|
private org.springframework.transaction.TransactionStatus |
getTransactionStatus(org.springframework.transaction.PlatformTransactionManager transactionManager) |
|
public java.util.Map<org.springframework.transaction.PlatformTransactionManager, org.springframework.transaction.TransactionStatus> |
getTransactionStatuses() |
|
public boolean |
hasSavepoint() |
|
public boolean |
isCompleted() |
|
public boolean |
isNewSynchronization() |
|
public boolean |
isNewTransaction() |
|
public boolean |
isRollbackOnly() |
|
public void |
registerTransactionManager(org.springframework.transaction.TransactionDefinition definition, org.springframework.transaction.PlatformTransactionManager transactionManager) |
|
public void |
releaseSavepoint(java.lang.Object savepoint) |
|
public void |
rollback(org.springframework.transaction.PlatformTransactionManager transactionManager) Rolls back the org.springframework.transaction.TransactionStatus registered for the given org.springframework.transaction.PlatformTransactionManager. |
|
public void |
rollbackToSavepoint(java.lang.Object savepoint) |
|
public void |
setNewSynchronization() |
|
public void |
setRollbackOnly() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a new MultiTransactionStatus for the given org.springframework.transaction.PlatformTransactionManager.
mainTransactionManager
- must not be null.Rolls back the org.springframework.transaction.TransactionStatus registered for the given org.springframework.transaction.PlatformTransactionManager.
transactionManager
- must not be null.