Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » orm » jpa » [javadoc | source]
org.springframework.orm.jpa
abstract public class: SharedEntityManagerCreator [javadoc | source]
java.lang.Object
   org.springframework.orm.jpa.SharedEntityManagerCreator
Factory for a shareable JPA javax.persistence.EntityManager for a given javax.persistence.EntityManagerFactory .

The shareable EntityManager will behave just like an EntityManager fetched from an application server's JNDI environment, as defined by the JPA specification. It will delegate all calls to the current transactional EntityManager, if any; otherwise it will fall back to a newly created EntityManager per operation.

Method from org.springframework.orm.jpa.SharedEntityManagerCreator Summary:
createSharedEntityManager,   createSharedEntityManager,   createSharedEntityManager
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.orm.jpa.SharedEntityManagerCreator Detail:
 public static EntityManager createSharedEntityManager(EntityManagerFactory emf) 
    Create a transactional EntityManager proxy for the given EntityManagerFactory.
 public static EntityManager createSharedEntityManager(EntityManagerFactory emf,
    Map properties) 
    Create a transactional EntityManager proxy for the given EntityManagerFactory.
 public static EntityManager createSharedEntityManager(EntityManagerFactory emf,
    Map properties,
    Class entityManagerInterfaces) 
    Create a transactional EntityManager proxy for the given EntityManagerFactory.