com.holonplatform.datastore.jpa

## Interface JpaDatastore.EntityManagerFinalizer

- All Known Subinterfaces:
    JpaDatastore.EntityManagerLifecycleHandler, SpringEntityManagerLifecycleHandler
  Enclosing interface:
    JpaDatastore
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public static interface JpaDatastore.EntityManagerFinalizer

  Interface to perform any close/finalize operation on the `EntityManager` instance used for a Datastore operation execution

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static JpaDatastore.EntityManagerFinalizer` | `createDefault()` Create a default `JpaDatastore.EntityManagerFinalizer`, which invokes the `EntityManager.close()` method to finalize the `EntityManager` instance.
    `void` | `finalizeEntityManager(javax.persistence.EntityManager entityManager)` Get/create the `EntityManager` instance to use when executing a Datastore operation

- - ### Method Detail

    - #### finalizeEntityManager

          void finalizeEntityManager(javax.persistence.EntityManager entityManager)

      Get/create the `EntityManager` instance to use when executing a Datastore operation
      Parameters:
        `entityManager` - EntityManager to finalize

    - #### createDefault

          static JpaDatastore.EntityManagerFinalizer createDefault()

      Create a default `JpaDatastore.EntityManagerFinalizer`, which invokes the `EntityManager.close()` method to finalize the `EntityManager` instance.
      Returns:
        A default `JpaDatastore.EntityManagerFinalizer`

Copyright © 2019 The Holon Platform. All rights reserved.