| java.lang.Object org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
All known Subclasses: org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter, org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter, org.springframework.orm.jpa.vendor.TopLinkJpaVendorAdapter,
AbstractJpaVendorAdapter | abstract public class AbstractJpaVendorAdapter implements JpaVendorAdapter(Code) | | Abstract JpaVendorAdapter implementation that defines common properties,
to be translated into vendor-specific JPA properties by subclasses.
author: Juergen Hoeller author: Rod Johnson since: 2.0 |
Method Summary | |
protected Database | getDatabase() Return the target database to operate on. | protected String | getDatabasePlatform() Return the name of the target database to operate on. | protected boolean | isGenerateDdl() Return whether to generate DDL after the EntityManagerFactory has been initialized
creating/updating all relevant tables. | protected boolean | isShowSql() Return whether to show SQL in the log (or in the console). | public void | postProcessEntityManagerFactory(EntityManagerFactory emf) Post-process the EntityManagerFactory after it has been initialized. | public void | setDatabase(Database database) | public void | setDatabasePlatform(String databasePlatform) Specify the name of the target database to operate on. | public void | setGenerateDdl(boolean generateDdl) Set whether to generate DDL after the EntityManagerFactory has been initialized,
creating/updating all relevant tables.
Note that the exact semantics of this flag depend on the underlying
persistence provider. | public void | setShowSql(boolean showSql) Set whether to show SQL in the log (or in the console). |
getDatabase | protected Database getDatabase()(Code) | | Return the target database to operate on.
|
getDatabasePlatform | protected String getDatabasePlatform()(Code) | | Return the name of the target database to operate on.
|
isGenerateDdl | protected boolean isGenerateDdl()(Code) | | Return whether to generate DDL after the EntityManagerFactory has been initialized
creating/updating all relevant tables.
|
isShowSql | protected boolean isShowSql()(Code) | | Return whether to show SQL in the log (or in the console).
|
postProcessEntityManagerFactory | public void postProcessEntityManagerFactory(EntityManagerFactory emf)(Code) | | Post-process the EntityManagerFactory after it has been initialized.
Parameters: emf - the EntityManagerFactory to process |
setDatabase | public void setDatabase(Database database)(Code) | | Specify the target database to operate on, as a value
of the Database enum:
DB2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER, SYBASE
|
setDatabasePlatform | public void setDatabasePlatform(String databasePlatform)(Code) | | Specify the name of the target database to operate on.
The supported values are vendor-dependent platform identifiers.
|
setGenerateDdl | public void setGenerateDdl(boolean generateDdl)(Code) | | Set whether to generate DDL after the EntityManagerFactory has been initialized,
creating/updating all relevant tables.
Note that the exact semantics of this flag depend on the underlying
persistence provider. For any more advanced needs, specify the appropriate
vendor-specific settings as "jpaProperties".
See Also: org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.setJpaProperties |
|
|