javax.persistence.spi
public interface PersistenceProvider
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
createContainerEntityManagerFactory(PersistenceUnitInfo info,
java.util.Map map)
Called by the container when an EntityManagerFactory
is to be created.
|
EntityManagerFactory |
createEntityManagerFactory(java.lang.String emName,
java.util.Map map)
Called by Persistence class when an EntityManagerFactory
is to be created.
|
EntityManagerFactory createEntityManagerFactory(java.lang.String emName, java.util.Map map)
emName
- The name of the persistence unitmap
- A Map of properties for use by the
persistence provider. These properties may be used to
override the values of the corresponding elements in
the persistence.xml file or specify values for
properties not specified in the persistence.xml
(and may be null if no properties are specified).EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, java.util.Map map)
info
- Metadata for use by the persistence providermap
- A Map of integration-level properties for use
by the persistence provider (may be null if no properties
are specified).