public interface EntityManagerFactoryInfo
EntityManagerFactory
EE のメタデータインターフェース。この機能は、EntityManagerFactory ハンドルをこのインターフェースにキャストすることにより、Spring 管理の EntityManagerFactory プロキシから取得できます。
修飾子と型 | メソッドと説明 |
---|---|
EntityManagerEE | createNativeEntityManager(MapSE<?,?> properties) アプリケーションレベルの EntityManager ハンドルの背後にあるフレームワーク管理リソースとして使用されるネイティブ JPA EntityManager を作成します。 |
ClassLoaderSE | getBeanClassLoader() アプリケーションの Bean がロードされる ClassLoader を返します。 |
DataSourceSE | getDataSource() この EntityManagerFactory が JDBC 接続を取得する JDBC DataSource を返します。 |
ClassSE<? extends EntityManagerEE> | getEntityManagerInterface() このファクトリの EntityManagers が実装する(潜在的にベンダー固有の)EntityManager インターフェースを返します。 |
JpaDialect | getJpaDialect() この EntityManagerFactory のベンダー固有の JpaDialect 実装、または不明の場合は null を返します。 |
EntityManagerFactoryEE | getNativeEntityManagerFactory() 元の EntityManagerFactory をそのまま返します。 |
PersistenceProviderEE | getPersistenceProvider() 基になる EntityManagerFactory の作成に使用された基になる PersistenceProvider を返します。 |
PersistenceUnitInfoEE | getPersistenceUnitInfo() コンテナー内 API が使用された場合、この EntityManagerFactory の作成に使用された PersistenceUnitInfo を返します。 |
StringSE | getPersistenceUnitName() この EntityManagerFactory の作成に使用される永続性ユニットの名前を返します。名前のないデフォルトの場合は null を返します。 |
@Nullable PersistenceProviderEE getPersistenceProvider()
null
@Nullable PersistenceUnitInfoEE getPersistenceUnitInfo()
null
@Nullable StringSE getPersistenceUnitName()
null
を返します。getPersistenceUnitInfo()
が null 以外を返す場合、getPersistenceUnitName()
の結果は PersistenceUnitInfo.getPersistenceUnitName()
によって返される値と等しくなければなりません。
@Nullable DataSourceSE getDataSource()
null
@Nullable ClassSE<? extends EntityManagerEE> getEntityManagerInterface()
null
の戻り値は、自動検出が行われることが想定されていることを示しています。ターゲット EntityManager
インスタンスに基づいているか、単にデフォルトで javax.persistence.EntityManager
になっています。
@Nullable JpaDialect getJpaDialect()
null
を返します。ClassLoaderSE getBeanClassLoader()
この ClassLoader でプロキシが生成されます。
EntityManagerFactoryEE getNativeEntityManagerFactory()
null
)EntityManagerEE createNativeEntityManager(@Nullable MapSE<?,?> properties)
これにより、JpaVendorAdapter.postProcessEntityManager(EntityManager)
を考慮して、基盤となる native EntityManagerFactory
からネイティブ EntityManager
が公開されます。