Class BatchUpdatePerformedEvent<T>
java.lang.Object
com.vaadin.featurepack.data.jpacontainer.provider.BatchUpdatePerformedEvent<T>
- All Implemented Interfaces:
EntityProviderChangeEvent<T>,Serializable
Event indicating that a batch update has been performed.
- Since:
- 1.0
- Author:
- Petter Holmström (Vaadin Ltd)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.featurepack.data.jpacontainer.EntityProviderChangeEvent
EntityProviderChangeEvent.EntitiesAddedEvent<T>, EntityProviderChangeEvent.EntitiesRemovedEvent<T>, EntityProviderChangeEvent.EntitiesUpdatedEvent<T>, EntityProviderChangeEvent.EntityPropertyUpdatedEvent<T> -
Constructor Summary
ConstructorsConstructorDescriptionBatchUpdatePerformedEvent(BatchableEntityProvider<T> entityProvider) Creates a newBatchUpdatePerformedEvent. -
Method Summary
Modifier and TypeMethodDescriptionGets the affected entities, if supported by the implementation.Gets the entity provider whose contents has been changed.
-
Constructor Details
-
BatchUpdatePerformedEvent
Creates a newBatchUpdatePerformedEvent.- Parameters:
entityProvider- the batchable entity provider.
-
-
Method Details
-
getAffectedEntities
Description copied from interface:EntityProviderChangeEventGets 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:
getAffectedEntitiesin interfaceEntityProviderChangeEvent<T>- Returns:
- an unmodifiable collection of affected entities (never null, but may be empty).
-
getEntityProvider
Description copied from interface:EntityProviderChangeEventGets the entity provider whose contents has been changed.- Specified by:
getEntityProviderin interfaceEntityProviderChangeEvent<T>- Returns:
- the entity manager (never null).
-