| javax.persistence.spi.PersistenceProvider
All known Subclasses: oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider,
PersistenceProvider | public interface PersistenceProvider (Code) | | Interface implemented by a persistence provider.
The implementation of this interface that is to
be used for a given
javax.persistence.EntityManager is specified in
persistence.xml file in the persistence archive.
This interface is invoked by the Container when it
needs to create an
javax.persistence.EntityManagerFactory , or by the
Persistence class when running outside the Container.
since: Java Persistence 1.0 |
createContainerEntityManagerFactory | public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map map)(Code) | | Called by the container when an
javax.persistence.EntityManagerFactory is to be created.
Parameters: info - Metadata for use by the persistence provider Parameters: map - A Map of integration-level properties for useby the persistence provider. Can be null if there is nointegration-level property. EntityManagerFactory for the persistence unitspecified by the metadata |
createEntityManagerFactory | public EntityManagerFactory createEntityManagerFactory(String emName, Map map)(Code) | | Called by Persistence class when an
javax.persistence.EntityManagerFactory is to be created.
Parameters: emName - The name of the persistence unit Parameters: map - A Map of properties for use by thepersistence provider. These properties may be used tooverride the values of the corresponding elements inthe persistence.xml file or specify values forproperties not specified in the persistence.xml. EntityManagerFactory for the persistence unit,or null if the provider is not the right provider |
|
|