public class EntityManagerServiceImpl extends java.lang.Object implements EntityManagerService
| Constructor and Description |
|---|
EntityManagerServiceImpl(EntityManagerFactoryCache emfCache) |
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.EntityManager |
getEntityManager(java.lang.String unitName,
HibernateProxy proxy,
javax.transaction.Transaction transaction)
Returns the EntityManager associated with the given transaction.
|
public EntityManagerServiceImpl(EntityManagerFactoryCache emfCache)
public javax.persistence.EntityManager getEntityManager(java.lang.String unitName,
HibernateProxy proxy,
javax.transaction.Transaction transaction)
throws org.fabric3.api.host.Fabric3Exception
EntityManagerServicegetEntityManager in interface EntityManagerServiceunitName - the persistence unit nameproxy - the proxy requesting the EntityManagertransaction - the transactionorg.fabric3.api.host.Fabric3Exception - if an error creating the EntityManager is encountered