com.finalist.util.genelv.db
Class ConnectionManager

java.lang.Object
  extended bycom.finalist.util.genelv.db.ConnectionManager
All Implemented Interfaces:
java.io.Serializable

public class ConnectionManager
extends java.lang.Object
implements java.io.Serializable

This class does the lookup for the database table to locate the error code / error type mapping

Author:
Gerard van de Weerd
See Also:
Serialized Form

Constructor Summary
protected ConnectionManager()
          Default constructor.
 
Method Summary
static java.sql.Connection connect()
          Create return connection calling methode is responsable for closing this connection
protected  java.sql.Connection getConnection()
           
static ConnectionManager getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionManager

protected ConnectionManager()
                     throws java.lang.ClassNotFoundException
Default constructor. Loads my sql driver class;

Method Detail

getInstance

public static ConnectionManager getInstance()
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

getConnection

protected java.sql.Connection getConnection()
                                     throws java.sql.SQLException
Throws:
java.sql.SQLException

connect

public static java.sql.Connection connect()
                                   throws java.sql.SQLException
Create return connection calling methode is responsable for closing this connection

Returns:
The Connection
Throws:
java.sql.SQLException - When the lookup failed or if there is no database


Copyright © 2003-2004 SourceForge. All Rights Reserved.