Class GetACARSDispatchStats

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

public class GetACARSDispatchStats extends DAO
A Data Access Object to load Dispatcher Activity statistics.
Since:
3.2
Version:
11.4
Author:
Luke
  • Constructor Details

    • GetACARSDispatchStats

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

    • getDispatchTotals

      public void getDispatchTotals(Pilot p) throws DAOException
      Loads dispatcher totals for a pilot.
      Parameters:
      p - the Pilot bean
      Throws:
      DAOException - if a JDBC error occurs
    • getTopDispatchers

      public Collection<DispatchStatistics> getTopDispatchers(DateRange dr) throws DAOException
      Returns all Dispatchers who provided service between two Dates.
      Parameters:
      dr - the DateRange
      Returns:
      a Collection of Database IDs
      Throws:
      DAOException - if a JDBC error occurs
    • getDispatchRanges

      public List<DateRange> getDispatchRanges() throws DAOException
      Returns all date ranges with dispatched flights.
      Returns:
      a Collection of DateRange beans
      Throws:
      DAOException - if a JDBC error occurs