Class EntityCommitEvent<T extends PersistenceEntity>


  • public class EntityCommitEvent<T extends PersistenceEntity>
    extends ModuleEvent
    EntityCommitEvent is a ModuleEvent indicating a list of entities have been created/deleted/changed in persistence. The transaction has been committed.
    Since:
    4.2
    • Constructor Detail

      • EntityCommitEvent

        public EntityCommitEvent​(PersistenceDataBackingBean<T> backingBean,
                                 java.util.List<T> entities,
                                 ActionDescriptor actionDescriptor)
        Constructor
        Parameters:
        backingBean - event source
        entities - a list of entities affected by the transaction
        actionDescriptor - the ActionDescriptor of the transaction
    • Method Detail

      • getEntities

        public java.util.List getEntities()
        Get the list of entities affected.
        Returns:
        entities
      • setEntities

        public void setEntities​(java.util.List entities)
        Set the list of entities affected.
        Parameters:
        entities - a list of entities
      • getActionDescriptor

        public ActionDescriptor getActionDescriptor()
        Get the ActionDescriptor of the event.
        Returns:
        actionDescriptor
      • setActionDescriptor

        public void setActionDescriptor​(ActionDescriptor actionDescriptor)
        Set the ActionDescriptor of the event.
        Parameters:
        actionDescriptor - the ActionDescriptor to set
      • getBackingBean

        public PersistenceDataBackingBean<T> getBackingBean()
        Get the backing bean of the entities oommitted.
        Returns:
        entity or entity list bean
        Since:
        5.13