接口 JpaVendorAdapter

    • 方法详细资料

      • getPersistenceProviderRootPackage

        @Nullable
        default 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.
        从以下版本开始:
        2.5.2
      • getJpaPropertyMap

        default 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.

        返回:
        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)
      • getEntityManagerFactoryInterface

        default Class<? extends EntityManagerFactorygetEntityManagerFactoryInterface()
        Return the vendor-specific EntityManagerFactory interface that the EntityManagerFactory proxy is supposed to implement.

        If the provider does not offer any EntityManagerFactory extensions, the adapter should simply return the standard EntityManagerFactory class here.

        从以下版本开始:
        2.5.2
      • getEntityManagerInterface

        default 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

        default 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.