|
||||||||||
| 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 | |
|---|---|
javax.persistence.EntityManager |
getEntityManager(String unitName,
javax.persistence.PersistenceContextType type)
Gets an entity manager for the given unit name and the extra attributes. |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory(String unitName)
Gets an entity manager factory for the given unit name. |
Map<String,String> |
getProperty(String name)
Gets property values in each persistence unit info |
void |
merge(EZBPersistenceUnitManager otherPersistenceUnitManager)
Merge the persistence context of a an other persistent unit manager in this one. |
void |
setProperty(String name,
String value)
Set a property in persistence unit. |
void |
setProperty(String name,
String value,
String persistenceUnitName)
Set a property in persistence unit. |
| Method Detail |
|---|
javax.persistence.EntityManager getEntityManager(String unitName,
javax.persistence.PersistenceContextType type)
unitName - the name of the persistence unittype - the type of the persistence context
javax.persistence.EntityManagerFactory getEntityManagerFactory(String unitName)
unitName - the name of the persistence unit
void merge(EZBPersistenceUnitManager otherPersistenceUnitManager)
otherPersistenceUnitManager - the other persistence unit manager
that will be merged into this one.
void setProperty(String name,
String value)
name - property namevalue - property value
void setProperty(String name,
String value,
String persistenceUnitName)
name - property namevalue - property valuepersistenceUnitName - specific persistenceUnitName. If null, set the property
in all persistence unitsMap<String,String> getProperty(String name)
name - property name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||