public class LocationsFileReader 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 |
EASTING |
private static String |
ID |
private Map<String,Integer> |
insertedColInfo |
private String |
insertString |
private static String |
NORTHING |
private static String |
SECTION_NAME |
private static String |
TABLE_NAME |
Constructor and Description |
---|
LocationsFileReader(DataFiles.LocationsFile locationsFile,
DatabaseImpl dbImpl)
Create the locations 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 StringBuilder createTableCommand
private String insertString
private Collection<Integer> dateFields
private static final String TABLE_NAME
private static final String ID
private static final String EASTING
private static final String NORTHING
private static final String SECTION_NAME
public LocationsFileReader(DataFiles.LocationsFile locationsFile, DatabaseImpl dbImpl)
locationsFile
- 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.