Interface BeforeCommitTransactionListener


public interface BeforeCommitTransactionListener
Interface for listeners notified before transaction commit. They are invoked after all "Before" but before "After" entity listeners.

BeforeCommitTransactionListener must be implemented by managed beans. They can also implement the Ordered interface to influence their execution order. A listener that does not implement the Ordered interface is appended to the end of the invocation list.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    beforeCommit(String storeName, Collection<Object> managedEntities)
    Invoked before transaction commit.
  • Method Details

    • beforeCommit

      void beforeCommit(String storeName, Collection<Object> managedEntities)
      Invoked before transaction commit.
      Parameters:
      storeName - data store name
      managedEntities - current persistence context, i.e. a collection of entities in Managed state