Package org.jipijapa.plugin.spi
Interface PersistenceUnitService
- All Known Subinterfaces:
PersistenceUnitService
public interface PersistenceUnitService
Persistence unit service
- Author:
- Scott Marlow
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.persistence.EntityManagerFactoryget 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
nullif this service has not been started or has been stopped
-
getScopedPersistenceUnitName
String getScopedPersistenceUnitName()Gets the scoped name of this persistence unit.- Returns:
- the name
-