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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a transactional EntityManager proxy for the given EntityManagerFactory.
| |||||||||||
Create a transactional EntityManager proxy for the given EntityManagerFactory.
| |||||||||||
Create a transactional EntityManager proxy for the given EntityManagerFactory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a transactional EntityManager proxy for the given EntityManagerFactory.
emf | EntityManagerFactory to obtain EntityManagers from as needed |
---|---|
properties | the properties to be passed into the
createEntityManager call (may be null ) |
entityManagerInterfaces | the interfaces to be implemented by the EntityManager. Allows the addition or specification of proprietary interfaces. |
Create a transactional EntityManager proxy for the given EntityManagerFactory.
emf | the EntityManagerFactory to delegate to.
If this implements the EntityManagerFactoryInfo interface,
appropriate handling of the native EntityManagerFactory and available
EntityManagerPlusOperations will automatically apply. |
---|---|
properties | the properties to be passed into the
createEntityManager call (may be null ) |
Create a transactional EntityManager proxy for the given EntityManagerFactory.
emf | the EntityManagerFactory to delegate to.
If this implements the EntityManagerFactoryInfo interface,
appropriate handling of the native EntityManagerFactory and available
EntityManagerPlusOperations will automatically apply. |
---|