|
|||||||||
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 EntityManager |
getEntityManager(EZBEJBContext ejbContext,
java.lang.String unitName,
PersistenceContextType type)
Gets an entity manager for the given session Context. |
static EntityManagerFactory |
getEntityManagerFactory(EZBEJBContext ejbContext,
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 EntityManager getEntityManager(EZBEJBContext ejbContext, java.lang.String unitName, PersistenceContextType type)
ejbContext
- on which we should provide an entity manager.unitName
- name of the persistence unit.type
- the persistence context type.
public static EntityManagerFactory getEntityManagerFactory(EZBEJBContext ejbContext, java.lang.String unitName)
ejbContext
- 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 |