Class GetACARSTaxiTimes
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetACARSTaxiTimes
A Data Access Object to calculate average taxi times.
- Since:
- 8.6
- Version:
- 11.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 TypeMethodDescriptiongetTaxiTime
(int flightID) Retrieves the taxi times for a flight.Retrieves the average taxi time for an Airport.getTaxiTime
(Airport a, int year) Retrieves the average taxi time for an Airport in a given year.boolean
hasTimes
(int id) Returns whether a given ACARS flight has logged taxi times.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
-
GetACARSTaxiTimes
Initializes the Data Access Object.- Parameters:
c
- the JDBC Connection to use
-
-
Method Details
-
getTaxiTime
Retrieves the average taxi time for an Airport in a given year.- Parameters:
a
- the Airportyear
- the year- Returns:
- a TaxiTime
- Throws:
DAOException
- if a JDBC error occurs
-
getTaxiTime
Retrieves the average taxi time for an Airport.- Parameters:
a
- the Airport- Returns:
- a TaxiTime
- Throws:
DAOException
- if a JDBC error occurs
-
getTaxiTime
Retrieves the taxi times for a flight.- Parameters:
flightID
- the ACARS Flight ID- Returns:
- a TaxiTime
- Throws:
DAOException
- if a JDBC error occurs
-
hasTimes
Returns whether a given ACARS flight has logged taxi times.- Parameters:
id
- the ACARS Flight ID- Returns:
- TRUE if taxi times have been logged, otherwise FALSE
- Throws:
DAOException
- if a JDBC error occurs
-