com.holonplatform.datastore.jpa.context

## Interface EntityManagerRunnable

- 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 interface EntityManagerRunnable

  Represents an operation to be executed using a Datastore managed `EntityManager`.

  Differently from `EntityManagerOperation`, the operation execution does not return any result.

  Since:
    5.1.0
  See Also:
    `EntityManagerOperation`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `execute(javax.persistence.EntityManager entityManager)` Execute an operation.

- - ### Method Detail

    - #### execute

          void execute(javax.persistence.EntityManager entityManager)
                throws Exception

      Execute an operation.
      Parameters:
        `entityManager` - EntityManager to use
      Throws:
        `Exception` - If an operation execution error occurred

Copyright © 2019 The Holon Platform. All rights reserved.