Class PostUpdateEvent

  • All Implemented Interfaces:
    IPortalEvent

    @StableMinor(version="14.2",
                 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: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
    • 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