Package org.jipijapa.plugin.spi
Interface PersistenceUnitService
-
- All Known Subinterfaces:
PersistenceUnitService
public interface PersistenceUnitServicePersistence unit service- Author:
- Scott Marlow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description jakarta.persistence.EntityManagerFactorygetEntityManagerFactory()get the entity manager factory that represents the persistence unit service.StringgetScopedPersistenceUnitName()Gets the scoped name of this persistence unit.
-
-
-
Method Detail
-
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
-
-