Class EclipseLinkJpaVendorAdapter
java.lang.Object
org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter
- All Implemented Interfaces:
JpaVendorAdapter
JpaVendorAdapter implementation for Eclipse
Persistence Services (EclipseLink). Developed and tested against EclipseLink 2.7;
backwards-compatible with EclipseLink 2.5 and 2.6 at runtime.
Exposes EclipseLink's persistence provider and EntityManager extension interface,
and adapts AbstractJpaVendorAdapter's common configuration settings.
No support for the detection of annotated packages (through
SmartPersistenceUnitInfo.getManagedPackages())
since EclipseLink doesn't use package-level metadata.
- Since:
- 2.5.2
- Author:
- Juergen Hoeller, Thomas Risberg
- See Also:
-
EclipseLinkJpaDialectPersistenceProviderJpaEntityManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdetermineTargetDatabaseName(Database database) Determine the EclipseLink target database name for the given database.Class<? extends EntityManager>Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement.Return the vendor-specific JpaDialect implementation for this provider, ornullif there is none.Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance.Return the vendor-specific persistence provider.Methods inherited from class org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
getDatabase, getDatabasePlatform, getEntityManagerFactoryInterface, getJpaPropertyMap, getPersistenceProviderRootPackage, isGenerateDdl, isShowSql, postProcessEntityManager, postProcessEntityManagerFactory, setDatabase, setDatabasePlatform, setGenerateDdl, setShowSql
-
Constructor Details
-
EclipseLinkJpaVendorAdapter
public EclipseLinkJpaVendorAdapter()
-
-
Method Details
-
getPersistenceProvider
Description copied from interface:JpaVendorAdapterReturn the vendor-specific persistence provider. -
getJpaPropertyMap
Description copied from interface:JpaVendorAdapterReturn 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.
- Specified by:
getJpaPropertyMapin interfaceJpaVendorAdapter- Overrides:
getJpaPropertyMapin classAbstractJpaVendorAdapter- Returns:
- a Map of JPA properties, as accepted by the standard JPA bootstrap facilities, or an empty Map if there are no properties to expose
- See Also:
-
determineTargetDatabaseName
Determine the EclipseLink target database name for the given database.- Parameters:
database- the specified database- Returns:
- the EclipseLink target database name, or
nullif none found
-
getJpaDialect
Description copied from interface:JpaVendorAdapterReturn the vendor-specific JpaDialect implementation for this provider, ornullif there is none.- Specified by:
getJpaDialectin interfaceJpaVendorAdapter- Overrides:
getJpaDialectin classAbstractJpaVendorAdapter
-
getEntityManagerInterface
Description copied from interface:JpaVendorAdapterReturn 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
EntityManagerclass here.- Specified by:
getEntityManagerInterfacein interfaceJpaVendorAdapter- Overrides:
getEntityManagerInterfacein classAbstractJpaVendorAdapter
-