public interface JDBCConnectionProviderFactory
This factory can be used if the JDBCConnectionProvider should not be
a public service, for example to protect a username/password.
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_LIFETIME
The property used to set the maximum amount of time that connections in
the pool should remain open
|
static String |
CONNECTION_POOLING_ENABLED
The property used to determine whether connection pooling is enabled for
this resource provider
|
static String |
CONNECTION_TIMEOUT
The property used to set the maximum amount of time that the pool should
wait for a connection
|
static String |
IDLE_TIMEOUT
The property used to set the maximum amount of time that connections in
the pool should remain idle before being closed
|
static String |
LOCAL_ENLISTMENT_ENABLED
The property used to determine whether local enlistment is enabled for
this resource provider
|
static String |
MAX_CONNECTIONS
The property used to set the maximum number of connections that should be
held in the pool
|
static String |
MIN_CONNECTIONS
The property used to set the minimum number of connections that should be
held in the pool
|
static String |
OSGI_RECOVERY_IDENTIFIER
The property used to set the recovery identifier that should be used
|
static String |
USE_DRIVER
The property used to set the maximum number of connections that should be
held in the pool
|
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 |
|---|---|
JDBCConnectionProvider |
getProviderFor(org.osgi.service.jdbc.DataSourceFactory dsf,
Properties jdbcProperties,
Map<String,Object> resourceProviderProperties)
Create a private
JDBCConnectionProvider using a
DataSourceFactory. |
JDBCConnectionProvider |
getProviderFor(DataSource ds,
Map<String,Object> resourceProviderProperties)
Create a private
JDBCConnectionProvider using an existing
DataSource. |
JDBCConnectionProvider |
getProviderFor(Driver driver,
Properties jdbcProperties,
Map<String,Object> resourceProviderProperties)
Create a private
JDBCConnectionProvider using an existing
Driver. |
JDBCConnectionProvider |
getProviderFor(XADataSource ds,
Map<String,Object> resourceProviderProperties)
Create a private
JDBCConnectionProvider using an existing
XADataSource. |
static final String XA_ENLISTMENT_ENABLED
static final String LOCAL_ENLISTMENT_ENABLED
static final String CONNECTION_POOLING_ENABLED
static final String CONNECTION_TIMEOUT
static final String IDLE_TIMEOUT
static final String CONNECTION_LIFETIME
static final String MIN_CONNECTIONS
static final String MAX_CONNECTIONS
static final String USE_DRIVER
static final String OSGI_RECOVERY_IDENTIFIER
JDBCConnectionProvider getProviderFor(org.osgi.service.jdbc.DataSourceFactory dsf, Properties jdbcProperties, Map<String,Object> resourceProviderProperties)
JDBCConnectionProvider using a
DataSourceFactory.dsf - The DataSourceFactory that provides access to the databasejdbcProperties - The properties to pass to the
DataSourceFactory in order to create the underlying
DataSourceresourceProviderProperties - Configuration properties to pass to the
JDBC Resource Provider runtimeJDBCConnectionProvider that can be used in transactionsJDBCConnectionProvider getProviderFor(DataSource ds, Map<String,Object> resourceProviderProperties)
JDBCConnectionProvider using an existing
DataSource.ds - The DataSource that provides access to the databaseresourceProviderProperties - Configuration properties to pass to the
JDBC Resource Provider runtimeJDBCConnectionProvider that can be used in transactionsJDBCConnectionProvider getProviderFor(Driver driver, Properties jdbcProperties, Map<String,Object> resourceProviderProperties)
JDBCConnectionProvider using an existing
Driver.driver - The Driver that provides access to the databasejdbcProperties - The properties to pass to the Driver in
order to create a ConnectionresourceProviderProperties - Configuration properties to pass to the
JDBC Resource Provider runtimeJDBCConnectionProvider that can be used in transactionsJDBCConnectionProvider getProviderFor(XADataSource ds, Map<String,Object> resourceProviderProperties)
JDBCConnectionProvider using an existing
XADataSource.ds - The XADataSource that provides access to the databaseresourceProviderProperties - Configuration properties to pass to the
JDBC Resource Provider runtimeJDBCConnectionProvider that can be used in transactionsCopyright © 2016 The Apache Software Foundation. All rights reserved.