Class BatchUpdatePerformedEvent<T>

java.lang.Object
com.vaadin.featurepack.data.jpacontainer.provider.BatchUpdatePerformedEvent<T>
All Implemented Interfaces:
EntityProviderChangeEvent<T>, Serializable

public class BatchUpdatePerformedEvent<T> extends Object implements EntityProviderChangeEvent<T>
Event indicating that a batch update has been performed.
Since:
1.0
Author:
Petter Holmström (Vaadin Ltd)
See Also:
  • Constructor Details

    • BatchUpdatePerformedEvent

      public BatchUpdatePerformedEvent(BatchableEntityProvider<T> entityProvider)
      Creates a new BatchUpdatePerformedEvent.
      Parameters:
      entityProvider - the batchable entity provider.
  • Method Details

    • getAffectedEntities

      public Collection<T> getAffectedEntities()
      Description copied from interface: EntityProviderChangeEvent
      Gets the affected entities, if supported by the implementation. If entities have been modified, this collection may contain all modified entities, if entities have been added, this collection may contain all added entities, etc. If the number of changed entities is very large, e.g. due to a major change in the entire data source, the collection may be empty.
      Specified by:
      getAffectedEntities in interface EntityProviderChangeEvent<T>
      Returns:
      an unmodifiable collection of affected entities (never null, but may be empty).
    • getEntityProvider

      public EntityProvider<T> getEntityProvider()
      Description copied from interface: EntityProviderChangeEvent
      Gets the entity provider whose contents has been changed.
      Specified by:
      getEntityProvider in interface EntityProviderChangeEvent<T>
      Returns:
      the entity manager (never null).