|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityManagerManager
Manages EntityManagers for the current thread.
An EntityManager is created as needed and closed at the end of each request.
| Method Summary | |
|---|---|
javax.persistence.EntityManager |
getEntityManager(java.lang.String persistenceUnitName)
Gets the active EntityManager for this request, creating it as necessary. |
java.util.Map<java.lang.String,javax.persistence.EntityManager> |
getEntityManagers()
Gets all active EntityManagers for this request, creating them as necessary. |
| Method Detail |
|---|
javax.persistence.EntityManager getEntityManager(java.lang.String persistenceUnitName)
EntityManager for this request, creating it as necessary.
persistenceUnitName - the name of a persistence unit as defined in persistence.xml
- Returns:
- EntityManager for the persistence unit,
java.util.Map<java.lang.String,javax.persistence.EntityManager> getEntityManagers()
EntityManagers for this request, creating them as necessary.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||