public class SpringJpaFactory extends Object
| Constructor and Description |
|---|
SpringJpaFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DataSource |
newDataSource(DataSourceBean dataSourceBean)
Factory method for create the new
DataSource object from the given
DataSourceBean object. |
static org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean |
newEntityManagerFactoryBean(String persistenceUnitName,
DataSource dataSource,
org.springframework.orm.jpa.JpaVendorAdapter vendorAdapter,
Properties jpaProperties)
Factory method for create the new
LocalContainerEntityManagerFactoryBean object from
the given persistence unit name as String object, the DataSource object, the
JpaVendorAdapter object and the jpa Properties. |
static org.springframework.jdbc.core.JdbcTemplate |
newJdbcTemplate(DataSource dataSource)
Factory method for create the new
JdbcTemplate object from the given
DataSource object. |
static org.springframework.orm.jpa.JpaVendorAdapter |
newJpaVendorAdapter(org.springframework.orm.jpa.vendor.Database db)
Factory method for create the new
JpaVendorAdapter object from the given
Database object. |
static org.springframework.orm.jpa.JpaTransactionManager |
newTransactionManager(javax.persistence.EntityManagerFactory entityManagerFactory)
Factory method for create the new
JpaTransactionManager object from the given
EntityManagerFactory object. |
public static DataSource newDataSource(DataSourceBean dataSourceBean)
DataSource object from the given
DataSourceBean object.dataSourceBean - the DataSourceBean objectDataSourcepublic static org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean newEntityManagerFactoryBean(String persistenceUnitName, DataSource dataSource, org.springframework.orm.jpa.JpaVendorAdapter vendorAdapter, Properties jpaProperties)
LocalContainerEntityManagerFactoryBean object from
the given persistence unit name as String object, the DataSource object, the
JpaVendorAdapter object and the jpa Properties.persistenceUnitName - the persistence unit namedataSource - the data sourcevendorAdapter - the vendor adapterjpaProperties - the jpa propertiesLocalContainerEntityManagerFactoryBean objectpublic static org.springframework.jdbc.core.JdbcTemplate newJdbcTemplate(DataSource dataSource)
JdbcTemplate object from the given
DataSource object.dataSource - the DataSource objectJdbcTemplatepublic static org.springframework.orm.jpa.JpaVendorAdapter newJpaVendorAdapter(org.springframework.orm.jpa.vendor.Database db)
JpaVendorAdapter object from the given
Database object.db - the Database objectJpaVendorAdapterpublic static org.springframework.orm.jpa.JpaTransactionManager newTransactionManager(javax.persistence.EntityManagerFactory entityManagerFactory)
JpaTransactionManager object from the given
EntityManagerFactory object.entityManagerFactory - EntityManagerFactory objectJpaTransactionManagerCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.