public interface EntityManagerSource
Modifier and Type | Method and Description |
---|---|
EntityManager |
create(String persistenceUnitName)
Creates an EntityManager for the given persistence unit name.
|
EntityManagerFactory |
getEntityManagerFactory(String persistenceUnitName)
Gets the EntityManagerFactory for the given persistence unit name, creating it as necessary.
|
List<PersistenceUnitInfo> |
getPersistenceUnitInfos()
Get the list of PersistenceUnitInfo parsed from
persistence.xml . |
EntityManager create(String persistenceUnitName)
persistenceUnitName
- the name of a persistence unit as defined in persistence.xml
EntityManagerFactory getEntityManagerFactory(String persistenceUnitName)
persistenceUnitName
- the name of a persistence unit as defined in persistence.xml
List<PersistenceUnitInfo> getPersistenceUnitInfos()
persistence.xml
.5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.