类 EclipseLinkJpaVendorAdapter
- java.lang.Object
- org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
- org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter
- 所有已实现的接口:
JpaVendorAdapter
public class EclipseLinkJpaVendorAdapter extends AbstractJpaVendorAdapter
JpaVendorAdapter
implementation for Eclipse Persistence Services (EclipseLink). Developed and tested against EclipseLink 2.4.Exposes EclipseLink'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 EclipseLink doesn't use package-level metadata.- 从以下版本开始:
- 2.5.2
- 作者:
- Juergen Hoeller, Thomas Risberg
- 另请参阅:
EclipseLinkJpaDialect
,PersistenceProvider
,JpaEntityManager
构造器概要
构造器 构造器 说明 EclipseLinkJpaVendorAdapter()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected String
determineTargetDatabaseName(Database database)
Determine the EclipseLink target database name for the given database.Class<? extends EntityManager>
getEntityManagerInterface()
Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement.EclipseLinkJpaDialect
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.从类继承的方法 org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
getDatabase, getDatabasePlatform, getEntityManagerFactoryInterface, getJpaPropertyMap, getPersistenceProviderRootPackage, isGenerateDdl, isShowSql, postProcessEntityManagerFactory, setDatabase, setDatabasePlatform, setGenerateDdl, setShowSql
构造器详细资料
EclipseLinkJpaVendorAdapter
public EclipseLinkJpaVendorAdapter()
方法详细资料
getPersistenceProvider
public PersistenceProvider getPersistenceProvider()
从接口复制的说明:JpaVendorAdapter
Return the vendor-specific persistence provider.
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)
determineTargetDatabaseName
protected String determineTargetDatabaseName(Database database)
Determine the EclipseLink target database name for the given database.- 参数:
database
- the specified database- 返回:
- the EclipseLink target database name, or
null
if none found
getJpaDialect
public EclipseLinkJpaDialect getJpaDialect()
从接口复制的说明:JpaVendorAdapter
Return the vendor-specific JpaDialect implementation for this provider, ornull
if there is none.- 指定者:
getJpaDialect
在接口中JpaVendorAdapter
- 覆盖:
getJpaDialect
在类中AbstractJpaVendorAdapter
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.