@ProviderType public interface EntityManagerFactoryBuilder
Modifier and Type | Field and Description |
---|---|
static String |
JPA_CAPABILITY_NAME
The name of the JPA extender capability.
|
static String |
JPA_SPECIFICATION_VERSION
The version of the extender capability for the JPA Service specification
|
static String |
JPA_UNIT_NAME
The name of the persistence unit.
|
static String |
JPA_UNIT_PROVIDER
The class name of the provider that registered the service and implements
the JPA javax.persistence.PersistenceProvider interface.
|
static String |
JPA_UNIT_VERSION
The version of the persistence unit bundle.
|
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManagerFactory |
createEntityManagerFactory(Map<String,Object> props)
Return an EntityManagerFactory instance configured according to the
properties defined in the corresponding persistence descriptor, as well
as the properties passed into the method.
|
Bundle |
getPersistenceProviderBundle()
This method returns the
Bundle which provides the
PersistenceProvider implementation that is used by this
EntityManagerFactoryBuilder . |
String |
getPersistenceProviderName()
This method returns the name of the
PersistenceProvider
implementation that is used by this EntityManagerFactoryBuilder . |
static final String JPA_UNIT_NAME
static final String JPA_UNIT_VERSION
static final String JPA_UNIT_PROVIDER
static final String JPA_CAPABILITY_NAME
static final String JPA_SPECIFICATION_VERSION
javax.persistence.EntityManagerFactory createEntityManagerFactory(Map<String,Object> props)
props
- Properties to be used, in addition to those in the
persistence descriptor, for configuring the EntityManagerFactory
for the persistence unit.String getPersistenceProviderName()
PersistenceProvider
implementation that is used by this EntityManagerFactoryBuilder
.
The returned value will be the same as the value of the
JPA_UNIT_PROVIDER
service property.PersistenceProvider
implementationBundle getPersistenceProviderBundle()
Bundle
which provides the
PersistenceProvider
implementation that is used by this
EntityManagerFactoryBuilder
.
If the PersistenceProvider
is provided as an OSGi service then
this method must return the bundle which registered the service.
Otherwise this method must return the bundle which loaded the
PersistenceProvider
implementation class.
PersistenceProvider
implementation used by this EntityManagerFactoryBuilder
.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0