public class DirectedMovementsFileReader 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 |
ID |
private Map<String,Integer> |
insertedColInfo |
private String |
insertString |
private static String |
LOCATION_ID |
private static String |
MOVEMENT_DATE |
private static String |
MOVEMENT_DIRECTION |
private static String |
SECTION_NAME |
private static String |
SPECIES |
private static String |
TABLE_NAME |
Constructor and Description |
---|
DirectedMovementsFileReader(DataFiles.DirectedMovementFile movementFile,
DatabaseImpl dbImpl)
Create the movement 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 SPECIES
private static final String LOCATION_ID
private static final String MOVEMENT_DATE
private static final String MOVEMENT_DIRECTION
private static final String SECTION_NAME
public DirectedMovementsFileReader(DataFiles.DirectedMovementFile movementFile, DatabaseImpl dbImpl)
movementFile
- the [XML] tag of the config file that is to be read.dbImpl
- the implementation of the database object.public final int insert()
insert
in class DataFileReader
Copyright © 2015 University of Glasgow. All rights reserved.