Class GetDispatchCalendar


public class GetDispatchCalendar extends GetACARSData
A Data Access Object to read the ACARS Dispatcher service calendar.
Since:
2.2
Version:
10.1
Author:
Luke
  • Constructor Details

    • GetDispatchCalendar

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

    • getDispatchConnections

      public List<ConnectionEntry> getDispatchConnections(DateRange dr) throws DAOException
      Returns all ACARS Dispatch connection entries within a time span.
      Parameters:
      dr - the DateRange
      Returns:
      a List of dispatch ConnectionEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • getDispatchedFlights

      public Collection<FlightInfo> getDispatchedFlights(DispatchConnectionEntry ce) throws DAOException
      Retrieves all Flights dispatched by a Dispatcher during a particular Connection.
      Parameters:
      ce - the DispatchConnectionEntry
      Returns:
      a List of FlightInfo beans
      Throws:
      DAOException - if a JDBC error occurs
    • get

      public DispatchScheduleEntry get(int id) throws DAOException
      Retrieves a specifc Dispatcher service entry.
      Parameters:
      id - the entry database ID
      Returns:
      a DispatchScheduleEntry, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getCalendar

      public Collection<DispatchScheduleEntry> getCalendar(int dispatcherID, DateRange dr) throws DAOException
      Return Dispatcher service times for the Calendar.
      Parameters:
      dispatcherID - the dispatcher database ID, or zero if all
      dr - the DateRange
      Returns:
      a Collection of DispatchScheduleEntry beans
      Throws:
      DAOException - if a JDBC error occurs