org.jasig.portal.rdbm.pool
Interface IPooledDataSourceFactory

All Known Implementing Classes:
DBCPDataSourceFactory

public interface IPooledDataSourceFactory

Version:
$Revision: 1.3 $ $Date: 2004/10/17 19:40:05 $
Author:
Eric Dalquist edalquist@unicon.net

Method Summary
 javax.sql.DataSource createPooledDataSource(java.lang.String driverClassName, java.lang.String userName, java.lang.String password, java.lang.String url)
          Creates a DataSource that is backed by a connection pool.
 

Method Detail

createPooledDataSource

javax.sql.DataSource createPooledDataSource(java.lang.String driverClassName,
                                            java.lang.String userName,
                                            java.lang.String password,
                                            java.lang.String url)
Creates a DataSource that is backed by a connection pool.

Parameters:
driverClassName - The class name of the jdbc driver to use.
userName - The username to connect to the database with.
password - The password to connect to the database with.
url - The url to locate the database with.
maxActive - Maximum number of dB connections in pool. Set to 0 for no limit.
maxIdle - Maximum number of idle dB connections to retain in pool. Set to 0 for no limit.
maxWait - Maximum time to wait for a dB connection to become available in ms, in this example 10 seconds. Set to -1 to wait indefinitely.
Returns:
A DataSource that is backed by a connection pool.