Interface PersistenceUnitService

  • All Known Subinterfaces:
    PersistenceUnitService

    public interface PersistenceUnitService
    Persistence unit service
    Author:
    Scott Marlow
    • Method Detail

      • getEntityManagerFactory

        javax.persistence.EntityManagerFactory getEntityManagerFactory()
        get the entity manager factory that represents the persistence unit service. This corresponds to a persistence unit definition in a persistence.xml
        Returns:
        EntityManagerFactory or null if this service has not been started or has been stopped
      • getScopedPersistenceUnitName

        String getScopedPersistenceUnitName()
        Gets the scoped name of this persistence unit.
        Returns:
        the name