Class FlushSynchronization

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

    @Internal
    public class FlushSynchronization
    extends io.micronaut.transaction.support.TransactionSynchronizationAdapter
    Simple synchronization adapter that propagates a flush() call to the underlying Hibernate Session. Used in combination with JTA.
    Since:
    4.2
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.micronaut.transaction.support.TransactionSynchronization

        io.micronaut.transaction.support.TransactionSynchronization.Status
    • 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
      boolean equals​(java.lang.Object other)  
      void flush()  
      int hashCode()  
      • Methods inherited from class io.micronaut.transaction.support.TransactionSynchronizationAdapter

        afterCommit, afterCompletion, beforeCommit, beforeCompletion, getOrder, resume, suspend
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • flush

        public void flush()
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in interface io.micronaut.transaction.support.TransactionSynchronization
        Overrides:
        flush in class io.micronaut.transaction.support.TransactionSynchronizationAdapter
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object