Interface JpaLifecycleListener

All Known Implementing Classes:
EntityLogImpl

public interface JpaLifecycleListener
Beans implementing this interface are notified by JPA implementation on their specific events.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Invoked before entity commit.
    default void
    onFlush(String storeName)
    Invoked before committing to data store.
  • Method Details

    • onEntityChange

      default void onEntityChange(Object entity, EntityOp type, @Nullable AttributeChanges changes)
      Invoked before entity commit.
      Parameters:
      entity - entity
      type - entity change type
      changes - object describing changes in the entity attributes - null for CREATE and DELETE change types
    • onFlush

      default void onFlush(String storeName)
      Invoked before committing to data store.
      Parameters:
      storeName - name of data store