Class CachingBatchableLocalEntityProvider<T>

All Implemented Interfaces:
BatchableEntityProvider<T>, CachingEntityProvider<T>, EntityProvider<T>, EntityProviderChangeNotifier<T>, MutableEntityProvider<T>, Serializable
Direct Known Subclasses:
CachingBatchableEntityProvider

public class CachingBatchableLocalEntityProvider<T> extends CachingMutableLocalEntityProvider<T> implements BatchableEntityProvider<T>
A very simple implementation of BatchableEntityProvider with caching support that simply passes itself to the BatchableEntityProvider.BatchUpdateCallback. No data consistency checks are performed.
Since:
1.0
Author:
Petter Holmström (Vaadin Ltd)
See Also:
  • Constructor Details

    • CachingBatchableLocalEntityProvider

      public CachingBatchableLocalEntityProvider(Class<T> entityClass)
      Creates a new CachingBatchableLocalEntityProvider. The entity manager must be set using LocalEntityProvider.setEntityManager(javax.persistence.EntityManager).
      Parameters:
      entityClass - the entity class (must not be null).
    • CachingBatchableLocalEntityProvider

      public CachingBatchableLocalEntityProvider(Class<T> entityClass, jakarta.persistence.EntityManager entityManager)
      Creates a new CachingBatchableLocalEntityProvider.
      Parameters:
      entityClass - the entity class (must not be null).
      entityManager - the entity manager to use (must not be null).
  • Method Details