com.finalist.util.genelv.db
Class GenElvConnectionManager

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

public class GenElvConnectionManager
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 GenElvConnectionManager()
          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 GenElvConnectionManager getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenElvConnectionManager

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

Method Detail

getInstance

public static GenElvConnectionManager 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.