|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SynchronizationManager
Manages transaction synchronizations: a list of actions to be done when
the transaction completes on the current thread. Interface is derived mostly from
TransactionSynchronizationManager
which is used by the Confluence implementation.
TransactionSynchronizationManager
,
TransactionSynchronization
,
ConfluenceSynchronizationManager
Method Summary | |
---|---|
java.util.List |
getSynchronizations()
Return an unmodifiable snapshot list of all registered synchronizations for the current thread. |
boolean |
isTransactionActive()
|
void |
registerSynchronization(org.springframework.transaction.support.TransactionSynchronization synchronization)
Registers a Spring TransactionSynchronization on the current transaction. |
void |
runOnSuccessfulCommit(java.lang.Runnable task)
Register a new task to be run on successful transaction commit. |
Method Detail |
---|
void runOnSuccessfulCommit(java.lang.Runnable task)
registerSynchronization(TransactionSynchronization)
.
isTransactionActive()
void registerSynchronization(org.springframework.transaction.support.TransactionSynchronization synchronization)
TransactionSynchronization
on the current transaction.
java.lang.IllegalStateException
- if there is no Spring transaction available.java.util.List getSynchronizations()
java.lang.IllegalStateException
- if transaction is not activeTransactionSynchronization
boolean isTransactionActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |