Class RegisteredSynchronization

  • All Implemented Interfaces:

    public class RegisteredSynchronization
    extends Object
    implements jakarta.transaction.Synchronization
    The JTA Synchronization Hibernate registers when needed for JTA callbacks.

    Note that we split the notion of the registered Synchronization and the processing of the Synchronization callbacks mainly to account for "separation of concerns", but also so that the transaction engine does not have to hold reference to the actual Synchronization that gets registered with the JTA system.

    • Method Detail

      • beforeCompletion

        public void beforeCompletion()
        Specified by:
        beforeCompletion in interface jakarta.transaction.Synchronization
      • afterCompletion

        public void afterCompletion​(int status)
        Specified by:
        afterCompletion in interface jakarta.transaction.Synchronization