JpaVendorAdapter implementation that defines common properties,
to be translated into vendor-specific JPA properties by concrete subclasses.
| Modifier and Type | Field and Description |
|---|---|
| private Database | |
| private String | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Database | |
| protected String | |
| public Class | getEntityManagerFactoryInterface()
Overrides default org. Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement. |
| public Class | getEntityManagerInterface()
Overrides default org. Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement. |
| public JpaDialect | getJpaDialect()
Overrides default org. Return the vendor-specific JpaDialect implementation for this
provider, or |
| public Map | getJpaPropertyMap(PersistenceUnitInfo
the PersistenceUnitInfo for the current persistence unit pui)Overrides default org. Return a Map of vendor-specific JPA properties for the given persistence unit, typically based on settings in this JpaVendorAdapter instance. |
| public Map | getJpaPropertyMap()
Overrides default org. Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance. |
| public String | getPersistenceProviderRootPackage()
Overrides default org. Return the name of the persistence provider's root package (e.g. "oracle.toplink.essentials"). |
| protected boolean | isGenerateDdl()
Return whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables. |
| protected boolean | |
| public void | postProcessEntityManager(EntityManager em)
Overrides default org. Optional callback for post-processing the native EntityManager before active use. |
| public void | postProcessEntityManagerFactory(EntityManagerFactory emf)
Overrides default org. Optional callback for post-processing the native EntityManagerFactory before active use. |
| public void | setDatabase(Database database)
Specify the target database to operate on, as a value of the Note This setting will override your JPA provider's default algorithm. |
| public void | |
| public void | setGenerateDdl(boolean generateDdl)
Set whether to generate DDL after the EntityManagerFactory has been initialized, creating/updating all relevant tables. |
| public void |
| database | back to summary |
|---|---|
| private Database database | |
| databasePlatform | back to summary |
|---|---|
| private String databasePlatform
| |
| generateDdl | back to summary |
|---|---|
| private boolean generateDdl | |
| showSql | back to summary |
|---|---|
| private boolean showSql | |
| AbstractJpaVendorAdapter | back to summary |
|---|---|
| public AbstractJpaVendorAdapter() | |
| getDatabase | back to summary |
|---|---|
| protected Database getDatabase() Return the target database to operate on. | |
| getDatabasePlatform | back to summary |
|---|---|
| protected String getDatabasePlatform() Return the name of the target database to operate on.
| |
| getEntityManagerFactoryInterface | back to summary |
|---|---|
| public Class Overrides default org. Doc from org. Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement. If the provider does not offer any EntityManagerFactory extensions,
the adapter should simply return the standard
| |
| getEntityManagerInterface | back to summary |
|---|---|
| public Class Overrides default org. Doc from org. Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement. If the provider does not offer any EntityManager extensions,
the adapter should simply return the standard
| |
| getJpaDialect | back to summary |
|---|---|
| public JpaDialect getJpaDialect() Overrides default org. Doc from org. Return the vendor-specific JpaDialect implementation for this
provider, or | |
| getJpaPropertyMap | back to summary |
|---|---|
| public Map Overrides default org. Doc from org. Return a Map of vendor-specific JPA properties for the given persistence unit, typically based on settings in this JpaVendorAdapter instance. Note that there might be further JPA properties defined on the EntityManagerFactory bean, which might potentially override individual JPA property values specified here. This implementation delegates to Note This variant will only be invoked in case of Jakarta EE style
container bootstrapping where a
| |
| getJpaPropertyMap | back to summary |
|---|---|
| public Map Overrides default org. Doc from org. Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance. Note that there might be further JPA properties defined on the EntityManagerFactory bean, which might potentially override individual JPA property values specified here. | |
| getPersistenceProviderRootPackage | back to summary |
|---|---|
| public String getPersistenceProviderRootPackage() Overrides default org. Doc from org. Return the name of the persistence provider's root package (e.g. "oracle.toplink.essentials"). Will be used for excluding provider classes from temporary class overriding. | |
| isGenerateDdl | back to summary |
|---|---|
| protected boolean isGenerateDdl() Return whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables. | |
| isShowSql | back to summary |
|---|---|
| protected boolean isShowSql() Return whether to show SQL in the log (or in the console). | |
| postProcessEntityManager | back to summary |
|---|---|
| public void postProcessEntityManager(EntityManager em) Overrides default org. Doc from org. Optional callback for post-processing the native EntityManager before active use. This can be used for setting vendor-specific parameters, e.g. Hibernate filters, on every new EntityManager.
| |
| postProcessEntityManagerFactory | back to summary |
|---|---|
| public void postProcessEntityManagerFactory(EntityManagerFactory emf) Overrides default org. Doc from org. Optional callback for post-processing the native EntityManagerFactory before active use. This can be used for triggering vendor-specific initialization processes. While this is not expected to be used for most providers, it is included here as a general extension hook.
| |
| setDatabase | back to summary |
|---|---|
| public void setDatabase(Database database) Specify the target database to operate on, as a value of the Note This setting will override your JPA provider's default algorithm. Custom vendor properties may still fine-tune the database dialect. However, there may nevertheless be conflicts: For example, specify either this setting or Hibernate's "hibernate.dialect_resolvers" property, not both. | |
| setDatabasePlatform | back to summary |
|---|---|
| public void setDatabasePlatform(String databasePlatform) Specify the name of the target database to operate on. The supported values are vendor-dependent platform identifiers. | |
| setGenerateDdl | back to summary |
|---|---|
| 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. For any more advanced needs, specify the appropriate vendor-specific settings as "jpaProperties". NOTE: Do not set this flag to 'true' while also setting JPA's
| |
| setShowSql | back to summary |
|---|---|
| public void setShowSql(boolean showSql) Set whether to show SQL in the log (or in the console). For more specific logging configuration, specify the appropriate vendor-specific settings as "jpaProperties". | |