public interface JPAEntityManagerProviderFactory
This factory can be used if the JPAEntityManagerProvider should not be
a public service, for example to protect a username/password.
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCAL_ENLISTMENT_ENABLED
The property used to determine whether local enlistment is enabled for
this resource provider
|
static String |
PRE_ENLISTED_DB_CONNECTION
The property used to indicate that database connections will be automatically
enlisted in ongoing transactions without intervention from the JPA provider
|
static String |
TRANSACTIONAL_DB_CONNECTION
The property used to provide a
JDBCConnectionProvider to the
resource provider. |
static String |
XA_ENLISTMENT_ENABLED
The property used to determine whether XA enlistment is enabled for this
resource provider
|
| Modifier and Type | Method and Description |
|---|---|
JPAEntityManagerProvider |
getProviderFor(org.osgi.service.jpa.EntityManagerFactoryBuilder emfb,
Map<String,Object> jpaProperties,
Map<String,Object> resourceProviderProperties)
Create a private
JPAEntityManagerProvider using an
EntityManagerFactoryBuilder |
JPAEntityManagerProvider |
getProviderFor(javax.persistence.EntityManagerFactory emf,
Map<String,Object> resourceProviderProperties)
Create a private
JPAEntityManagerProvider using an existing
EntityManagerFactory. |
static final String XA_ENLISTMENT_ENABLED
static final String LOCAL_ENLISTMENT_ENABLED
static final String TRANSACTIONAL_DB_CONNECTION
JDBCConnectionProvider to the
resource provider. This will be converted into a DataSource by the
factory, and passed to the EntityManagerFactoryBuilder using the
javax.persistence.jtaDataSource propertystatic final String PRE_ENLISTED_DB_CONNECTION
JPAEntityManagerProvider getProviderFor(org.osgi.service.jpa.EntityManagerFactoryBuilder emfb, Map<String,Object> jpaProperties, Map<String,Object> resourceProviderProperties)
JPAEntityManagerProvider using an
EntityManagerFactoryBuilderemfb - The EntityManagerFactoryBuilder to create JPA resources withjpaProperties - The properties to pass to the
EntityManagerFactoryBuilder in order to create the
underlying EntityManagerFactory and
EntityManager instancesresourceProviderProperties - Configuration properties to pass to the
JPA Resource Provider runtimeJPAEntityManagerProvider that can be used in
transactionsJPAEntityManagerProvider getProviderFor(javax.persistence.EntityManagerFactory emf, Map<String,Object> resourceProviderProperties)
JPAEntityManagerProvider using an existing
EntityManagerFactory.emf - The EntityManagerFactory to use in the JPAEntityManagerProviderresourceProviderProperties - Configuration properties to pass to the
JDBC Resource Provider runtimeJPAEntityManagerProvider that can be used in
transactionsCopyright © 2016 The Apache Software Foundation. All rights reserved.