com.vaadin.addon.jpacontainer.provider
Class BatchUpdatePerformedEvent<T>

java.lang.Object
  extended by com.vaadin.addon.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:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.addon.jpacontainer.EntityProviderChangeEvent
EntityProviderChangeEvent.EntitiesAddedEvent<T>, EntityProviderChangeEvent.EntitiesRemovedEvent<T>, EntityProviderChangeEvent.EntitiesUpdatedEvent<T>, EntityProviderChangeEvent.EntityPropertyUpdatedEvent<T>
 
Constructor Summary
BatchUpdatePerformedEvent(BatchableEntityProvider<T> entityProvider)
          Creates a new BatchUpdatePerformedEvent.
 
Method Summary
 Collection<T> getAffectedEntities()
          Gets the affected entities, if supported by the implementation.
 EntityProvider<T> getEntityProvider()
          Gets the entity provider whose contents has been changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchUpdatePerformedEvent

public BatchUpdatePerformedEvent(BatchableEntityProvider<T> entityProvider)
Creates a new BatchUpdatePerformedEvent.

Parameters:
entityProvider - the batchable entity provider.
Method Detail

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).


Copyright © 2013 Vaadin Ltd. All rights reserved.