| org.springframework.orm.jpa.EntityManagerFactoryInfo
All known Subclasses: org.springframework.orm.jpa.AbstractEntityManagerFactoryBean,
EntityManagerFactoryInfo | public interface EntityManagerFactoryInfo (Code) | | Metadata interface for a Spring-managed EntityManagerFactory.
This facility can be obtained from Spring-managed EntityManagerFactory
proxies through casting the EntityManagerFactory to this interface.
author: Rod Johnson author: Juergen Hoeller since: 2.0 |
Method Summary | |
DataSource | getDataSource() Return the JDBC DataSource that this EntityManagerFactory
obtains its JDBC Connections from. | Class<? extends EntityManager> | getEntityManagerInterface() Return the (potentially vendor-specific) EntityManager interface
that this factory's EntityManagers will implement. | JpaDialect | getJpaDialect() Return the vendor-specific JpaDialect implementation for this
EntityManagerFactory, or null if not known. | EntityManagerFactory | getNativeEntityManagerFactory() Return the raw underlying EntityManagerFactory. | PersistenceProvider | getPersistenceProvider() Return the underlying PersistenceProvider that the underlying
EntityManagerFactory was created with. | PersistenceUnitInfo | getPersistenceUnitInfo() Return the PersistenceUnitInfo used to create this
EntityManagerFactory, if the in-container API was used. | String | getPersistenceUnitName() Return the name of the persistence unit used to create this
EntityManagerFactory, or null if
it is an unnamed default. |
getDataSource | DataSource getDataSource()(Code) | | Return the JDBC DataSource that this EntityManagerFactory
obtains its JDBC Connections from.
the JDBC DataSource, or null if not known |
getEntityManagerInterface | Class<? extends EntityManager> getEntityManagerInterface()(Code) | | Return the (potentially vendor-specific) EntityManager interface
that this factory's EntityManagers will implement.
|
getJpaDialect | JpaDialect getJpaDialect()(Code) | | Return the vendor-specific JpaDialect implementation for this
EntityManagerFactory, or null if not known.
|
getNativeEntityManagerFactory | EntityManagerFactory getNativeEntityManagerFactory()(Code) | | Return the raw underlying EntityManagerFactory.
the unadorned EntityManagerFactory (never null ) |
getPersistenceProvider | PersistenceProvider getPersistenceProvider()(Code) | | 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 processwas used to configure the EntityManagerFactory |
getPersistenceUnitInfo | PersistenceUnitInfo getPersistenceUnitInfo()(Code) | | 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 toconfigure the EntityManagerFactory |
getPersistenceUnitName | String getPersistenceUnitName()(Code) | | Return the name of the persistence unit used to create this
EntityManagerFactory, or null if
it is an unnamed default. If getPersistenceUnitInfo()
returns non-null, the return type of getPersistenceUnitName()
must be equal to the value returned by
PersistenceUnitInfo.getPersistenceUnitName() .
See Also: EntityManagerFactoryInfo.getPersistenceUnitInfo() See Also: javax.persistence.spi.PersistenceUnitInfo.getPersistenceUnitName |
|
|