public class MultiTransactionStatus extends Object implements org.springframework.transaction.TransactionStatus
TransactionStatus
Constructor and Description |
---|
MultiTransactionStatus(org.springframework.transaction.PlatformTransactionManager mainPTM)
Creates a TransactionStatus that handles several TransactionStatus
|
Modifier and Type | Method and Description |
---|---|
Object |
createSavepoint() |
void |
flush() |
org.springframework.transaction.TransactionStatus |
getTransactionStatus(org.springframework.transaction.PlatformTransactionManager ptm)
Gets the transaction status for the ptm
|
Map<org.springframework.transaction.PlatformTransactionManager,org.springframework.transaction.TransactionStatus> |
getTransactionStatuses()
"Getter method" for
_transactionStatuses |
boolean |
hasSavepoint() |
boolean |
isCompleted() |
boolean |
isNewSynchonization()
true if new synchronization
|
boolean |
isNewTransaction() |
boolean |
isRollbackOnly() |
void |
releaseSavepoint(Object savepoint) |
void |
rollbackToSavepoint(Object savepoint) |
void |
setNewSynchonization()
Sets new synchronization to true
|
void |
setRollbackOnly() |
void |
setTransactionStatuses(Map<org.springframework.transaction.PlatformTransactionManager,org.springframework.transaction.TransactionStatus> statuses)
"Setter method" for
_transactionStatuses |
public MultiTransactionStatus(org.springframework.transaction.PlatformTransactionManager mainPTM)
mainPTM
- will be default PlatformTransactionManager
for status informations (is*, has* methods)public void setNewSynchonization()
public boolean isNewSynchonization()
public org.springframework.transaction.TransactionStatus getTransactionStatus(org.springframework.transaction.PlatformTransactionManager ptm)
ptm
- the PlatformTransactionManager
public void flush()
public boolean hasSavepoint()
hasSavepoint
in interface org.springframework.transaction.TransactionStatus
public boolean isCompleted()
isCompleted
in interface org.springframework.transaction.TransactionStatus
public boolean isNewTransaction()
isNewTransaction
in interface org.springframework.transaction.TransactionStatus
public boolean isRollbackOnly()
isRollbackOnly
in interface org.springframework.transaction.TransactionStatus
public void setRollbackOnly()
setRollbackOnly
in interface org.springframework.transaction.TransactionStatus
public Object createSavepoint()
createSavepoint
in interface org.springframework.transaction.SavepointManager
public void releaseSavepoint(Object savepoint)
releaseSavepoint
in interface org.springframework.transaction.SavepointManager
public void rollbackToSavepoint(Object savepoint)
rollbackToSavepoint
in interface org.springframework.transaction.SavepointManager
public Map<org.springframework.transaction.PlatformTransactionManager,org.springframework.transaction.TransactionStatus> getTransactionStatuses()
_transactionStatuses
_transactionStatuses
public void setTransactionStatuses(Map<org.springframework.transaction.PlatformTransactionManager,org.springframework.transaction.TransactionStatus> statuses)
_transactionStatuses
statuses
- value of _transactionStatuses
Copyright © 2020 City of Paris. All rights reserved.