Version: 1.1.1

org.biomoby.registry.rdfagent.util
Class DBConnector

java.lang.Object
  extended by org.biomoby.registry.rdfagent.util.DBConnector

public class DBConnector
extends Object

Author:
Edward Kawas Establish a connection with a database

Constructor Summary
DBConnector()
          Constructor
 
Method Summary
 void closeConnection()
          close the connection to the database
 Connection getConnection()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBConnector

public DBConnector()
            throws MobyException
Constructor

Throws:
MobyException - if the JDBC driver was not found
Method Detail

getConnection

public Connection getConnection()
                         throws MobyException
Returns:
a Connection object to the database
Throws:
MobyException - if there is an database access error

closeConnection

public void closeConnection()
close the connection to the database


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010