| java.lang.Object org.springframework.orm.jpa.AbstractEntityManagerFactoryBean
All known Subclasses: org.springframework.orm.jpa.LocalEntityManagerFactoryBean, org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean,
logger | final protected Log logger(Code) | | Logger available to subclasses
|
nativeEntityManagerFactory | public EntityManagerFactory nativeEntityManagerFactory(Code) | | Raw EntityManagerFactory as returned by the PersistenceProvider
|
afterPropertiesSet | final public void afterPropertiesSet() throws PersistenceException(Code) | | |
createEntityManagerFactoryProxy | protected EntityManagerFactory createEntityManagerFactoryProxy(EntityManagerFactory emf)(Code) | | Create a proxy of the given EntityManagerFactory. We do this to be able
to return transaction-aware proxies for application-managed
EntityManagers, and to introduce the NamedEntityManagerFactory interface
Parameters: emf - EntityManagerFactory as returned by the persistence provider proxy entity manager |
createNativeEntityManagerFactory | abstract protected EntityManagerFactory createNativeEntityManagerFactory() throws PersistenceException(Code) | | Subclasses must implement this method to create the EntityManagerFactory
that will be returned by the getObject() method
EntityManagerFactory instance returned by this FactoryBean throws: PersistenceException - if the EntityManager cannot be created |
destroy | public void destroy()(Code) | | Close the EntityManagerFactory on bean factory shutdown.
|
getEntityManagerInterface | public Class<? extends EntityManager> getEntityManagerInterface()(Code) | | |
getJpaPropertyMap | public Map getJpaPropertyMap()(Code) | | 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]".
|
getNativeEntityManagerFactory | public EntityManagerFactory getNativeEntityManagerFactory()(Code) | | |
getObject | public EntityManagerFactory getObject()(Code) | | Return the singleton EntityManagerFactory.
|
getPersistenceProvider | public PersistenceProvider getPersistenceProvider()(Code) | | |
getPersistenceUnitInfo | public PersistenceUnitInfo getPersistenceUnitInfo()(Code) | | |
getPersistenceUnitName | public String getPersistenceUnitName()(Code) | | |
isSingleton | public boolean isSingleton()(Code) | | |
setJpaDialect | public void setJpaDialect(JpaDialect jpaDialect)(Code) | | Specify the vendor-specific JpaDialect implementation to associate with
this EntityManagerFactory. This will be exposed through the
EntityManagerFactoryInfo interface, to be picked up as default dialect by
accessors that intend to use JpaDialect functionality.
See Also: EntityManagerFactoryInfo.getJpaDialect |
setJpaProperties | public void setJpaProperties(Properties jpaProperties)(Code) | | Specify JPA properties, to be passed into
Persistence.createEntityManagerFactory (if any).
Can be populated with a String "value" (parsed via PropertiesEditor) or a
"props" element in XML bean definitions.
See Also: javax.persistence.Persistence.createEntityManagerFactory(Stringjava.util.Map) See Also: javax.persistence.spi.PersistenceProvider.createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfojava.util.Map) |
setJpaPropertyMap | public void setJpaPropertyMap(Map jpaProperties)(Code) | | Specify JPA properties as a Map, to be passed into
Persistence.createEntityManagerFactory (if any).
Can be populated with a "map" or "props" element in XML bean definitions.
See Also: javax.persistence.Persistence.createEntityManagerFactory(Stringjava.util.Map) See Also: javax.persistence.spi.PersistenceProvider.createContainerEntityManagerFactory(javax.persistence.spi.PersistenceUnitInfojava.util.Map) |
setJpaVendorAdapter | public void setJpaVendorAdapter(JpaVendorAdapter jpaVendorAdapter)(Code) | | Specify the JpaVendorAdapter implementation for the desired JPA provider,
if any. This will initialize appropriate defaults for the given provider,
such as persistence provider class and JpaDialect, unless locally
overridden in this FactoryBean.
|
setPersistenceProvider | public void setPersistenceProvider(PersistenceProvider persistenceProvider)(Code) | | Set the PersistenceProvider instance to use for creating the
EntityManagerFactory. If not specified, the persistence provider
will be taken from the JpaVendorAdapter (if any) or determined
by the persistence unit deployment descriptor (as far as possible).
See Also: JpaVendorAdapter.getPersistenceProvider See Also: javax.persistence.spi.PersistenceProvider See Also: javax.persistence.Persistence |
setPersistenceProviderClass | public void setPersistenceProviderClass(Class<? extends PersistenceProvider> persistenceProviderClass)(Code) | | Set the PersistenceProvider implementation class to use for creating the
EntityManagerFactory. If not specified, the persistence provider will be
taken from the JpaVendorAdapter (if any) or retrieved through scanning
(as far as possible).
See Also: JpaVendorAdapter.getPersistenceProvider See Also: javax.persistence.spi.PersistenceProvider See Also: javax.persistence.Persistence |
setPersistenceUnitName | public void setPersistenceUnitName(String persistenceUnitName)(Code) | | Specify the name of the EntityManagerFactory configuration.
Default is none, indicating the default EntityManagerFactory
configuration. The persistence provider will throw an exception if
ambiguous EntityManager configurations are found.
See Also: javax.persistence.Persistence.createEntityManagerFactory(String) |
|
|