ca.bc.gov.webade.dbpool
Class ConnectionCacheUtils

java.lang.Object
  extended byca.bc.gov.webade.dbpool.ConnectionCacheUtils

public final class ConnectionCacheUtils
extends java.lang.Object

Creates connection pool datasources using the given ConnectionPoolParams object. By default this factory creates connection pool data sources using the Oracle connection pool datasource. Another data source can be specified by setting the system property "webade.dbpool.pooledconnection.datasource.factory.class" to the desired fully-qualified class name.

Author:
jross

Constructor Summary
ConnectionCacheUtils()
           
 
Method Summary
static javax.sql.ConnectionPoolDataSource getDataSource(ConnectionPoolParams connectionParams)
          Loads the datasource with the given connection parameters.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionCacheUtils

public ConnectionCacheUtils()
Method Detail

getDataSource

public static final javax.sql.ConnectionPoolDataSource getDataSource(ConnectionPoolParams connectionParams)
                                                              throws java.sql.SQLException
Loads the datasource with the given connection parameters.

Parameters:
connectionParams - The datasource connection parameters.
Returns:
The associated datasource.
Throws:
java.sql.SQLException - Thrown if an error occurs while loading the datasource.