public class TestsFileReader extends DataFileReader
Modifier and Type | Field and Description |
---|---|
private StringBuilder |
createTableCommand |
private DatabaseImpl |
database |
private String |
dataFile |
private Collection<Integer> |
dateFields |
private String |
dateFormat |
private static String |
GROUP_ID |
private static String |
ID |
private Map<String,Integer> |
insertedColInfo |
private String |
insertString |
private static String |
LOCATION_ID |
private static String |
NEGATIVE_RESULT |
private static String |
POSITIVE_RESULT |
private static String |
SECTION_NAME |
private static String |
TABLE_NAME |
private static String |
TEST_DATE |
Constructor and Description |
---|
TestsFileReader(DataFiles.TestsFile testsFile,
DatabaseImpl dbImpl)
Create the tests file reader.
|
Modifier and Type | Method and Description |
---|---|
int |
insert()
Insert the data from the input file into the database.
|
asCsv, asQuestionCsv, createTable, insert, updateCreateTableCommand
private DatabaseImpl database
private String dataFile
private String dateFormat
private static final String TABLE_NAME
private StringBuilder createTableCommand
private String insertString
private Collection<Integer> dateFields
private static final String ID
private static final String GROUP_ID
private static final String LOCATION_ID
private static final String TEST_DATE
private static final String POSITIVE_RESULT
private static final String NEGATIVE_RESULT
private static final String SECTION_NAME
public TestsFileReader(DataFiles.TestsFile testsFile, DatabaseImpl dbImpl)
testsFile
- the [xml] tag of the config file that is to be read.dbImpl
- the implementation of the database object.public final int insert()
DataFileReader
insert
in class DataFileReader
Copyright © 2015 University of Glasgow. All rights reserved.