org.jhuapl.edu.sages.etl
Class ConnectionFactory

java.lang.Object
  extended by org.jhuapl.edu.sages.etl.ConnectionFactory

public class ConnectionFactory
extends Object

Creates connections to databases. Fully supported dbms: Postgresql (includes transactions and savepoints) In progress supported dbms: MS Access (transactions and savepoints not implemented)

Author:
POKUAM1

Constructor Summary
ConnectionFactory()
          Constructor for ConnectionFactory
 
Method Summary
static Connection createConnection(String dbmsType, String serverName, String dbName, String user, String password, int portNumber)
          Establishes database connection to the target database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactory

public ConnectionFactory()
Constructor for ConnectionFactory

Method Detail

createConnection

public static Connection createConnection(String dbmsType,
                                          String serverName,
                                          String dbName,
                                          String user,
                                          String password,
                                          int portNumber)
                                   throws SQLException
Establishes database connection to the target database

Parameters:
dbmsType - - String with value postgresql (not fully implemented are: msaccess, mysql)
serverName -
dbname -
user -
password -
portNumber - - int value
Returns:
Connection
Throws:
SQLException


Copyright © 2013 Johns Hopkins University Applied Physics Laboratory. All rights reserved.