Interface JPAEntityManagerAccessor

  • All Known Implementing Classes:
    ResourceLocalEntityManagerAccessor

    public interface JPAEntityManagerAccessor
    JPAEntityManagerAccessor for getting JPA entity managers.
    Since:
    5.17
    • Method Detail

      • getEntityManager

        javax.persistence.EntityManager getEntityManager​(QueryDescriptor queryDescriptor)
        Get the JPA entity manager for the queryDescriptor.
        Parameters:
        queryDescriptor - query descriptor
        Returns:
        EntityManager instance
      • clearEntityManagers

        void clearEntityManagers​(QueryDescriptor queryDescriptor)
        Clear entity mangers for the queryDescriptor, including detaching entities and clearing cached EntityManagers if appropriate.
        Parameters:
        queryDescriptor - queryDescriptor, null for all persistence units