org.histpop.server.db
Class DB

java.lang.Object
  extended by org.histpop.server.db.DB

public class DB
extends java.lang.Object

This class allows the abstraction of a database connection, via the getConnection method. It could be modified to implement connection pooling, but at present there is opnly one database connection


Constructor Summary
DB(java.lang.String databaseURL, java.lang.String databaseDriver)
           
 
Method Summary
 java.sql.Connection getConnection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB

public DB(java.lang.String databaseURL,
          java.lang.String databaseDriver)
   throws ServerException
Throws:
ServerException
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws ServerException
Throws:
ServerException