com.evanmclean.evlib.commons.dbcp
Class DbcpUtils

java.lang.Object
  extended by com.evanmclean.evlib.commons.dbcp.DbcpUtils

public final class DbcpUtils
extends Object

Misc handy functions for the Apache Database Connection Pooling package.

NOTE: The C3P0 library is generally a better database connection pooling library all round.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

Method Summary
static void closePool(String name)
          Close the specifically named DBCP pool.
static void closePools()
          Close all DBCP pools.
static PoolingDriver getPoolingDriver()
          Get the DBCP pooling driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

closePool

public static void closePool(String name)
                      throws SQLException
Close the specifically named DBCP pool.

Parameters:
name - The name of the pool to close.
Throws:
SQLException

closePools

public static void closePools()
Close all DBCP pools.


getPoolingDriver

public static PoolingDriver getPoolingDriver()
Get the DBCP pooling driver.

Returns:
Return the DBCP pooling driver or null.