|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataSourceFactory
A factory for JDBC connection factories. There are 3 preferred connection factories for getting JDBC connections:
| Field Summary | |
|---|---|
static String |
JDBC_DATABASE_NAME
The "databaseName" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_DATASOURCE_NAME
The "dataSourceName" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_DESCRIPTION
The "description" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_INITIAL_POOL_SIZE
The "initialPoolSize" property that ConnectionPoolDataSource and XADataSource clients should
supply a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties). |
static String |
JDBC_MAX_IDLE_TIME
The "maxIdleTime" property that ConnectionPoolDataSource and XADataSource clients should supply
a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties). |
static String |
JDBC_MAX_POOL_SIZE
The "maxPoolSize" property that ConnectionPoolDataSource and XADataSource clients should supply
a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties). |
static String |
JDBC_MAX_STATEMENTS
The "maxStatements" property that ConnectionPoolDataSource and XADataSource clients should supply
a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties). |
static String |
JDBC_MIN_POOL_SIZE
The "minPoolSize" property that ConnectionPoolDataSource and XADataSource clients should supply
a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties). |
static String |
JDBC_NETWORK_PROTOCOL
The "networkProtocol" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_PASSWORD
The "password" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_PORT_NUMBER
The "portNumber" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_PROPERTY_CYCLE
The "propertyCycle" property that ConnectionPoolDataSource and XADataSource clients should
supply a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties). |
static String |
JDBC_ROLE_NAME
The "roleName" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_SERVER_NAME
The "serverName" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_URL
The "url" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
JDBC_USER
The "user" property that DataSource clients should supply a value for when calling
createDataSource(Properties). |
static String |
OSGI_JDBC_DRIVER_CLASS
Service property used by a JDBC driver to declare the driver class when registering a JDBC DataSourceFactory service. |
static String |
OSGI_JDBC_DRIVER_NAME
Service property used by a JDBC driver to declare the driver name when registering a JDBC DataSourceFactory service. |
static String |
OSGI_JDBC_DRIVER_VERSION
Service property used by a JDBC driver to declare the driver version when registering a JDBC DataSourceFactory service. |
| Method Summary | |
|---|---|
ConnectionPoolDataSource |
createConnectionPoolDataSource(Properties props)
Create a new ConnectionPoolDataSource using the given properties. |
DataSource |
createDataSource(Properties props)
Create a new DataSource using the given properties. |
Driver |
createDriver(Properties props)
Create a new Driver using the given properties. |
XADataSource |
createXADataSource(Properties props)
Create a new XADataSource using the given properties. |
| Field Detail |
|---|
static final String OSGI_JDBC_DRIVER_CLASS
static final String OSGI_JDBC_DRIVER_NAME
static final String OSGI_JDBC_DRIVER_VERSION
static final String JDBC_DATABASE_NAME
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_DATASOURCE_NAME
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_DESCRIPTION
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_INITIAL_POOL_SIZE
ConnectionPoolDataSource and XADataSource clients should
supply a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties).
static final String JDBC_MAX_IDLE_TIME
ConnectionPoolDataSource and XADataSource clients should supply
a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties).
static final String JDBC_MAX_POOL_SIZE
ConnectionPoolDataSource and XADataSource clients should supply
a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties).
static final String JDBC_MAX_STATEMENTS
ConnectionPoolDataSource and XADataSource clients should supply
a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties).
static final String JDBC_MIN_POOL_SIZE
ConnectionPoolDataSource and XADataSource clients should supply
a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties).
static final String JDBC_NETWORK_PROTOCOL
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_PASSWORD
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_PORT_NUMBER
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_PROPERTY_CYCLE
ConnectionPoolDataSource and XADataSource clients should
supply a value for when calling createConnectionPoolDataSource(Properties) or
createXADataSource(Properties).
static final String JDBC_ROLE_NAME
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_SERVER_NAME
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_URL
DataSource clients should supply a value for when calling
createDataSource(Properties).
static final String JDBC_USER
DataSource clients should supply a value for when calling
createDataSource(Properties).
| Method Detail |
|---|
DataSource createDataSource(Properties props)
throws SQLException
DataSource using the given properties.
props - The properties used to configure the DataSource. null
indicates no properties. If the property cannot be set on the DataSource
being created then a SQLException must be thrown.
DataSource.
SQLException - If the DataSource cannot be created.
ConnectionPoolDataSource createConnectionPoolDataSource(Properties props)
throws SQLException
ConnectionPoolDataSource using the given properties.
props - The properties used to configure the ConnectionPoolDataSource. null indicates no properties. If the property cannot be set on the ConnectionPoolDataSource being created then a SQLException must be thrown.
ConnectionPoolDataSource.
SQLException - If the ConnectionPoolDataSource cannot be created.
XADataSource createXADataSource(Properties props)
throws SQLException
XADataSource using the given properties.
props - The properties used to configure the XADataSource. null indicates no properties. If the property cannot be set on the XADataSource being created then a SQLException must be thrown.
XADataSource.
SQLException - If the XADataSource cannot be created.
Driver createDriver(Properties props)
throws SQLException
Driver using the given properties.
props - The properties used to configure the Driver. null indicates no properties. If the property cannot be set on the Driver being created then a SQLException must be thrown.
Driver.
SQLException - If the Driver cannot be created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||