com.peter.db
Class DBUtils

java.lang.Object
  |
  +--com.peter.db.DBUtils

public class DBUtils
extends java.lang.Object

This is a general database utilities manager.

Version:
$Revision: 1.0.2, 2003-11-10 $
Author:
Peter Larsson

Constructor Summary
DBUtils()
           
 
Method Summary
static DBConPool getPool()
          Returns a pool of connections.
static void shutdownPool()
          Shuts down the pool by requesting it to close all it's database connections.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBUtils

public DBUtils()
Method Detail

getPool

public static DBConPool getPool()
                         throws java.sql.SQLException,
                                java.lang.ClassNotFoundException,
                                java.lang.InstantiationException,
                                java.lang.IllegalAccessException
Returns a pool of connections.
Returns:
A pool of connections
Throws:
java.sql.SQLException - If a SQLException was thrown
java.lang.ClassNotFoundException - If the driver could not be loaded into memory
java.lang.InstantiationException - If the driver could not be found
java.lang.IllegalAccessException - If the password is incorrect

shutdownPool

public static void shutdownPool()
Shuts down the pool by requesting it to close all it's database connections.