Class GetRunwayUsage
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetRunwayUsage
A Data Access Object to load popular runways for takeoff and landing.
- Since:
- 2.6
- Version:
- 11.1
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPopularRunways
(Airport a, boolean isDeparture) Retrieves the most popular runways used at a particular Airport.getPopularRunways
(RoutePair rp, boolean isDeparture) Retrieves the most popular runways used on a particular route.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
-
GetRunwayUsage
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getPopularRunways
Retrieves the most popular runways used at a particular Airport.- Parameters:
a
- the AirportisDeparture
- TRUE if takeoff, otherwise landing- Returns:
- a RunwayUsage bean
- Throws:
DAOException
- if a JDBC error occurs
-
getPopularRunways
Retrieves the most popular runways used on a particular route.- Parameters:
rp
- the RoutePairisDeparture
- TRUE if takeoff, otherwise landing- Returns:
- a RunwayUsage bean
- Throws:
DAOException
- if a JDBC error occurs
-