Class MyConnection

java.lang.Object
  |
  +--MyConnection

public class MyConnection
extends java.lang.Object

This class is to be used from all other classes to create the database connection.


Constructor Summary
MyConnection()
           
 
Method Summary
static void close()
          Closes a connection.
static java.sql.Connection open()
          Loads the MySQL jdbc driver and return a Connecton.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyConnection

public MyConnection()
Method Detail

close

public static void close()
Closes a connection.


open

public static java.sql.Connection open()
Loads the MySQL jdbc driver and return a Connecton.