Class JTASessionContext.CleanupSync

java.lang.Object
org.hibernate.context.internal.JTASessionContext.CleanupSync
All Implemented Interfaces:
Synchronization
Enclosing class:
JTASessionContext

protected static class JTASessionContext.CleanupSync extends Object implements Synchronization
JTA transaction sync used for cleanup of the internal session map.
  • Constructor Details

  • Method Details

    • beforeCompletion

      public void beforeCompletion()
      Description copied from interface: Synchronization
      The beforeCompletion method is called by the transaction manager prior to the start of the two-phase transaction commit process. This call is executed with the transaction context of the transaction that is being committed.
      Specified by:
      beforeCompletion in interface Synchronization
    • afterCompletion

      public void afterCompletion(int i)
      Description copied from interface: Synchronization
      This method is called by the transaction manager after the transaction is committed or rolled back.
      Specified by:
      afterCompletion in interface Synchronization
      Parameters:
      i - The status of the transaction completion.