public class PGDataSourceFactory extends Object implements org.osgi.service.jdbc.DataSourceFactory
JDBC_DATABASE_NAME, JDBC_DATASOURCE_NAME, JDBC_DESCRIPTION, JDBC_INITIAL_POOL_SIZE, JDBC_MAX_IDLE_TIME, JDBC_MAX_POOL_SIZE, JDBC_MAX_STATEMENTS, JDBC_MIN_POOL_SIZE, JDBC_NETWORK_PROTOCOL, JDBC_PASSWORD, JDBC_PORT_NUMBER, JDBC_PROPERTY_CYCLE, JDBC_ROLE_NAME, JDBC_SERVER_NAME, JDBC_URL, JDBC_USER, OSGI_JDBC_DRIVER_CLASS, OSGI_JDBC_DRIVER_NAME, OSGI_JDBC_DRIVER_VERSION
Constructor and Description |
---|
PGDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
ConnectionPoolDataSource |
createConnectionPoolDataSource(Properties props) |
DataSource |
createDataSource(Properties props)
Will create and return either a
SimpleDataSource or a PoolingDataSource
depending on the presence in the supplied properties of any pool-related property (eg.: JDBC_INITIAL_POOL_SIZE or JDBC_MAX_POOL_SIZE ). |
Driver |
createDriver(Properties props) |
XADataSource |
createXADataSource(Properties props) |
public Driver createDriver(Properties props) throws SQLException
createDriver
in interface org.osgi.service.jdbc.DataSourceFactory
SQLException
public DataSource createDataSource(Properties props) throws SQLException
SimpleDataSource
or a PoolingDataSource
depending on the presence in the supplied properties of any pool-related property (eg.: JDBC_INITIAL_POOL_SIZE
or JDBC_MAX_POOL_SIZE
).createDataSource
in interface org.osgi.service.jdbc.DataSourceFactory
SQLException
public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props) throws SQLException
createConnectionPoolDataSource
in interface org.osgi.service.jdbc.DataSourceFactory
SQLException
public XADataSource createXADataSource(Properties props) throws SQLException
createXADataSource
in interface org.osgi.service.jdbc.DataSourceFactory
SQLException
Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.