|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EntityManagerStore
| Method Summary | |
|---|---|
Map<String,javax.persistence.EntityManager> |
getCache()
|
javax.persistence.EntityManager |
getEntityManager(String persistenceUnit)
|
void |
initialize()
Run this to initialize all persistence units. |
void |
terminate()
Run this to close all persistence units. |
| Method Detail |
|---|
void initialize()
PostConstruct, so it runs as soon as an EntityManager gets injected.
void terminate()
PreDestroy, so it runs as soon as the scope the EntityManager is
attached to ends.
Map<String,javax.persistence.EntityManager> getCache()
javax.persistence.EntityManager getEntityManager(String persistenceUnit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||