Class GetFlightReportHistory

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

public class GetFlightReportHistory extends DAO
A Data Access Object to load Flight Report status updates from the database.
Since:
9.0
Version:
10.3
Author:
Luke
  • Constructor Details

    • GetFlightReportHistory

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

    • getEntries

      public Collection<FlightHistoryEntry> getEntries(int id) throws DAOException
      Loads status updates for a particular Flight Report.
      Parameters:
      id - the Flight Report database ID
      Returns:
      a Collection of FlightHistoryEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • loadStatus

      public void loadStatus(int pilotID, Collection<FlightReport> pireps) throws DAOException
      Loads all status updates for a Pilot's Flight Reports.
      Parameters:
      pilotID - the Pilot's database ID
      pireps - a Collection of FlightReports for this Pilot
      Throws:
      DAOException - if a JDBC error occurs