Class GetFlightReportACARS


public class GetFlightReportACARS extends GetFlightReports
A Data Access Object to retrieve ACARS Flight Reports from the database.
Since:
1.0
Version:
11.5
Author:
Luke
  • Constructor Details

    • GetFlightReportACARS

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

    • getAirframes

      public List<Airframe> getAirframes(String eqType, Airline a, int pilotID) throws DAOException
      Returns all airframes used for flights in a given Equipment Type and Airline. This will not have populated SimBrief custom airframe IDs.
      Parameters:
      eqType - the Equipment Type
      a - the Airline
      pilotID - the Pilot database ID, or zero for all Pilots
      Returns:
      a List of tail codes, order by descending popularity
      Throws:
      DAOException - if a JDBC error occurs
    • getByDate

      public List<FlightReport> getByDate(Instant dt) throws DAOException
      Returns all Flight Reports flown on a certain date.
      Parameters:
      dt - the date
      Returns:
      a List of FlightReports
      Throws:
      DAOException - if a JDBC error occurs
    • getBySDK

      public List<FlightReport> getBySDK(String sdkName) throws DAOException
      Returns alll Flight Reports logged using a specific aircraft SDK.
      Parameters:
      sdkName - the SDK name
      Returns:
      a List of FlightReports
      Throws:
      DAOException - if a JDBC error occurs
    • getByPilot

      public List<FlightReport> getByPilot(int id, String orderBy) throws DAOException
      Returns all Flight Reports for a particular Pilot, using a sort column.
      Parameters:
      id - the Pilot database ID
      orderBy - the sort column (or null)
      Returns:
      a List of FlightReports
      Throws:
      DAOException - if a JDBC error occurs
    • checkDupes

      public List<FlightReport> checkDupes(String dbName, Flight f, int pilotID) throws DAOException
      Checks for duplicate ACARS flight submissions.
      Parameters:
      dbName - the database name
      f - the Flight information
      pilotID - the Pilot's database ID
      Returns:
      a List of FlightReport beans
      Throws:
      DAOException - if a JDBC error occurs
    • checkDupes

      public List<FlightReport> checkDupes(String dbName, int acarsID) throws DAOException
      Checks for duplicate ACARS flight submisions.
      Parameters:
      dbName - the database name
      acarsID - the ACARS flight ID
      Returns:
      a List of FlightReport beans
      Throws:
      DAOException - if a JDBC error occurs