|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
public abstract class AbstractJpaVendorAdapter
Abstract JpaVendorAdapter implementation that defines common properties, to be translated into vendor-specific JPA properties by subclasses.
Constructor Summary | |
---|---|
AbstractJpaVendorAdapter()
|
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). |
void |
postProcessEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
Post-process the EntityManagerFactory after it has been initialized. |
void |
setDatabase(Database database)
Specify the target database to operate on, as a value of the Database enum:
DB2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER, SYBASE |
void |
setDatabasePlatform(String databasePlatform)
Specify the name of the target database to operate on. |
void |
setGenerateDdl(boolean generateDdl)
Set whether to generate DDL after the EntityManagerFactory has been initialized, creating/updating all relevant tables. |
void |
setShowSql(boolean showSql)
Set whether to show SQL in the log (or in the console). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.springframework.orm.jpa.JpaVendorAdapter |
---|
getEntityManagerInterface, getJpaDialect, getJpaPropertyMap, getPersistenceProvider |
Constructor Detail |
---|
public AbstractJpaVendorAdapter()
Method Detail |
---|
public void setDatabase(Database database)
Database
enum:
DB2, HSQL, INFORMIX, MYSQL, ORACLE, POSTGRESQL, SQL_SERVER, SYBASE
protected Database getDatabase()
public void setDatabasePlatform(String databasePlatform)
protected String getDatabasePlatform()
public void setGenerateDdl(boolean generateDdl)
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".
protected boolean isGenerateDdl()
public void setShowSql(boolean showSql)
For more specific logging configuration, specify the appropriate vendor-specific settings as "jpaProperties".
protected boolean isShowSql()
public void postProcessEntityManagerFactory(javax.persistence.EntityManagerFactory emf)
postProcessEntityManagerFactory
in interface JpaVendorAdapter
emf
- the EntityManagerFactory to process
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |