public class PGDataSourceFactory extends Object
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
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
)SQLException
public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props) throws SQLException
SQLException
public XADataSource createXADataSource(Properties props) throws SQLException
SQLException
Copyright © 2017 PostgreSQL Global Development Group. All rights reserved.