net.loadbang.sql
Class MySQL_DB

java.lang.Object
  extended by net.loadbang.sql.Database
      extended by net.loadbang.sql.MySQL_DB

public class MySQL_DB
extends Database

A connection to a MySQL database.

Author:
Nick Rothwell, nick@cassiel.com / nick@loadbang.net

Nested Class Summary
 
Nested classes/interfaces inherited from class net.loadbang.sql.Database
Database.ConnectionCallback<T>
 
Constructor Summary
MySQL_DB(java.lang.String host, java.lang.String database, java.lang.String user, java.lang.String password)
          Constructor.
 
Method Summary
 
Methods inherited from class net.loadbang.sql.Database
close, open, query, update, withConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQL_DB

public MySQL_DB(java.lang.String host,
                java.lang.String database,
                java.lang.String user,
                java.lang.String password)
         throws SetupException
Constructor.

Parameters:
host - the host running MySQL
database - the database name within MySQL
user - the database user
password - the user's password
Throws:
SetupException - if there is a problem setting up the driver