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
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 |
bConnected
public static boolean bConnected
- Specifies whether a connection has been made to the database
bServerConnection
public static boolean bServerConnection
DatabaseConnection
public DatabaseConnection()
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