Interface TransactionSynchronizationRegistry


  • public interface TransactionSynchronizationRegistry
    The TransactionSynchronizationRegistry.
    Author:
    Manfred Riem ([email protected])
    • Method Detail

      • getResource

        Object getResource​(Object key)
        Get 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()
        Get the transaction key.
        Returns:
        the transaction key.
      • getTransactionStatus

        int getTransactionStatus()
        Get the transaction status.
        Returns:
        the transaction status.
      • putResource

        void putResource​(Object key,
                         Object value)
        Put the resource.
        Parameters:
        key - the key.
        value - the value.
      • registerInterposedSynchronization

        void registerInterposedSynchronization​(Synchronization synchronization)
        Register for interposed synchronization.
        Parameters:
        synchronization - the interposed synchronization.
      • setRollbackOnly

        void setRollbackOnly()
        Set for rollback only.