| java.lang.Object org.ow2.easybeans.injection.EntityManagerHelper
EntityManagerHelper | final public class EntityManagerHelper (Code) | | Helper class for injecting EntityManager instance in the bean.
author: Florent Benoit |
Method Summary | |
public static EntityManager | getEntityManager(EZBEJBContext ejbContext, String unitName, PersistenceContextType type) Gets an entity manager for the given session Context.
Parameters: ejbContext - on which we should provide an entity manager. Parameters: unitName - name of the persistence unit. Parameters: type - the persistence context type. | public static EntityManagerFactory | getEntityManagerFactory(EZBEJBContext ejbContext, String unitName) Gets an entity manager factory for the given session Context.
Parameters: ejbContext - on which we should provide an entity managerfactory. Parameters: unitName - name of the persistence unit. |
getEntityManager | public static EntityManager getEntityManager(EZBEJBContext ejbContext, String unitName, PersistenceContextType type)(Code) | | Gets an entity manager for the given session Context.
Parameters: ejbContext - on which we should provide an entity manager. Parameters: unitName - name of the persistence unit. Parameters: type - the persistence context type. instance of an entity manager which will be used by thebean/interceptor. |
getEntityManagerFactory | public static EntityManagerFactory getEntityManagerFactory(EZBEJBContext ejbContext, String unitName)(Code) | | Gets an entity manager factory for the given session Context.
Parameters: ejbContext - on which we should provide an entity managerfactory. Parameters: unitName - name of the persistence unit. instance of an entity manager factory which will be used by thebean/interceptor. |
|
|