org.jhuapl.edu.sages.etl.oldstuff
Class EmptyTestOpenCsvJar

java.lang.Object
  extended by org.jhuapl.edu.sages.etl.oldstuff.EmptyTestOpenCsvJar

public class EmptyTestOpenCsvJar
extends Object

Author:
POKUAM1

Constructor Summary
EmptyTestOpenCsvJar()
           
EmptyTestOpenCsvJar(String dbms, int portNumber, String userName, String password, String serverName, String dbName)
           
 
Method Summary
static SagesEtlException abort(String msg, Throwable e)
          returns a SagesEtlException that wraps the original exception
protected static String[] determineHeaderColumns(File file)
           
protected static void extractHeaderColumns(EmptyTestOpenCsvJar tocj)
           
 Connection getConnection()
          Establishes database connection to the target database
protected  void initializeProperties(ETLProperties etlProperties)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyTestOpenCsvJar

public EmptyTestOpenCsvJar(String dbms,
                           int portNumber,
                           String userName,
                           String password,
                           String serverName,
                           String dbName)
                    throws SagesEtlException
Parameters:
dbms -
portNumber -
userName -
password -
serverName -
dbName -
Throws:
SagesEtlException

EmptyTestOpenCsvJar

public EmptyTestOpenCsvJar()
                    throws SagesEtlException
Parameters:
dbms -
portNumber -
userName -
password -
serverName -
dbName -
Throws:
SagesEtlException
Method Detail

initializeProperties

protected void initializeProperties(ETLProperties etlProperties)
                             throws SagesEtlException
Throws:
SagesEtlException

abort

public static SagesEtlException abort(String msg,
                                      Throwable e)
returns a SagesEtlException that wraps the original exception

Parameters:
msg - SAGES ETL message to display
e - the original exception
Returns:
SagesEtlException

main

public static void main(String[] args)
                 throws Exception
Parameters:
args -
Throws:
Exception

getConnection

public Connection getConnection()
                         throws SagesEtlException
Establishes database connection to the target database

Returns:
Connection
Throws:
SQLException
SagesEtlException

extractHeaderColumns

protected static void extractHeaderColumns(EmptyTestOpenCsvJar tocj)
                                    throws FileNotFoundException,
                                           IOException
Parameters:
tocj -
Throws:
FileNotFoundException
IOException

determineHeaderColumns

protected static String[] determineHeaderColumns(File file)
                                          throws FileNotFoundException,
                                                 IOException
Parameters:
master_entries_rawdata -
file -
Throws:
FileNotFoundException
IOException


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