Interface AfterCommitListener

All Superinterfaces:
org.hibernate.event.spi.PostCommitDeleteEventListener, org.hibernate.event.spi.PostCommitInsertEventListener, org.hibernate.event.spi.PostCommitUpdateEventListener, org.hibernate.event.spi.PostDeleteEventListener, org.hibernate.event.spi.PostInsertEventListener, org.hibernate.event.spi.PostUpdateEventListener
All Known Implementing Classes:
AfterCommitListenerImpl

public interface AfterCommitListener extends org.hibernate.event.spi.PostCommitInsertEventListener, org.hibernate.event.spi.PostCommitUpdateEventListener, org.hibernate.event.spi.PostCommitDeleteEventListener
Interface required to combine PostCommitInsertEventListener, PostCommitUpdateEventListener and PostCommitDeleteEventListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Register an EntityListener.entityDeleted(EntityEvent) for the given entities.
    void
    Register an EntityListener.entityUpdated(EntityEvent) for the given entities.
    boolean
    requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)
     

    Methods inherited from interface org.hibernate.event.spi.PostCommitDeleteEventListener

    onPostDeleteCommitFailed

    Methods inherited from interface org.hibernate.event.spi.PostCommitInsertEventListener

    onPostInsertCommitFailed

    Methods inherited from interface org.hibernate.event.spi.PostCommitUpdateEventListener

    onPostUpdateCommitFailed

    Methods inherited from interface org.hibernate.event.spi.PostDeleteEventListener

    onPostDelete

    Methods inherited from interface org.hibernate.event.spi.PostInsertEventListener

    onPostInsert

    Methods inherited from interface org.hibernate.event.spi.PostUpdateEventListener

    onPostUpdate
  • Method Details

    • registerEntityUpdatedEvent

      void registerEntityUpdatedEvent(List<Entity> entities)
      Register an EntityListener.entityUpdated(EntityEvent) for the given entities. The event will not be fired immediately but only after the transaction was committed successfully.
    • registerEntityDeletedEvent

      void registerEntityDeletedEvent(List<Entity> entities)
      Register an EntityListener.entityDeleted(EntityEvent) for the given entities. The event will not be fired immediately but only after the transaction was committed successfully.
    • requiresPostCommitHandling

      boolean requiresPostCommitHandling(org.hibernate.persister.entity.EntityPersister arg0)