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
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 |
DBUtils
public DBUtils()
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 thrownjava.lang.ClassNotFoundException
- If the driver could not be loaded into
memoryjava.lang.InstantiationException
- If the driver could not be foundjava.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.