public class PGDataSourceFactory
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
PGDataSourceFactory.SingleUseProperties
A class that removes properties as they are used (without modifying the supplied initial
Properties).
|
Constructor and Description |
---|
PGDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
private void |
configureBaseDataSource(BaseDataSource ds,
java.util.Properties props) |
javax.sql.ConnectionPoolDataSource |
createConnectionPoolDataSource(java.util.Properties props) |
javax.sql.DataSource |
createDataSource(java.util.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 ). |
java.sql.Driver |
createDriver(java.util.Properties props) |
private javax.sql.DataSource |
createPoolingDataSource(java.util.Properties props) |
private javax.sql.DataSource |
createSimpleDataSource(java.util.Properties props) |
javax.sql.XADataSource |
createXADataSource(java.util.Properties props) |
private void configureBaseDataSource(BaseDataSource ds, java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Driver createDriver(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
private javax.sql.DataSource createPoolingDataSource(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
private javax.sql.DataSource createSimpleDataSource(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
public javax.sql.DataSource createDataSource(java.util.Properties props) throws java.sql.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
).java.sql.SQLException
public javax.sql.ConnectionPoolDataSource createConnectionPoolDataSource(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException
public javax.sql.XADataSource createXADataSource(java.util.Properties props) throws java.sql.SQLException
java.sql.SQLException