edu.jhu.tmaj.database.conn
Class MySqlConnectionFactory

java.lang.Object
  extended by edu.jhu.tmaj.database.conn.AbstractConnectionFactory
      extended by edu.jhu.tmaj.database.conn.MySqlConnectionFactory
All Implemented Interfaces:
ConnectionFactory

final class MySqlConnectionFactory
extends AbstractConnectionFactory
implements ConnectionFactory

Generates database Connections to a MySQL database. Sample values for the DatabaseParameters might be: username = root
password = secretPassword
ip_address = 127.0.0.1
port = 3306
db_name = tmaj_jhu_mysqltest
db_type = MySQL


Field Summary
 
Fields inherited from class edu.jhu.tmaj.database.conn.AbstractConnectionFactory
databaseParameters
 
Constructor Summary
MySqlConnectionFactory(DatabaseParameters databaseParameters)
           
 
Method Summary
(package private)  java.lang.String getConnectionString()
           
(package private)  java.lang.String getDriverName()
           
 
Methods inherited from class edu.jhu.tmaj.database.conn.AbstractConnectionFactory
getNewConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.jhu.tmaj.database.conn.ConnectionFactory
getNewConnection
 

Constructor Detail

MySqlConnectionFactory

public MySqlConnectionFactory(DatabaseParameters databaseParameters)
Method Detail

getConnectionString

java.lang.String getConnectionString()
Specified by:
getConnectionString in class AbstractConnectionFactory

getDriverName

java.lang.String getDriverName()
Specified by:
getDriverName in class AbstractConnectionFactory