org.jbpm.process.audit.strategy

## Class StandaloneLocalStrategy

- java.lang.Object
- - org.jbpm.process.audit.strategy.StandaloneLocalStrategy

- All Implemented Interfaces:
    PersistenceStrategy

      public class StandaloneLocalStrategy
      extends Object
      implements PersistenceStrategy

  This strategy is used by instances that are
  - used outside the `KieSession`
  - use their own `EntityManager` instance per operation

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected javax.persistence.EntityManagerFactory` | `emf`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `StandaloneLocalStrategy(javax.persistence.EntityManagerFactory emf)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `dispose()`
    `javax.persistence.EntityManager` | `getEntityManager()`
    `Object` | `joinTransaction(javax.persistence.EntityManager em)`
    `void` | `leaveTransaction(javax.persistence.EntityManager em, Object transaction)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### emf

          protected javax.persistence.EntityManagerFactory emf

  - ### Constructor Detail

    - #### StandaloneLocalStrategy

          public StandaloneLocalStrategy(javax.persistence.EntityManagerFactory emf)

  - ### Method Detail

    - #### getEntityManager

          public javax.persistence.EntityManager getEntityManager()

      Specified by:
        `getEntityManager` in interface `PersistenceStrategy`

    - #### joinTransaction

          public Object joinTransaction(javax.persistence.EntityManager em)

      Specified by:
        `joinTransaction` in interface `PersistenceStrategy`

    - #### leaveTransaction

          public void leaveTransaction(javax.persistence.EntityManager em,
                                       Object transaction)

      Specified by:
        `leaveTransaction` in interface `PersistenceStrategy`

    - #### dispose

          public void dispose()

      Specified by:
        `dispose` in interface `PersistenceStrategy`

Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.