rjw.dc.db
Class DatabaseConnection

java.lang.Object
  |
  +--rjw.dc.db.DatabaseConnection

public class DatabaseConnection
extends java.lang.Object

Maintains and creates the connection to the database

Since:
1.3
Version:
DC0.50
Author:
Robert-Jan van der Waals

Field Summary
static boolean bConnected
          Specifies whether a connection has been made to the database
static boolean bServerConnection
           
 
Constructor Summary
DatabaseConnection()
           
 
Method Summary
static java.sql.Connection connect()
          Creates the connection to the database.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bConnected

public static boolean bConnected
Specifies whether a connection has been made to the database


bServerConnection

public static boolean bServerConnection
Constructor Detail

DatabaseConnection

public DatabaseConnection()
Method Detail

connect

public static java.sql.Connection connect()
Creates the connection to the database. If this fails, the connected boolean is left on false. Errors are shown to the user via a messagebox