Class GetRawScheduleInfo
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetRawScheduleInfo
A Data Access Object to load raw flight schedule information.
- Since:
- 9.0
- Version:
- 10.2
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArrivalAirports
(ScheduleSource src, Airport aD) Returns arrival Airports for a particular raw schedule source.getFlightNumbers
(Airline a, int start, int end) Returns all flight numbers in a particular range.int
getNextLeg
(Airline a, int flightNumber) Returns the next available Leg number for a Flight.int
Returns the first available "line number" for manually entered raw schedule entries.getOriginAirports
(ScheduleSource src, Airport aA) Returns departure Airports for a particular raw schedule source.Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeIDs, executeUpdate, executeUpdate, expandDate, formatDBName, formatLocation, getNewID, getQueryCount, prepare, prepareWithoutLimits, rollbackTransaction, setQueryMax, setQueryStart, setQueryTimeout, startTransaction, toID, toID, toInstant
-
Constructor Details
-
GetRawScheduleInfo
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getNextManualEntryLine
Returns the first available "line number" for manually entered raw schedule entries.- Returns:
- the next line number
- Throws:
DAOException
- if a JDBC error occurs
-
getNextLeg
Returns the next available Leg number for a Flight.- Parameters:
a
- the Airline beanflightNumber
- the flight number- Returns:
- the next available leg number
- Throws:
DAOException
- if a JDBC error occurs
-
getOriginAirports
Returns departure Airports for a particular raw schedule source.- Parameters:
src
- the ScheduleSource, or null for all sourcesaA
- the arrival Airport, or null for all flights- Returns:
- a List of Airport beans
- Throws:
DAOException
- if a JDBC error occurs
-
getArrivalAirports
Returns arrival Airports for a particular raw schedule source.- Parameters:
src
- the ScheduleSource, or null for all sourcesaD
- the departure Airport, or null for all flights- Returns:
- a List of Airport beans
- Throws:
DAOException
- if a JDBC error occurs
-
getFlightNumbers
Returns all flight numbers in a particular range.- Parameters:
a
- the Airline beanstart
- the start of the range, or zero if none specifiedend
- the end of the range, or zero if none specified- Returns:
- a Collection of Integers with flight numbers
- Throws:
DAOException
- if a JDBC error occurs
-