Class GetRunwayUsage

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

public class GetRunwayUsage extends DAO
A Data Access Object to load popular runways for takeoff and landing.
Since:
2.6
Version:
11.1
Author:
Luke
  • Constructor Details

    • GetRunwayUsage

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

    • getPopularRunways

      public RunwayUsage getPopularRunways(Airport a, boolean isDeparture) throws DAOException
      Retrieves the most popular runways used at a particular Airport.
      Parameters:
      a - the Airport
      isDeparture - TRUE if takeoff, otherwise landing
      Returns:
      a RunwayUsage bean
      Throws:
      DAOException - if a JDBC error occurs
    • getPopularRunways

      public RunwayUsage getPopularRunways(RoutePair rp, boolean isDeparture) throws DAOException
      Retrieves the most popular runways used on a particular route.
      Parameters:
      rp - the RoutePair
      isDeparture - TRUE if takeoff, otherwise landing
      Returns:
      a RunwayUsage bean
      Throws:
      DAOException - if a JDBC error occurs