Class GetDeltaSchedule
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.ScheduleLoadDAO
org.deltava.dao.file.GetDeltaSchedule
A Data Access Object to load the Delta flight schedule.
- Since:
- 9.0
- Version:
- 12.0
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class ScheduleLoadDAO
ScheduleLoadDAO.FlightDataModifier and TypeClassDescriptionprotected static classA utility class to store flight data components. -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess()Returns back the loaded Flight Schedule entries.voidSets the flight schedule effective date.Methods inherited from class ScheduleLoadDAO
getEquipmentType, getStatus, setAircraft, setAirlinesModifier and TypeMethodDescriptionprotected StringgetEquipmentType(String iataCode) Maps an IATA equipment code to an aircraft type.Returns the schedule import results.voidsetAircraft(Collection<Aircraft> acInfo) Initializes the IATA/ICAO aircraft code mappings.voidsetAirlines(Collection<Airline> airlines) Initializes the list of airlines.Methods inherited from class DAO
getReader, getStream, setBufferSizeModifier and TypeMethodDescriptionprotected LineNumberReaderReturns a reader suitable for text reads on the HTTP connection.protected InputStreamReturns the input stream used for input.voidsetBufferSize(int size) Sets the buffer size for the connection.
-
Constructor Details
-
GetDeltaSchedule
Initializes the Data Access Object.- Parameters:
is- the InputStream to read
-
-
Method Details
-
setEffectiveDate
Sets the flight schedule effective date.- Parameters:
ldt- a LocalDateTime
-
process
Description copied from class:ScheduleLoadDAOReturns back the loaded Flight Schedule entries.- Specified by:
processin classScheduleLoadDAO- Returns:
- a Collection of ScheduleEntry beans
- Throws:
DAOException- if a JDBC error occurs
-