类 OpenJpaVendorAdapter
- java.lang.Object
- org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
- org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter
- 所有已实现的接口:
JpaVendorAdapter
public class OpenJpaVendorAdapter extends AbstractJpaVendorAdapter
JpaVendorAdapter
implementation for Apache OpenJPA. Developed and tested against OpenJPA 2.2.Exposes OpenJPA's persistence provider and EntityManager extension interface, and adapts
AbstractJpaVendorAdapter
's common configuration settings. No support for the detection of annotated packages (throughSmartPersistenceUnitInfo.getManagedPackages()
) since OpenJPA doesn't use package-level metadata.- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller, Costin Leau
- 另请参阅:
OpenJpaDialect
,PersistenceProviderImpl
,OpenJPAEntityManager
构造器概要
构造器 构造器 说明 OpenJpaVendorAdapter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected String
determineDatabaseDictionary(Database database)
Determine the OpenJPA database dictionary name for the given database.Class<? extends EntityManagerFactory>
getEntityManagerFactoryInterface()
Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement.Class<? extends EntityManager>
getEntityManagerInterface()
Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement.OpenJpaDialect
getJpaDialect()
Return the vendor-specific JpaDialect implementation for this provider, ornull
if there is none.Map<String,Object>
getJpaPropertyMap()
Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance.PersistenceProvider
getPersistenceProvider()
Return the vendor-specific persistence provider.String
getPersistenceProviderRootPackage()
Return the name of the persistence provider's root package (e.g.从类继承的方法 org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
getDatabase, getDatabasePlatform, getJpaPropertyMap, isGenerateDdl, isShowSql, postProcessEntityManagerFactory, setDatabase, setDatabasePlatform, setGenerateDdl, setShowSql
构造器详细资料
OpenJpaVendorAdapter
public OpenJpaVendorAdapter()
方法详细资料
getPersistenceProvider
public PersistenceProvider getPersistenceProvider()
从接口复制的说明:JpaVendorAdapter
Return the vendor-specific persistence provider.
getPersistenceProviderRootPackage
public String getPersistenceProviderRootPackage()
从接口复制的说明:JpaVendorAdapter
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.
getJpaPropertyMap
public Map<String,Object> getJpaPropertyMap()
从接口复制的说明:JpaVendorAdapter
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.
- 指定者:
getJpaPropertyMap
在接口中JpaVendorAdapter
- 覆盖:
getJpaPropertyMap
在类中AbstractJpaVendorAdapter
- 返回:
- a Map of JPA properties, as accepted by the standard JPA bootstrap facilities, or an empty Map if there are no properties to expose
- 另请参阅:
Persistence.createEntityManagerFactory(String, Map)
determineDatabaseDictionary
protected String determineDatabaseDictionary(Database database)
Determine the OpenJPA database dictionary name for the given database.- 参数:
database
- the specified database- 返回:
- the OpenJPA database dictionary name, or
null
if none found
getJpaDialect
public OpenJpaDialect getJpaDialect()
从接口复制的说明:JpaVendorAdapter
Return the vendor-specific JpaDialect implementation for this provider, ornull
if there is none.- 指定者:
getJpaDialect
在接口中JpaVendorAdapter
- 覆盖:
getJpaDialect
在类中AbstractJpaVendorAdapter
getEntityManagerFactoryInterface
public Class<? extends EntityManagerFactory> getEntityManagerFactoryInterface()
从接口复制的说明:JpaVendorAdapter
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
EntityManagerFactory
class here.
getEntityManagerInterface
public Class<? extends EntityManager> getEntityManagerInterface()
从接口复制的说明:JpaVendorAdapter
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
EntityManager
class here.