Fabric3 JPA/Hibernate Extension

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) $

Method Summary
 javax.persistence.EntityManager getEntityManager(String unitName, HibernateProxy proxy, Transaction transaction)
          Returns the EntityManager associated with the given transaction.
 

Method Detail

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 name
proxy - the proxy requesting the EntityManager
transaction - the transaction
Returns:
the EntityManager
Throws:
EntityManagerCreationException - if an error creating the EntityManager is encountered

Fabric3 JPA/Hibernate Extension

Copyright © 2007-2012 Metaform Systems.