@ProviderType public interface EntityManagerFactoryBuilder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JPA_CAPABILITY_NAME
The name of the JPA extender capability.
|
static java.lang.String |
JPA_SPECIFICATION_VERSION
The version of the extender capability for the JPA Service specification
|
static java.lang.String |
JPA_UNIT_NAME
The name of the persistence unit.
|
static java.lang.String |
JPA_UNIT_PROVIDER
The class name of the provider that registered the service and implements
the JPA javax.persistence.PersistenceProvider interface.
|
static java.lang.String |
JPA_UNIT_VERSION
The version of the persistence unit bundle.
|
Modifier and Type | Method and Description |
---|---|
javax.persistence.EntityManagerFactory |
createEntityManagerFactory(java.util.Map<java.lang.String,java.lang.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 . |
java.lang.String |
getPersistenceProviderName()
This method returns the name of the
PersistenceProvider
implementation that is used by this EntityManagerFactoryBuilder . |
static final java.lang.String JPA_UNIT_NAME
static final java.lang.String JPA_UNIT_VERSION
static final java.lang.String JPA_UNIT_PROVIDER
static final java.lang.String JPA_CAPABILITY_NAME
static final java.lang.String JPA_SPECIFICATION_VERSION
javax.persistence.EntityManagerFactory createEntityManagerFactory(java.util.Map<java.lang.String,java.lang.Object> props)
props
- Properties to be used, in addition to those in the
persistence descriptor, for configuring the EntityManagerFactory
for the persistence unit.java.lang.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 © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0