|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.postgresql.osgi.PGDataSourceFactory
public class PGDataSourceFactory
This factory service is designed to be used in OSGi Enterprise environments to create and configure JDBC data-sources.
| Field Summary |
|---|
| Fields inherited from interface 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 Summary | |
|---|---|
PGDataSourceFactory()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PGDataSourceFactory()
| Method Detail |
|---|
public Driver createDriver(Properties props)
throws SQLException
createDriver in interface org.osgi.service.jdbc.DataSourceFactorySQLException
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.DataSourceFactorySQLException
public ConnectionPoolDataSource createConnectionPoolDataSource(Properties props)
throws SQLException
createConnectionPoolDataSource in interface org.osgi.service.jdbc.DataSourceFactorySQLException
public XADataSource createXADataSource(Properties props)
throws SQLException
createXADataSource in interface org.osgi.service.jdbc.DataSourceFactorySQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||