java.lang.Object | |
↳ | org.springframework.orm.jpa.EntityManagerFactoryAccessor |
Known Direct Subclasses |
Known Indirect Subclasses |
Base class for any class that needs to access an EntityManagerFactory, usually in order to obtain an EntityManager. Defines common properties.
Not intended to be used directly. See JpaAccessor
.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the JPA EntityManagerFactory that should be used to create
EntityManagers.
| |||||||||||
Allow Map access to the JPA properties to be passed to the persistence
provider, with the option to add or override specific entries.
| |||||||||||
Set the JPA EntityManagerFactory that should be used to create
EntityManagers.
| |||||||||||
Specify JPA properties, to be passed into
EntityManagerFactory.createEntityManager(Map) (if any). | |||||||||||
Specify JPA properties as a Map, to be passed into
EntityManagerFactory.createEntityManager(Map) (if any). |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtain a new EntityManager from this accessor's EntityManagerFactory.
| |||||||||||
Obtain the transactional EntityManager for this accessor's EntityManagerFactory, if any.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Logger available to subclasses
Return the JPA EntityManagerFactory that should be used to create EntityManagers.
Allow Map access to the JPA properties to be passed to the persistence provider, with the option to add or override specific entries.
Useful for specifying entries directly, for example via "jpaPropertyMap[myKey]".
Set the JPA EntityManagerFactory that should be used to create EntityManagers.
Specify JPA properties, to be passed into
EntityManagerFactory.createEntityManager(Map)
(if any).
Can be populated with a String "value" (parsed via PropertiesEditor) or a "props" element in XML bean definitions.
Specify JPA properties as a Map, to be passed into
EntityManagerFactory.createEntityManager(Map)
(if any).
Can be populated with a "map" or "props" element in XML bean definitions.
Obtain a new EntityManager from this accessor's EntityManagerFactory.
Can be overridden in subclasses to create specific EntityManager variants.
IllegalStateException | if this accessor is not configured with an EntityManagerFactory |
---|
Obtain the transactional EntityManager for this accessor's EntityManagerFactory, if any.
null
if noneIllegalStateException | if this accessor is not configured with an EntityManagerFactory |
---|