Top Description Fields Constructors Methods
org.springframework.orm.jpa.vendor

public Class EclipseLinkJpaVendorAdapter

extends AbstractJpaVendorAdapter
Class Inheritance
Imports
java.util.HashMap, .Map, java.util.logging.Level, jakarta.persistence.EntityManager, jakarta.persistence.spi.PersistenceProvider, org.eclipse.persistence.config.PersistenceUnitProperties, .TargetDatabase, org.eclipse.persistence.jpa.JpaEntityManager, org.springframework.lang.Nullable

org.springframework.orm.jpa.JpaVendorAdapter implementation for Eclipse Persistence Services (EclipseLink). Compatible with EclipseLink 3.0/4.0.

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 org.springframework.orm.jpa.persistenceunit.SmartPersistenceUnitInfo#getManagedPackages()) since EclipseLink doesn't use package-level metadata.

Authors
Juergen Hoeller, Thomas Risberg
Since
2.5.2
See Also
EclipseLinkJpaDialect, org.eclipse.persistence.jpa.PersistenceProvider, org.eclipse.persistence.jpa.JpaEntityManager

Field Summary

Modifier and TypeField and Description
private final EclipseLinkJpaDialect
private final PersistenceProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String

Returns:

the EclipseLink target database name, or null if none found
determineTargetDatabaseName
(Database
the specified database
database
)

Determine the EclipseLink target database name for the given database.

public Class<? extends EntityManager>
getEntityManagerInterface()

Overrides org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter.getEntityManagerInterface.

Overrides default org.springframework.orm.jpa.JpaVendorAdapter.getEntityManagerInterface.

Return the vendor-specific EntityManager interface that this provider's EntityManagers will implement.
public EclipseLinkJpaDialect
getJpaDialect()

Overrides org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter.getJpaDialect.

Overrides default org.springframework.orm.jpa.JpaVendorAdapter.getJpaDialect.

Return the vendor-specific JpaDialect implementation for this provider, or null if there is none.
public Map<String, Object>
getJpaPropertyMap()

Overrides org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter.getJpaPropertyMap.

Overrides default org.springframework.orm.jpa.JpaVendorAdapter.getJpaPropertyMap.

Return a Map of vendor-specific JPA properties, typically based on settings in this JpaVendorAdapter instance.
public PersistenceProvider
getPersistenceProvider()

Implements org.springframework.orm.jpa.JpaVendorAdapter.getPersistenceProvider.

Return the vendor-specific persistence provider.
Inherited from org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter:
getDatabasegetDatabasePlatformgetEntityManagerFactoryInterfacegetJpaPropertyMapgetPersistenceProviderRootPackageisGenerateDdlisShowSqlpostProcessEntityManagerpostProcessEntityManagerFactorysetDatabasesetDatabasePlatformsetGenerateDdlsetShowSql

Field Detail

jpaDialectback to summary
private final EclipseLinkJpaDialect jpaDialect
persistenceProviderback to summary
private final PersistenceProvider persistenceProvider

Constructor Detail

EclipseLinkJpaVendorAdapterback to summary
public EclipseLinkJpaVendorAdapter()

Method Detail

determineTargetDatabaseNameback to summary
protected String determineTargetDatabaseName(Database database)

Determine the EclipseLink target database name for the given database.

Parameters
database:Database

the specified database

Returns:String

the EclipseLink target database name, or null if none found

Annotations
@Nullable
getEntityManagerInterfaceback to summary
public Class<? extends EntityManager> getEntityManagerInterface()

Overrides org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter.getEntityManagerInterface.

Overrides default org.springframework.orm.jpa.JpaVendorAdapter.getEntityManagerInterface.

Doc from org.springframework.orm.jpa.JpaVendorAdapter.getEntityManagerInterface.

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 jakarta.persistence.EntityManager class here.

Annotations
@Override
getJpaDialectback to summary
public EclipseLinkJpaDialect getJpaDialect()

Overrides org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter.getJpaDialect.

Overrides default org.springframework.orm.jpa.JpaVendorAdapter.getJpaDialect.

Doc from org.springframework.orm.jpa.JpaVendorAdapter.getJpaDialect.

Return the vendor-specific JpaDialect implementation for this provider, or null if there is none.

Annotations
@Override
getJpaPropertyMapback to summary
public Map<String, Object> getJpaPropertyMap()

Overrides org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter.getJpaPropertyMap.

Overrides default org.springframework.orm.jpa.JpaVendorAdapter.getJpaPropertyMap.

Doc from org.springframework.orm.jpa.JpaVendorAdapter.getJpaPropertyMap.

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.

Returns:Map<String, Object>

a Map of JPA properties, as accepted by the standard JPA bootstrap facilities, or an empty Map if there are no properties to expose

Annotations
@Override
getPersistenceProviderback to summary
public PersistenceProvider getPersistenceProvider()

Implements org.springframework.orm.jpa.JpaVendorAdapter.getPersistenceProvider.

Doc from org.springframework.orm.jpa.JpaVendorAdapter.getPersistenceProvider.

Return the vendor-specific persistence provider.

Annotations
@Override