Class EclipseLinkJpaVendorAdapter

java.lang.Object
org.springframework.orm.jpa.vendor.AbstractJpaVendorAdapter
org.springframework.orm.jpa.vendor.EclipseLinkJpaVendorAdapter
All Implemented Interfaces:
JpaVendorAdapter

public class EclipseLinkJpaVendorAdapter extends AbstractJpaVendorAdapter
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 smartPersistenceUnitInfo.getManagedPackages()) since EclipseLink doesn't use package-level metadata.

since:
2.5.2
Author:
Juergen Hoeller, Thomas Risberg
see Also:
  • Constructor Details

    • EclipseLinkJpaVendorAdapter

      public EclipseLinkJpaVendorAdapter()
  • Method Details

    • getPersistenceProvider

      public jakarta.persistence.spi.PersistenceProvider getPersistenceProvider()
      Description copied from interface: JpaVendorAdapter
      Return the vendor-specific persistence provider.
    • getJpaPropertyMap

      public&nbsp;Map<string,Object>&nbsp;getJpaPropertyMap()
      Description copied from interface:&nbsp;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.

      specified by:
      getJpaPropertyMap&nbsp;in interface&nbsp;JpaVendorAdapter
      Overrides:
      getJpaPropertyMap&nbsp;in class&nbsp;AbstractJpaVendorAdapter
      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:
      • Persistence.createEntityManagerFactory(string, Map)
    • determineTargetDatabaseName

      protected&nbsp;@Nullable string&nbsp;determineTargetDatabaseName(Database&nbsp;database)
      Determine the EclipseLink target database name for the given database.
      Parameters:
      database - the specified database
      Returns:
      the EclipseLink target database name, or null if none found
    • getJpaDialect

      public&nbsp;EclipseLinkJpaDialect&nbsp;getJpaDialect()
      Description copied from interface:&nbsp;JpaVendorAdapter
      Return the vendor-specific JpaDialect implementation for this provider, or null if there is none.
      specified by:
      getJpaDialect&nbsp;in interface&nbsp;JpaVendorAdapter
      Overrides:
      getJpaDialect&nbsp;in class&nbsp;AbstractJpaVendorAdapter
    • getEntityManagerInterface

      public&nbsp;Class<? extends jakarta.persistence.EntityManager>&nbsp;getEntityManagerInterface()
      Description copied from interface:&nbsp;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.

      specified by:
      getEntityManagerInterface&nbsp;in interface&nbsp;JpaVendorAdapter
      Overrides:
      getEntityManagerInterface&nbsp;in class&nbsp;AbstractJpaVendorAdapter