Class JtaEntityManagerRegistry.EntityManagerTracker

java.lang.Object
org.apache.openejb.persistence.JtaEntityManagerRegistry.EntityManagerTracker
Enclosing class:
JtaEntityManagerRegistry

public static class JtaEntityManagerRegistry.EntityManagerTracker extends Object
This object is used track all EntityManagers inherited in order to effectively close it when the latest Extended persistence context is no more accessed.
  • Constructor Details

    • EntityManagerTracker

      public EntityManagerTracker(jakarta.persistence.EntityManager entityManager, boolean autoJoinTx)
  • Method Details

    • incCounter

      public int incCounter()
    • decCounter

      public int decCounter()
    • getEntityManager

      public jakarta.persistence.EntityManager getEntityManager()