Interface PersistenceUnitService

All Known Subinterfaces:
PersistenceUnitService

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

    Modifier and Type
    Method
    Description
    jakarta.persistence.EntityManagerFactory
    get the entity manager factory that represents the persistence unit service.
    Gets the scoped name of this persistence unit.
  • Method Details

    • getEntityManagerFactory

      jakarta.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