de.uni.leipzig.IR15.Connectors
Class MySQLConnector

java.lang.Object
  extended by de.uni.leipzig.IR15.Connectors.MySQLConnector

public class MySQLConnector
extends java.lang.Object

Class to handle connection to the mysql database.

Author:
IR-Team

Constructor Summary
MySQLConnector()
           
 
Method Summary
static void destroyConnection()
          Destroy a database connection.
static java.sql.Connection getConnection()
          Create and return a database connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLConnector

public MySQLConnector()
Method Detail

getConnection

public static java.sql.Connection getConnection()
Create and return a database connection.

Returns:
database connection

destroyConnection

public static void destroyConnection()
Destroy a database connection.