Class BatchableLocalEntityProvider<T>

All Implemented Interfaces:
BatchableEntityProvider<T>, EntityProvider<T>, EntityProviderChangeNotifier<T>, MutableEntityProvider<T>, Serializable

public class BatchableLocalEntityProvider<T> extends MutableLocalEntityProvider<T> implements BatchableEntityProvider<T>
A very simple implementation of BatchableEntityProvider that simply passes itself to the BatchableEntityProvider.BatchUpdateCallback. No data consistency checks are performed. On some occations, this can cause trouble in real applications. Please see the BatchableEntityProvider interface JavaDocs and the JPAContainer manual for more information.
Since:
1.0
Author:
Petter Holmström (Vaadin Ltd)
See Also:
  • Constructor Details

    • BatchableLocalEntityProvider

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

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