admin
Class ManageConnections

java.lang.Object
  extended by admin.ManageConnections

public class ManageConnections
extends java.lang.Object

Class managing connections with biowep database. Author: Chiara Rasi. chiara.rasi(at)istge.it 04-10-2007


Constructor Summary
ManageConnections()
           
 
Method Summary
 void closeConnection()
          Closes the database connection.
 java.sql.Connection connectToDB(java.lang.String confile)
          Takes the String address of the conf.txt file of biowep, passes it to the method getConnectionParameters() and connects with the biowep database.
 java.lang.String[] getConnectionParameters(java.lang.String confile)
          Extract from the config.txt file parameters such as DBhost, DBuser, DBpass (database host, user and password).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManageConnections

public ManageConnections()
Method Detail

connectToDB

public java.sql.Connection connectToDB(java.lang.String confile)
Takes the String address of the conf.txt file of biowep, passes it to the method getConnectionParameters() and connects with the biowep database.


getConnectionParameters

public java.lang.String[] getConnectionParameters(java.lang.String confile)
Extract from the config.txt file parameters such as DBhost, DBuser, DBpass (database host, user and password).


closeConnection

public void closeConnection()
Closes the database connection.