|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityManagerSource
Responsible for creating an EntityManager as needed.
Method Summary | |
---|---|
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 |
Method Detail |
---|
EntityManager create(String persistenceUnitName)
EntityManager
for the given persistence unit name.
persistenceUnitName
- the name of a persistence unit as defined in persistence.xml
- Returns:
- EntityManager for the given persistence unit name
EntityManagerFactory getEntityManagerFactory(String persistenceUnitName)
EntityManagerFactory
for the given persistence unit name, creating it as necessary.
persistenceUnitName
- the name of a persistence unit as defined in persistence.xml
- Returns:
- EntityManagerFactory for the given persistence unit name
List<PersistenceUnitInfo> getPersistenceUnitInfos()
persistence.xml.
- Returns:
- list of PersistenceUnitInfos
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |