org.jhuapl.edu.sages.etl
Class ConnectionFactory
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionFactory
public ConnectionFactory()
- Constructor for
ConnectionFactory
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.