Class GetExamQualifications

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

public class GetExamQualifications extends DAO
A Data Access Object to load Pilot IDs for Pilots who meet the entrance qualifications for an Equipment Type program.
Since:
2.3
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetExamQualifications

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

    • getRatedPilots

      public Collection<Integer> getRatedPilots(EquipmentType eq) throws DAOException
      Returns the database IDs for all Pilots who meet the entrance criteria for an equipment type program.
      Parameters:
      eq - the EquipmentType bean
      Returns:
      a Collection of database IDs
      Throws:
      DAOException - if a JDBC error occurs
    • getRatedPilots

      public Collection<Integer> getRatedPilots(String acType) throws DAOException
      Returns the database IDs for all Pilots who currently have a specific aircraft rating.
      Parameters:
      acType - the aircraft type
      Returns:
      a Collection of database IDs
      Throws:
      DAOException - if a JDBC error occurs