01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.rdbm.pool;
07:
08: import javax.sql.DataSource;
09:
10: /**
11: * @author Eric Dalquist <a href="mailto:edalquist@unicon.net">edalquist@unicon.net</a>
12: * @version $Revision: 36683 $ $Date: 2006-08-23 15:08:00 -0700 (Wed, 23 Aug 2006) $
13: */
14: public interface IPooledDataSourceFactory {
15:
16: /**
17: * Creates a {@link DataSource} that is backed by a connection pool.
18: *
19: * @param driverClassName The class name of the jdbc driver to use.
20: * @param userName The username to connect to the database with.
21: * @param password The password to connect to the database with.
22: * @param url The url to locate the database with.
23: * @param poolPreparedStatements Should prepared statements be pooled
24: * @return A {@link DataSource} that is backed by a connection pool.
25: */
26: public DataSource createPooledDataSource(String driverClassName,
27: String userName, String password, String url,
28: boolean poolPreparedStatements);
29: }
|