|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistenceProvider
Interface implemented by the persistence provider. This interface is used to create an EntityManagerFactory. It is invoked by the container in Java EE environments and by the Persistence class in Java SE environments.
Method Summary | |
---|---|
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. |
Method Detail |
---|
EntityManagerFactory createEntityManagerFactory(String emName, 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, 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).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |