|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EZBPersistenceUnitManager
Allows to get persistence units and allow to return EntityManager or EntityManagerFactory.
Method Summary | |
---|---|
void |
addCurrent()
Create a new EntityManager on each PersistenceContext. |
void |
closeCurrentAndReturnToPrevious()
Sets back to the previous entity manager and close the current entity manager for each persistence context. |
javax.persistence.EntityManager |
getEntityManager(java.lang.String unitName,
javax.persistence.PersistenceContextType type)
Gets an entity manager for the given unit name and the extra attributes. |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory(java.lang.String unitName)
Gets an entity manager factory for the given unit name. |
void |
merge(EZBPersistenceUnitManager otherPersistenceUnitManager)
Merge the persistence context of a an other persistent unit manager in this one. |
Method Detail |
---|
javax.persistence.EntityManager getEntityManager(java.lang.String unitName, javax.persistence.PersistenceContextType type)
unitName
- the name of the persistence unittype
- the type of the persistence context
javax.persistence.EntityManagerFactory getEntityManagerFactory(java.lang.String unitName)
unitName
- the name of the persistence unit
void addCurrent()
void closeCurrentAndReturnToPrevious()
void merge(EZBPersistenceUnitManager otherPersistenceUnitManager)
otherPersistenceUnitManager
- the other persistence unit manager
that will be merged into this one.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |