Package jakarta.transaction
Interface TransactionSynchronizationRegistry
public interface TransactionSynchronizationRegistry
The TransactionSynchronizationRegistry.
- Author:
- Manfred Riem ([email protected])
-
Method Summary
Modifier and TypeMethodDescriptiongetResource(Object key)
Returns the resource.boolean
Has rollback only been set?Returns the transaction key.int
Returns the transaction status.void
putResource(Object key, Object value)
Put the resource.void
registerInterposedSynchronization(Synchronization synchronization)
Register for interposed synchronization.void
Set for rollback only.
-
Method Details
-
getResource
Returns the resource.- Parameters:
key
- the key.- Returns:
- the resource
-
getRollbackOnly
boolean getRollbackOnly()Has rollback only been set?- Returns:
- true if it is, false otherwise.
-
getTransactionKey
Object getTransactionKey()Returns the transaction key.- Returns:
- the transaction key
-
getTransactionStatus
int getTransactionStatus()Returns the transaction status.- Returns:
- the transaction status
-
putResource
Put the resource.- Parameters:
key
- the key.value
- the value.
-
registerInterposedSynchronization
Register for interposed synchronization.- Parameters:
synchronization
- the interposed synchronization.
-
setRollbackOnly
void setRollbackOnly()Set for rollback only.
-