Class SessionSynchronization

  • All Implemented Interfaces:
    io.micronaut.core.order.Ordered, TransactionSynchronization, java.io.Flushable

    @Internal
    public class SessionSynchronization
    extends java.lang.Object
    implements TransactionSynchronization, io.micronaut.core.order.Ordered
    Callback for resource cleanup at the end of a Spring-managed transaction for a pre-bound Hibernate Session.
    Since:
    4.2
    Author:
    Juergen Hoeller, graemerocher
    • Field Summary

      • Fields inherited from interface io.micronaut.core.order.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterCommit()
      Invoked after transaction commit.
      void afterCompletion​(TransactionSynchronization.Status status)
      Invoked after transaction commit/rollback.
      void beforeCommit​(boolean readOnly)
      Invoked before transaction commit (before "beforeCompletion").
      void beforeCompletion()
      Invoked before transaction commit/rollback.
      void flush()
      Flush the underlying session to the datastore, if applicable: for example, a Hibernate/JPA session.
      int getOrder()  
      void resume()
      Resume this synchronization.
      void suspend()
      Suspend this synchronization.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait