Class PreDeleteEvent

  • All Implemented Interfaces:
    IPortalEvent

    @StableMinor(version="16.1",
                 sinceVersion="4.2")
    public class PreDeleteEvent
    extends PersistenceEvent
    Event raised before the delete of an entity from persistence.

    Note: A persistence event may have been generated during a JPA entity lifecycle callback. In such situations, JPA limitations (such as the application should not access EntityManager, other entities, or change relations) apply.

    Since:
    4.1.0
    Version:
    $Revision: 26156 $ $Date: 2024-01-13 10:26:46 -0300 (Sat, 13 Jan 2024) $
    • Constructor Detail

      • PreDeleteEvent

        public PreDeleteEvent​(SessionConfig sessionConfig,
                              java.lang.Class<?> entityClass,
                              java.lang.Object entity,
                              ITransaction transaction)
      • PreDeleteEvent

        public PreDeleteEvent​(SessionConfig sessionConfig,
                              java.lang.Class<?> entityClass,
                              java.util.Collection<?> entities,
                              ITransaction transaction)