public class UMLSHistoryFileToSQL
extends java.lang.Object
Constructor and Description |
---|
UMLSHistoryFileToSQL(java.lang.String codingSchemeUri,
boolean failOnAllErrors,
LgMessageDirectorIF messageDirector,
java.lang.String token)
NCI Thesaurus History File to SQL Converter.
|
Modifier and Type | Method and Description |
---|---|
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) |
public UMLSHistoryFileToSQL(java.lang.String codingSchemeUri, boolean failOnAllErrors, LgMessageDirectorIF messageDirector, java.lang.String token) throws java.sql.SQLException
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 outputjava.sql.SQLException
java.lang.Exception
public void loadUMLSHistory(java.net.URI folderPath) throws java.lang.Exception
metaFolderPath
- java.sql.SQLException
java.lang.Exception
public static java.sql.Date convertStringToDate(java.lang.String sDate, java.lang.String format) throws java.lang.Exception
sDate
- format
- java.lang.Exception
public static void validateFile(java.net.URI fileLocation, java.lang.String token, boolean validateLevel) throws java.lang.Exception
java.lang.Exception