Java org.springframework.orm.jpa LocalContainerEntityManagerFactoryBean fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.orm.jpa LocalContainerEntityManagerFactoryBean fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.orm.jpa LocalContainerEntityManagerFactoryBean.

The text is from its open source code.

Subclass

org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidafterPropertiesSet()
DataSourcegetDataSource()
MapgetJpaPropertyMap()
Allow Map access to the JPA properties to be passed to the persistence provider, with the option to add or override specific entries.
EntityManagerFactorygetNativeEntityManagerFactory()
EntityManagerFactorygetObject()
Return the singleton EntityManagerFactory.
StringgetPersistenceUnitName()
voidsetBeanClassLoader(ClassLoader classLoader)
voidsetDataSource(DataSource dataSource)
Specify the JDBC DataSource that the JPA persistence provider is supposed to use for accessing the database.
voidsetJpaDialect(@Nullable JpaDialect jpaDialect)
Specify the vendor-specific JpaDialect implementation to associate with this EntityManagerFactory.
voidsetJpaProperties(Properties jpaProperties)
Specify JPA properties, to be passed into Persistence.createEntityManagerFactory (if any).
voidsetJpaPropertyMap(@Nullable Map jpaProperties)
Specify JPA properties as a Map, to be passed into Persistence.createEntityManagerFactory (if any).
voidsetJpaVendorAdapter(@Nullable JpaVendorAdapter jpaVendorAdapter)
Specify the JpaVendorAdapter implementation for the desired JPA provider, if any.
voidsetJtaDataSource(DataSource jtaDataSource)
Specify the JDBC DataSource that the JPA persistence provider is supposed to use for accessing the database.
voidsetLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver)
Specify the Spring LoadTimeWeaver to use for class instrumentation according to the JPA class transformer contract.
voidsetMappingResources(String... mappingResources)
Specify one or more mapping resources (equivalent to entries in persistence.xml ) for the default persistence unit.
voidsetPackagesToScan(String... packagesToScan)
Set whether to use Spring-based scanning for entity classes in the classpath instead of using JPA's standard scanning of jar files with persistence.xml markers in them.
voidsetPersistenceProvider(@Nullable PersistenceProvider persistenceProvider)
Set the PersistenceProvider instance to use for creating the EntityManagerFactory.
voidsetPersistenceProviderClass(Class persistenceProviderClass)
Set the PersistenceProvider implementation class to use for creating the EntityManagerFactory.
voidsetPersistenceUnitManager(PersistenceUnitManager persistenceUnitManager)
Set the PersistenceUnitManager to use for obtaining the JPA persistence unit that this FactoryBean is supposed to build an EntityManagerFactory for.
voidsetPersistenceUnitName(@Nullable String persistenceUnitName)
Uses the specified persistence unit name as the name of the default persistence unit, if applicable.
voidsetPersistenceUnitPostProcessors(PersistenceUnitPostProcessor... postProcessors)
Set the PersistenceUnitPostProcessors to be applied to the PersistenceUnitInfo used for creating this EntityManagerFactory.
voidsetPersistenceXmlLocation(String persistenceXmlLocation)
Set the location of the persistence.xml file we want to use.
voidsetSharedCacheMode(SharedCacheMode sharedCacheMode)
Specify the JPA 2.0 shared cache mode for this persistence unit, overriding a value in persistence.xml if set.
voidsetValidationMode(ValidationMode validationMode)
Specify the JPA 2.0 validation mode for this persistence unit, overriding a value in persistence.xml if set.