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 |
|---|---|
| public static final String | CONNECTION_LIFETIME
The property used to set the maximum amount of time that connections in the pool should remain open |
| public static final String | CONNECTION_POOLING_ENABLED
The property used to determine whether connection pooling is enabled for this resource provider |
| public static final String | CONNECTION_TIMEOUT
The property used to set the maximum amount of time that the pool should wait for a connection |
| public static final String | IDLE_TIMEOUT
The property used to set the maximum amount of time that connections in the pool should remain idle before being closed |
| public static final String | LOCAL_ENLISTMENT_ENABLED
The property used to determine whether local enlistment is enabled for this resource provider |
| public static final String | MAX_CONNECTIONS
The property used to set the maximum number of connections that should be held in the pool |
| public static final String | MIN_CONNECTIONS
The property used to set the minimum number of connections that should be held in the pool |
| public static final String | OSGI_RECOVERY_IDENTIFIER
The property used to set the recovery identifier that should be used by this resource |
| public static final 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 resource provider |
| public static final String | TRANSACTIONAL_DB_CONNECTION
The property used to provide a |
| public static final String | XA_ENLISTMENT_ENABLED
The property used to determine whether XA enlistment is enabled for this resource provider |
| public static final String | XA_RECOVERY_ENABLED
The property used to determine whether XA recovery is enabled for this resource provider |
| Modifier and Type | Method and Description |
|---|---|
| public JPAEntityManagerProvider | Returns: AJPAEntityManagerProvider that can be used in
transactionsThe properties to pass to the
jpaProperties, Map<String, Object> EntityManagerFactoryBuilder in order to create the
underlying EntityManagerFactory and
EntityManager instancesConfiguration properties to pass to the
JPA Resource Provider runtime resourceProviderProperties)Create a private |
| public JPAEntityManagerProvider | Returns: AJPAEntityManagerProvider that can be used in
transactionsConfiguration properties to pass to the
JDBC Resource Provider runtime resourceProviderProperties)Create a private |
| public void | releaseProvider(JPAEntityManagerProvider provider)
Release a |
| CONNECTION_LIFETIME | back to summary |
|---|---|
| public static final String CONNECTION_LIFETIME The property used to set the maximum amount of time that connections in the pool should remain open | |
| CONNECTION_POOLING_ENABLED | back to summary |
|---|---|
| public static final String CONNECTION_POOLING_ENABLED The property used to determine whether connection pooling is enabled for this resource provider | |
| CONNECTION_TIMEOUT | back to summary |
|---|---|
| public static final String CONNECTION_TIMEOUT The property used to set the maximum amount of time that the pool should wait for a connection | |
| IDLE_TIMEOUT | back to summary |
|---|---|
| public static final String IDLE_TIMEOUT The property used to set the maximum amount of time that connections in the pool should remain idle before being closed | |
| LOCAL_ENLISTMENT_ENABLED | back to summary |
|---|---|
| public static final String LOCAL_ENLISTMENT_ENABLED The property used to determine whether local enlistment is enabled for this resource provider | |
| MAX_CONNECTIONS | back to summary |
|---|---|
| public static final String MAX_CONNECTIONS The property used to set the maximum number of connections that should be held in the pool | |
| MIN_CONNECTIONS | back to summary |
|---|---|
| public static final String MIN_CONNECTIONS The property used to set the minimum number of connections that should be held in the pool | |
| OSGI_RECOVERY_IDENTIFIER | back to summary |
|---|---|
| public static final String OSGI_RECOVERY_IDENTIFIER The property used to set the recovery identifier that should be used by this resource | |
| PRE_ENLISTED_DB_CONNECTION | back to summary |
|---|---|
| public static final 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 resource provider | |
| TRANSACTIONAL_DB_CONNECTION | back to summary |
|---|---|
| public static final String TRANSACTIONAL_DB_CONNECTION The property used to provide a | |
| XA_ENLISTMENT_ENABLED | back to summary |
|---|---|
| public static final String XA_ENLISTMENT_ENABLED The property used to determine whether XA enlistment is enabled for this resource provider | |
| XA_RECOVERY_ENABLED | back to summary |
|---|---|
| public static final String XA_RECOVERY_ENABLED The property used to determine whether XA recovery is enabled for this resource provider | |
| getProviderFor | back to summary |
|---|---|
| public JPAEntityManagerProvider getProviderFor(EntityManagerFactoryBuilder emfb, Map<String, Object> jpaProperties, Map<String, Object> resourceProviderProperties) Create a private
If XA transactions are used then this factory will provide configuration to ensure that the JPA Provider can participate correctly in ongoing transactions.
| |
| getProviderFor | back to summary |
|---|---|
| public JPAEntityManagerProvider getProviderFor(EntityManagerFactory emf, Map<String, Object> resourceProviderProperties) Create a private
When using this method the client is responsible for all configuration of
the
| |
| releaseProvider | back to summary |
|---|---|
| public void releaseProvider(JPAEntityManagerProvider provider) Release a
Note that all
| |