org.fabric3.jpa.runtime.proxy
Interface EntityManagerService
- All Known Implementing Classes:
- EntityManagerServiceImpl
public interface EntityManagerService
Responsible for returning an EntityManager with a persitence context tied to an execution context.
- Version:
- $Rev: 11083 $ $Date: 2012-06-21 10:38:50 +0000 (Thu, 21 Jun 2012) $
getEntityManager
javax.persistence.EntityManager getEntityManager(String unitName,
HibernateProxy proxy,
Transaction transaction)
throws EntityManagerCreationException
- Returns the EntityManager associated with the given transaction.
- Parameters:
unitName - the persistence unit nameproxy - the proxy requesting the EntityManagertransaction - the transaction
- Returns:
- the EntityManager
- Throws:
EntityManagerCreationException - if an error creating the EntityManager is encountered
Copyright © 2007-2012 Metaform Systems.