public interface DataSourceFactory
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 | 
|---|---|
| static String | JDBC_DATABASE_NAMEThe "databaseName" property that DataSource clients should supply a value
 for when calling  createDataSource(Properties). | 
| static String | JDBC_DATASOURCE_NAMEThe "dataSourceName" property that DataSource clients should supply a
 value for when calling  createDataSource(Properties). | 
| static String | JDBC_DESCRIPTIONThe "description" property that DataSource clients should supply a value
 for when calling  createDataSource(Properties). | 
| static String | JDBC_INITIAL_POOL_SIZEThe "initialPoolSize" property that ConnectionPoolDataSource and
 XADataSource clients may supply a value for when calling
  createConnectionPoolDataSource(Properties)orcreateXADataSource(Properties)on drivers that support this
 property. | 
| static String | JDBC_MAX_IDLE_TIMEThe "maxIdleTime" property that ConnectionPoolDataSource and XADataSource
 clients may supply a value for when calling
  createConnectionPoolDataSource(Properties)orcreateXADataSource(Properties)on drivers that support this
 property. | 
| static String | JDBC_MAX_POOL_SIZEThe "maxPoolSize" property that ConnectionPoolDataSource and XADataSource
 clients may supply a value for when calling
  createConnectionPoolDataSource(Properties)orcreateXADataSource(Properties)on drivers that support this
 property. | 
| static String | JDBC_MAX_STATEMENTSThe "maxStatements" property that ConnectionPoolDataSource and
 XADataSource clients may supply a value for when calling
  createConnectionPoolDataSource(Properties)orcreateXADataSource(Properties)on drivers that support this
 property. | 
| static String | JDBC_MIN_POOL_SIZEThe "minPoolSize" property that ConnectionPoolDataSource and XADataSource
 clients may supply a value for when calling
  createConnectionPoolDataSource(Properties)orcreateXADataSource(Properties)on drivers that support this
 property. | 
| static String | JDBC_NETWORK_PROTOCOLThe "networkProtocol" property that DataSource clients should supply a
 value for when calling  createDataSource(Properties). | 
| static String | JDBC_PASSWORDThe "password" property that DataSource clients should supply a value for
 when calling  createDataSource(Properties). | 
| static String | JDBC_PORT_NUMBERThe "portNumber" property that DataSource clients should supply a value
 for when calling  createDataSource(Properties). | 
| static String | JDBC_PROPERTY_CYCLEThe "propertyCycle" property that ConnectionPoolDataSource and
 XADataSource clients may supply a value for when calling
  createConnectionPoolDataSource(Properties)orcreateXADataSource(Properties)on drivers that support this
 property. | 
| static String | JDBC_ROLE_NAMEThe "roleName" property that DataSource clients should supply a value for
 when calling  createDataSource(Properties). | 
| static String | JDBC_SERVER_NAMEThe "serverName" property that DataSource clients should supply a value
 for when calling  createDataSource(Properties). | 
| static String | JDBC_URLThe "url" property that DataSource clients should supply a value for when
 calling  createDataSource(Properties). | 
| static String | JDBC_USERThe "user" property that DataSource clients should supply a value for
 when calling  createDataSource(Properties). | 
| static String | OSGI_JDBC_DRIVER_CLASSService property used by a JDBC driver to declare the driver class when
 registering a JDBC DataSourceFactory service. | 
| static String | OSGI_JDBC_DRIVER_NAMEService property used by a JDBC driver to declare the driver name when
 registering a JDBC DataSourceFactory service. | 
| static String | OSGI_JDBC_DRIVER_VERSIONService property used by a JDBC driver to declare the driver version when
 registering a JDBC DataSourceFactory service. | 
| Modifier and Type | Method and Description | 
|---|---|
| ConnectionPoolDataSource | createConnectionPoolDataSource(Properties props)Create a new  ConnectionPoolDataSourceusing the given properties. | 
| DataSource | createDataSource(Properties props)Create a new  DataSourceusing the given properties. | 
| Driver | createDriver(Properties props)Create a new  Driverusing the given properties. | 
| XADataSource | createXADataSource(Properties props)Create a new  XADataSourceusing the given properties. | 
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
createDataSource(Properties).static final String JDBC_DATASOURCE_NAME
createDataSource(Properties).static final String JDBC_DESCRIPTION
createDataSource(Properties).static final String JDBC_NETWORK_PROTOCOL
createDataSource(Properties).static final String JDBC_PASSWORD
createDataSource(Properties).static final String JDBC_PORT_NUMBER
createDataSource(Properties).static final String JDBC_ROLE_NAME
createDataSource(Properties).static final String JDBC_SERVER_NAME
createDataSource(Properties).static final String JDBC_USER
createDataSource(Properties).static final String JDBC_URL
createDataSource(Properties).static final String JDBC_INITIAL_POOL_SIZE
createConnectionPoolDataSource(Properties) or
 createXADataSource(Properties) on drivers that support this
 property.static final String JDBC_MAX_IDLE_TIME
createConnectionPoolDataSource(Properties) or
 createXADataSource(Properties) on drivers that support this
 property.static final String JDBC_MAX_POOL_SIZE
createConnectionPoolDataSource(Properties) or
 createXADataSource(Properties) on drivers that support this
 property.static final String JDBC_MAX_STATEMENTS
createConnectionPoolDataSource(Properties) or
 createXADataSource(Properties) on drivers that support this
 property.static final String JDBC_MIN_POOL_SIZE
createConnectionPoolDataSource(Properties) or
 createXADataSource(Properties) on drivers that support this
 property.static final String JDBC_PROPERTY_CYCLE
createConnectionPoolDataSource(Properties) or
 createXADataSource(Properties) on drivers that support this
 property.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.Copyright © OSGi Alliance (2000, 2015). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0