Class GetACARSTaxiTimes

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetACARSTaxiTimes

public class GetACARSTaxiTimes extends DAO
A Data Access Object to calculate average taxi times.
Since:
8.6
Version:
11.2
Author:
Luke
  • Constructor Details

    • GetACARSTaxiTimes

      public GetACARSTaxiTimes(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC Connection to use
  • Method Details

    • getTaxiTime

      public TaxiTime getTaxiTime(Airport a, int year) throws DAOException
      Retrieves the average taxi time for an Airport in a given year.
      Parameters:
      a - the Airport
      year - the year
      Returns:
      a TaxiTime
      Throws:
      DAOException - if a JDBC error occurs
    • getTaxiTime

      public TaxiTime getTaxiTime(Airport a) throws DAOException
      Retrieves the average taxi time for an Airport.
      Parameters:
      a - the Airport
      Returns:
      a TaxiTime
      Throws:
      DAOException - if a JDBC error occurs
    • getTaxiTime

      public TaxiTime getTaxiTime(int flightID) throws DAOException
      Retrieves the taxi times for a flight.
      Parameters:
      flightID - the ACARS Flight ID
      Returns:
      a TaxiTime
      Throws:
      DAOException - if a JDBC error occurs
    • hasTimes

      public boolean hasTimes(int id) throws DAOException
      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