|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.injection.EntityManagerHelper
public final class EntityManagerHelper
Helper class for injecting EntityManager instance in the bean.
Field Summary | |
---|---|
private static JLog |
logger
Logger. |
Constructor Summary | |
---|---|
private |
EntityManagerHelper()
Utility class, no public constructor. |
Method Summary | |
---|---|
static javax.persistence.EntityManager |
getEntityManager(EasyBeansSessionContext sessionContext,
java.lang.String unitName,
javax.persistence.PersistenceContextType type)
Gets an entity manager for the given session Context. |
static javax.persistence.EntityManagerFactory |
getEntityManagerFactory(EasyBeansSessionContext sessionContext,
java.lang.String unitName)
Gets an entity manager factory for the given session Context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JLog logger
Constructor Detail |
---|
private EntityManagerHelper()
Method Detail |
---|
public static javax.persistence.EntityManager getEntityManager(EasyBeansSessionContext sessionContext, java.lang.String unitName, javax.persistence.PersistenceContextType type)
sessionContext
- on which we should provide an entity manager.unitName
- name of the persistence unit.type
- the persistence context type.
public static javax.persistence.EntityManagerFactory getEntityManagerFactory(EasyBeansSessionContext sessionContext, java.lang.String unitName)
sessionContext
- on which we should provide an entity manager
factory.unitName
- name of the persistence unit.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |