genealogy.dbhandler
Class DBGeneral

java.lang.Object
  |
  +--genealogy.dbhandler.DBGeneral
Direct Known Subclasses:
DBReader, DBWriter

public class DBGeneral
extends java.lang.Object

General database-class.


Field Summary
private  java.lang.String DBUrl
           
 
Constructor Summary
DBGeneral()
          create new DBGeneral, read config-file.
 
Method Summary
protected  java.sql.Connection getDbConn()
          Loads org.gjt.mm.mysql.Driver-class, makes a JDBC-connection a database conffed in config.cfg and returns a Connection.
 void loadDBUrl()
          Loads the DATABASE_URL from the config-file
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

DBUrl

private java.lang.String DBUrl
Constructor Detail

DBGeneral

public DBGeneral()
create new DBGeneral, read config-file.
Method Detail

getDbConn

protected java.sql.Connection getDbConn()
Loads org.gjt.mm.mysql.Driver-class, makes a JDBC-connection a database conffed in config.cfg and returns a Connection.
Returns:
Connection

loadDBUrl

public void loadDBUrl()
Loads the DATABASE_URL from the config-file