接口 EntityManagerFactoryInfo

    • 方法详细资料

      • getPersistenceProvider

        PersistenceProvider getPersistenceProvider()
        Return the underlying PersistenceProvider that the underlying EntityManagerFactory was created with.
        返回:
        the PersistenceProvider used to create this EntityManagerFactory, or null if the standard JPA provider autodetection process was used to configure the EntityManagerFactory
      • getPersistenceUnitInfo

        PersistenceUnitInfo getPersistenceUnitInfo()
        Return the PersistenceUnitInfo used to create this EntityManagerFactory, if the in-container API was used.
        返回:
        the PersistenceUnitInfo used to create this EntityManagerFactory, or null if the in-container contract was not used to configure the EntityManagerFactory
      • getDataSource

        DataSource getDataSource()
        Return the JDBC DataSource that this EntityManagerFactory obtains its JDBC Connections from.
        返回:
        the JDBC DataSource, or null if not known
      • getEntityManagerInterface

        Class<? extends EntityManagergetEntityManagerInterface()
        Return the (potentially vendor-specific) EntityManager interface that this factory's EntityManagers will implement.

        A null return value suggests that autodetection is supposed to happen: either based on a target EntityManager instance or simply defaulting to javax.persistence.EntityManager.

      • getJpaDialect

        JpaDialect getJpaDialect()
        Return the vendor-specific JpaDialect implementation for this EntityManagerFactory, or null if not known.
      • getBeanClassLoader

        ClassLoader getBeanClassLoader()
        Return the ClassLoader that the application's beans are loaded with.

        Proxies will be generated in this ClassLoader.