edu.jhu.tmaj.client.importer.specimens.data
Class DestinationUtils

java.lang.Object
  extended by edu.jhu.tmaj.client.importer.specimens.data.DestinationUtils

public final class DestinationUtils
extends java.lang.Object

Utilities for the specimens import app that convert columnnames from a tab-delimited file into columnnames in the database.


Method Summary
static java.util.List<TranslatedRow> getTranslatedRecordsList(TableArray<java.lang.String,java.lang.String> tableArray, MetaDataConverter metaDataConverter, int hospitalID, SpecimenIdentifiersResponse response)
          Gets a List of Maps ready to be inserted into the database from a List of Maps that was read from a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTranslatedRecordsList

public static java.util.List<TranslatedRow> getTranslatedRecordsList(TableArray<java.lang.String,java.lang.String> tableArray,
                                                                     MetaDataConverter metaDataConverter,
                                                                     int hospitalID,
                                                                     SpecimenIdentifiersResponse response)
                                                              throws java.io.IOException
Gets a List of Maps ready to be inserted into the database from a List of Maps that was read from a file.

Parameters:
fileListOfMaps - the data read from the file submitted to the import program
Returns:
ListOfTwoHashes which contain values ready for the database--that is, converted to the proper fieldNames and not having any unregisted fieldnames (fieldnames not in the config file)
Throws:
java.io.IOException