Class ScheduleLoadDAO
java.lang.Object
org.deltava.dao.file.DAO
org.deltava.dao.file.ScheduleLoadDAO
- Direct Known Subclasses:
GetDeltaSchedule
,GetFullSchedule
,GetPHPVMSSchedule
,GetRawPDFSchedule
,GetSchedule
,GetSkyTeamSchedule
An abstract class to store common methods for Flight Schedule import Data Access Objects.
- Since:
- 1.0
- Version:
- 11.5
- Author:
- Luke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A utility class to store flight data components. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ScheduleLoadDAO
(ScheduleSource src, InputStream is) Initializes the Data Access Object. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getEquipmentType
(String iataCode) Maps an IATA equipment code to an aircraft type.Returns the schedule import results.abstract Collection
<RawScheduleEntry> process()
Returns back the loaded Flight Schedule entries.void
setAircraft
(Collection<Aircraft> acInfo) Initializes the IATA/ICAO aircraft code mappings.void
setAirlines
(Collection<Airline> airlines) Initializes the list of airlines.Methods inherited from class org.deltava.dao.file.DAO
getReader, getStream, setBufferSize
-
Field Details
-
_status
-
_airlines
-
GROUND_EQ
-
-
Constructor Details
-
ScheduleLoadDAO
Initializes the Data Access Object.- Parameters:
src
- the ScheduleSourceis
- the input stream to read
-
-
Method Details
-
setAircraft
Initializes the IATA/ICAO aircraft code mappings.- Parameters:
acInfo
- a collection of Aircraft profile beans
-
setAirlines
Initializes the list of airlines.- Parameters:
airlines
- a Collection of Airline beans- See Also:
-
process
Returns back the loaded Flight Schedule entries.- Returns:
- a Collection of ScheduleEntry beans
- Throws:
DAOException
- if a JDBC error occurs
-
getStatus
-
getEquipmentType
Maps an IATA equipment code to an aircraft type.- Parameters:
iataCode
- the IATA code- Returns:
- the aircraft type, or null if not found
- Throws:
NullPointerException
- if iataCode is null- See Also:
-