Interface JpaVendorAdapter

    • Method Detail

      • getPersistenceProviderRootPackage

        String getPersistenceProviderRootPackage()
        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.
        Since:
        2.5.2
      • getJpaPropertyMap

        Map<String,​?> 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:
        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)
      • getJpaDialect

        JpaDialect getJpaDialect()
        Return the vendor-specific JpaDialect implementation for this provider, or null if there is none.
      • getEntityManagerInterface

        Class<? extends EntityManagergetEntityManagerInterface()
        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.

      • postProcessEntityManagerFactory

        void postProcessEntityManagerFactory​(EntityManagerFactory emf)
        Optional callback for post-processing the native EntityManagerFactory before active use.

        This can be used for triggering vendor-specific initialization processes. While this is not expected to be used for most providers, it is included here as a general extension hook.