Class GetScheduleAirport
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetScheduleAirport
A Data Access Object to load Schedule route data.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns arriving flight statistics for a particular Airport.getConnectingAirports
(Airport a, boolean from, Airline al) Returns Airports with flights departing or arriving at a particular Airport for a particular Airline.Returns departing flight statistics for a particular Airport.Returns all Airports for an Airline with at least one flight arriving.Returns all Airports for an Airline with at least one flight departing.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
-
GetScheduleAirport
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getOriginAirports
Returns all Airports for an Airline with at least one flight departing.- Parameters:
al
- the Airline bean or null- Returns:
- a Collection of Airport beans, sorted by airport name
- Throws:
DAOException
- if a JDBC error occurs
-
getDestinationAirports
Returns all Airports for an Airline with at least one flight arriving.- Parameters:
al
- the Airline bean or null- Returns:
- a Collection of Airport beans, sorted by airport name
- Throws:
DAOException
- if a JDBC error occurs
-
getDepartureStatistics
Returns departing flight statistics for a particular Airport.- Parameters:
a
- the Airport- Returns:
- a Collection of ScheduleStatsEntry beans
- Throws:
DAOException
- if a JDBC error occurs
-
getArrivalStatistics
Returns arriving flight statistics for a particular Airport.- Parameters:
a
- the Airport- Returns:
- a Collection of ScheduleStatsEntry beans
- Throws:
DAOException
- if a JDBC error occurs
-
getConnectingAirports
Returns Airports with flights departing or arriving at a particular Airport for a particular Airline.- Parameters:
a
- the Airport beanfrom
- TRUE if returning destination airports for flights originating at a, otherwise FALSEal
- the Airline bean- Returns:
- a Collection of Airport beans
- Throws:
DAOException
- if a JDBC error occurs
-