com.holonplatform.datastore.jpa.context

## Interface JpaExecutionContext

- All Superinterfaces:
    com.holonplatform.core.ExpressionResolver.ExpressionResolverProvider, JpaContext

      public interface JpaExecutionContext
      extends JpaContext

  JPA operation execution context.
  Since:
    5.1.0

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `static JpaExecutionContext` | `create(JpaContext context, javax.persistence.EntityManager entityManager)` Create a new `JpaExecutionContext`.
    `javax.persistence.EntityManager` | `getEntityManager()` Get the `EntityManager` used by current operation execution.

    - ### Methods inherited from interface com.holonplatform.datastore.jpa.context.JpaContext

      `getDialect, getEntityManagerFactory, getORMPlatform, getValueDeserializer, getValueSerializer, trace, traceOperation`

    - ### Methods inherited from interface com.holonplatform.core.ExpressionResolver.ExpressionResolverProvider

      `getExpressionResolvers`

- - ### Method Detail

    - #### getEntityManager

          javax.persistence.EntityManager getEntityManager()

      Get the `EntityManager` used by current operation execution.
      Returns:
        the `EntityManager` instance

    - #### create

          static JpaExecutionContext create(JpaContext context,
                                            javax.persistence.EntityManager entityManager)

      Create a new `JpaExecutionContext`.
      Parameters:
        `context` - JPA Context
        `entityManager` - Operation EntityManager
      Returns:
        A new `JpaExecutionContext`

Copyright © 2019 The Holon Platform. All rights reserved.