edu.mayo.informatics.lexgrid.convert.directConversions
Class UMLSHistoryFileToSQL
java.lang.Object
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 |
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 serversqlDriver
- driver classsqlUsername
- username for server authenticationsqlPassword
- password for server authenticationmessageDirector
- log message output
- Throws:
java.sql.SQLException
java.lang.Exception
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