Class GetSimBriefPackages

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

public class GetSimBriefPackages extends DAO
A Data Access Object to load SimBrief briefing package data.
Since:
10.4
Version:
11.2
Author:
Luke
  • Constructor Details

    • GetSimBriefPackages

      public GetSimBriefPackages(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connectiont o use
  • Method Details

    • getSimBrief

      public BriefingPackage getSimBrief(int id, String db) throws DAOException
      Loads a SimBrief briefing package for a Flight Report.
      Parameters:
      id - the Flight Report database ID
      db - the database name
      Returns:
      a SimBrief package, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getAirframes

      public List<Airframe> getAirframes(String eqType, Airline a, int pilotID) throws DAOException
      Returns all aircraft tail codes used for flights in a given Equipment Type and Airline.
      Parameters:
      eqType - the Equipment Type
      a - the Airline
      pilotID - the Pilot database ID, or zero for all Pilots
      Returns:
      a List of Airframes, order by descending popularity
      Throws:
      DAOException - if a JDBC error occurs