Class PostUpdateEvent

  • All Implemented Interfaces:
    IPortalEvent

    @StableMinor(version="14.0",
                 sinceVersion="4.2")
    public class PostUpdateEvent
    extends PersistenceEvent
    Event raised after the update of an entity in 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: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
    • Method Detail

      • getOldEntities

        public List<?> getOldEntities()
        Returns the entity state before the update. Each entity in the list returned corresponds to the entity in the same index of the list returned by getEntities().

        Note that this information may not be available in the event, depending on who generated the event. In this case, this method will return null.

        Returns:
        the entity state before the update.
        Since:
        4.1.0