|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadmin.ManageConnections
public class ManageConnections
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 |
---|
public ManageConnections()
Method Detail |
---|
public java.sql.Connection connectToDB(java.lang.String confile)
public java.lang.String[] getConnectionParameters(java.lang.String confile)
public void closeConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |