public interface PersistenceProvider
EntityManager
is specified in
persistence.xml file in the persistence archive.
This interface is invoked by the Container when it
needs to create an EntityManagerFactory
, or by the
Persistence class when running outside the Container.Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
createContainerEntityManagerFactory(PersistenceUnitInfo info,
Map map)
Called by the container when an
EntityManagerFactory
is to be created. |
EntityManagerFactory |
createEntityManagerFactory(String emName,
Map map)
Called by Persistence class when an
EntityManagerFactory
is to be created. |
EntityManagerFactory createEntityManagerFactory(String emName, Map map)
EntityManagerFactory
is to be created.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.EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map map)
EntityManagerFactory
is to be created.info
- Metadata for use by the persistence providermap
- A Map of integration-level properties for use
by the persistence provider. Can be null if there is no
integration-level property.Copyright © 2015. All rights reserved.