javax.sql.DataSource,
javax.sql.ConnectionPoolDataSource, and
javax.sql.XADataSource.
DataSource providers should implement this interface and register it as an
OSGi service with the JDBC driver class name in the
OSGI_JDBC_DRIVER_CLASS property.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | JDBC_DATABASE_NAME
The "databaseName" property that DataSource clients should supply a value
for when calling |
| public static final String | JDBC_DATASOURCE_NAME
The "dataSourceName" property that DataSource clients should supply a
value for when calling |
| public static final String | JDBC_DESCRIPTION
The "description" property that DataSource clients should supply a value
for when calling |
| public static final String | JDBC_INITIAL_POOL_SIZE
The "initialPoolSize" property that ConnectionPoolDataSource and
XADataSource clients may supply a value for when calling
|
| public static final String | JDBC_MAX_IDLE_TIME
The "maxIdleTime" property that ConnectionPoolDataSource and XADataSource
clients may supply a value for when calling
|
| public static final String | JDBC_MAX_POOL_SIZE
The "maxPoolSize" property that ConnectionPoolDataSource and XADataSource
clients may supply a value for when calling
|
| public static final String | JDBC_MAX_STATEMENTS
The "maxStatements" property that ConnectionPoolDataSource and
XADataSource clients may supply a value for when calling
|
| public static final String | JDBC_MIN_POOL_SIZE
The "minPoolSize" property that ConnectionPoolDataSource and XADataSource
clients may supply a value for when calling
|
| public static final String | JDBC_NETWORK_PROTOCOL
The "networkProtocol" property that DataSource clients should supply a
value for when calling |
| public static final String | JDBC_PASSWORD
The "password" property that DataSource clients should supply a value for
when calling |
| public static final String | JDBC_PORT_NUMBER
The "portNumber" property that DataSource clients should supply a value
for when calling |
| public static final String | JDBC_PROPERTY_CYCLE
The "propertyCycle" property that ConnectionPoolDataSource and
XADataSource clients may supply a value for when calling
|
| public static final String | JDBC_ROLE_NAME
The "roleName" property that DataSource clients should supply a value for
when calling |
| public static final String | JDBC_SERVER_NAME
The "serverName" property that DataSource clients should supply a value
for when calling |
| public static final String | JDBC_URL
The "url" property that DataSource clients should supply a value for when
calling |
| public static final String | JDBC_USER
The "user" property that DataSource clients should supply a value for
when calling |
| public static final String | OSGI_JDBC_CAPABILITY
Service property used by a |
| public static final String | OSGI_JDBC_CAPABILITY_CONNECTIONPOOLDATASOURCE
|
| public static final String | OSGI_JDBC_CAPABILITY_DATASOURCE
|
| public static final String | OSGI_JDBC_CAPABILITY_DRIVER
|
| public static final String | OSGI_JDBC_CAPABILITY_XADATASOURCE
|
| public static final String | OSGI_JDBC_DRIVER_CLASS
Service property used by a JDBC driver to declare the driver class when registering a JDBC DataSourceFactory service. |
| public static final String | OSGI_JDBC_DRIVER_NAME
Service property used by a JDBC driver to declare the driver name when registering a JDBC DataSourceFactory service. |
| public static final String | OSGI_JDBC_DRIVER_VERSION
Service property used by a JDBC driver to declare the driver version when registering a JDBC DataSourceFactory service. |
| Modifier and Type | Method and Description |
|---|---|
| public ConnectionPoolDataSource | Returns: A configuredConnectionPoolDataSource.The properties used to configure the
props)ConnectionPoolDataSource. null indicates no
properties. If the property cannot be set on the
ConnectionPoolDataSource being created then a
SQLException must be thrown.Create a new |
| public DataSource | Returns: A configuredDataSource.The properties used to configure the props)DataSource .
null indicates no properties. If the property cannot be
set on the DataSource being created then a
SQLException must be thrown.Create a new |
| public Driver | Returns: A configuredDriver.The properties used to configure the props)Driver.
null indicates no properties. If the property cannot be
set on the Driver being created then a
SQLException must be thrown.Create a new |
| public XADataSource | Returns: A configuredXADataSource.The properties used to configure the props)XADataSource.
null indicates no properties. If the property cannot be
set on the XADataSource being created then a
SQLException must be thrown.Create a new |
| JDBC_DATABASE_NAME | back to summary |
|---|---|
| public static final String JDBC_DATABASE_NAME The "databaseName" property that DataSource clients should supply a value
for when calling | |
| JDBC_DATASOURCE_NAME | back to summary |
|---|---|
| public static final String JDBC_DATASOURCE_NAME The "dataSourceName" property that DataSource clients should supply a
value for when calling | |
| JDBC_DESCRIPTION | back to summary |
|---|---|
| public static final String JDBC_DESCRIPTION The "description" property that DataSource clients should supply a value
for when calling | |
| JDBC_INITIAL_POOL_SIZE | back to summary |
|---|---|
| public static final String JDBC_INITIAL_POOL_SIZE The "initialPoolSize" property that ConnectionPoolDataSource and
XADataSource clients may supply a value for when calling
| |
| JDBC_MAX_IDLE_TIME | back to summary |
|---|---|
| public static final String JDBC_MAX_IDLE_TIME The "maxIdleTime" property that ConnectionPoolDataSource and XADataSource
clients may supply a value for when calling
| |
| JDBC_MAX_POOL_SIZE | back to summary |
|---|---|
| public static final String JDBC_MAX_POOL_SIZE The "maxPoolSize" property that ConnectionPoolDataSource and XADataSource
clients may supply a value for when calling
| |
| JDBC_MAX_STATEMENTS | back to summary |
|---|---|
| public static final String JDBC_MAX_STATEMENTS The "maxStatements" property that ConnectionPoolDataSource and
XADataSource clients may supply a value for when calling
| |
| JDBC_MIN_POOL_SIZE | back to summary |
|---|---|
| public static final String JDBC_MIN_POOL_SIZE The "minPoolSize" property that ConnectionPoolDataSource and XADataSource
clients may supply a value for when calling
| |
| JDBC_NETWORK_PROTOCOL | back to summary |
|---|---|
| public static final String JDBC_NETWORK_PROTOCOL The "networkProtocol" property that DataSource clients should supply a
value for when calling | |
| JDBC_PASSWORD | back to summary |
|---|---|
| public static final String JDBC_PASSWORD The "password" property that DataSource clients should supply a value for
when calling | |
| JDBC_PORT_NUMBER | back to summary |
|---|---|
| public static final String JDBC_PORT_NUMBER The "portNumber" property that DataSource clients should supply a value
for when calling | |
| JDBC_PROPERTY_CYCLE | back to summary |
|---|---|
| public static final String JDBC_PROPERTY_CYCLE The "propertyCycle" property that ConnectionPoolDataSource and
XADataSource clients may supply a value for when calling
| |
| JDBC_ROLE_NAME | back to summary |
|---|---|
| public static final String JDBC_ROLE_NAME The "roleName" property that DataSource clients should supply a value for
when calling | |
| JDBC_SERVER_NAME | back to summary |
|---|---|
| public static final String JDBC_SERVER_NAME The "serverName" property that DataSource clients should supply a value
for when calling | |
| JDBC_URL | back to summary |
|---|---|
| public static final String JDBC_URL The "url" property that DataSource clients should supply a value for when
calling | |
| JDBC_USER | back to summary |
|---|---|
| public static final String JDBC_USER The "user" property that DataSource clients should supply a value for
when calling | |
| OSGI_JDBC_CAPABILITY | back to summary |
|---|---|
| public static final String OSGI_JDBC_CAPABILITY Service property used by a
| |
| OSGI_JDBC_CAPABILITY_CONNECTIONPOOLDATASOURCE | back to summary |
|---|---|
| public static final String OSGI_JDBC_CAPABILITY_CONNECTIONPOOLDATASOURCE
| |
| OSGI_JDBC_CAPABILITY_DATASOURCE | back to summary |
|---|---|
| public static final String OSGI_JDBC_CAPABILITY_DATASOURCE
| |
| OSGI_JDBC_CAPABILITY_DRIVER | back to summary |
|---|---|
| public static final String OSGI_JDBC_CAPABILITY_DRIVER
| |
| OSGI_JDBC_CAPABILITY_XADATASOURCE | back to summary |
|---|---|
| public static final String OSGI_JDBC_CAPABILITY_XADATASOURCE
| |
| OSGI_JDBC_DRIVER_CLASS | back to summary |
|---|---|
| public static final String OSGI_JDBC_DRIVER_CLASS Service property used by a JDBC driver to declare the driver class when registering a JDBC DataSourceFactory service. Clients may filter or test this property to determine if the driver is suitable, or the desired one. | |
| OSGI_JDBC_DRIVER_NAME | back to summary |
|---|---|
| public static final String OSGI_JDBC_DRIVER_NAME Service property used by a JDBC driver to declare the driver name when registering a JDBC DataSourceFactory service. Clients may filter or test this property to determine if the driver is suitable, or the desired one. | |
| OSGI_JDBC_DRIVER_VERSION | back to summary |
|---|---|
| public static final String OSGI_JDBC_DRIVER_VERSION Service property used by a JDBC driver to declare the driver version when registering a JDBC DataSourceFactory service. Clients may filter or test this property to determine if the driver is suitable, or the desired one. | |
| createConnectionPoolDataSource | back to summary |
|---|---|
| public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props) throws SQLException Create a new
| |
| createDataSource | back to summary |
|---|---|
| public DataSource createDataSource(Properties props) throws SQLException Create a new
| |
| createDriver | back to summary |
|---|---|
| public Driver createDriver(Properties props) throws SQLException Create a new
| |
| createXADataSource | back to summary |
|---|---|
| public XADataSource createXADataSource(Properties props) throws SQLException Create a new
| |