Class GetExamProfiles

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

public class GetExamProfiles extends DAO
A Data Access Object to read examination configuration data.
Since:
1.0
Version:
10.5
Author:
Luke
  • Constructor Details

    • GetExamProfiles

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

    • getAllExamProfiles

      public List<ExamProfile> getAllExamProfiles() throws DAOException
      Returns all Examination Profiles.
      Returns:
      a List of ExamProfile beans
      Throws:
      DAOException - if a JDBC error occurs
    • getExamProfiles

      public List<ExamProfile> getExamProfiles() throws DAOException
      Returns all Examination profiles for the current Airline.
      Returns:
      a List of ExamProfile beans
      Throws:
      DAOException - if a JDBC error occurs
    • getExamProfile

      public ExamProfile getExamProfile(String examName) throws DAOException
      Loads an Examination profile.
      Parameters:
      examName - the examination name
      Returns:
      an ExamProfile bean, or null if the exam was not found
      Throws:
      DAOException - if a JDBC error occurs
    • getExamProfiles

      public List<ExamProfile> getExamProfiles(boolean isAcademy) throws DAOException
      Returns all Examination profiles included within the Flight Academy or Testing Center.
      Parameters:
      isAcademy - TRUE if Flight Academy exams should be returned, otherwise FALSE for the Testing Center
      Returns:
      a List of ExamProfile beans
      Throws:
      DAOException - if a JDBC error occurs
    • getScript

      Loads a Check Ride script.
      Parameters:
      key - the script key
      Returns:
      an EquipmentRideScript bean, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getScripts

      public List<EquipmentRideScript> getScripts() throws DAOException
      Returns all Check Ride scripts.
      Returns:
      a List of CheckRideScript beans
      Throws:
      DAOException - if a JDBC error occurs