edu.mayo.informatics.lexgrid.convert.directConversions
Class UMLSHistoryFileToSQL

java.lang.Object
  extended by edu.mayo.informatics.lexgrid.convert.directConversions.UMLSHistoryFileToSQL

public class UMLSHistoryFileToSQL
extends java.lang.Object


Constructor Summary
UMLSHistoryFileToSQL(java.lang.String codingSchemeUri, boolean failOnAllErrors, LgMessageDirectorIF messageDirector, java.lang.String token)
          NCI Thesaurus History File to SQL Converter.
 
Method Summary
static java.sql.Date convertStringToDate(java.lang.String sDate, java.lang.String format)
          This method converts a date in string format to java.sql.Date Format.
 void loadUMLSHistory(java.net.URI folderPath)
          This method reads the History data from specified metaFolderPath and loads it into the database;
static void validateFile(java.net.URI fileLocation, java.lang.String token, boolean validateLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UMLSHistoryFileToSQL

public UMLSHistoryFileToSQL(java.lang.String codingSchemeUri,
                            boolean failOnAllErrors,
                            LgMessageDirectorIF messageDirector,
                            java.lang.String token)
                     throws java.sql.SQLException
NCI Thesaurus History File to SQL Converter.

Parameters:
filePath - location of the delimited file (local file or URL)
token - parsing token, if null default is "|"
sqlServer - location of the SQLLite server
sqlDriver - driver class
sqlUsername - username for server authentication
sqlPassword - password for server authentication
messageDirector - log message output
Throws:
java.sql.SQLException
java.lang.Exception
Method Detail

loadUMLSHistory

public void loadUMLSHistory(java.net.URI folderPath)
                     throws java.lang.Exception
This method reads the History data from specified metaFolderPath and loads it into the database;

Parameters:
metaFolderPath -
Throws:
java.sql.SQLException
java.lang.Exception

convertStringToDate

public static java.sql.Date convertStringToDate(java.lang.String sDate,
                                                java.lang.String format)
                                         throws java.lang.Exception
This method converts a date in string format to java.sql.Date Format.

Parameters:
sDate -
format -
Returns:
Throws:
java.lang.Exception

validateFile

public static void validateFile(java.net.URI fileLocation,
                                java.lang.String token,
                                boolean validateLevel)
                         throws java.lang.Exception
Throws:
java.lang.Exception

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.