Class GetPilotNotify


public class GetPilotNotify extends GetPilot
A Data Access Object to get Pilot notification lists.
Since:
1.0
Version:
10.3
Author:
Luke
  • Constructor Details

    • GetPilotNotify

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

    • getNotifications

      public List<EMailAddress> getNotifications(Notification notificationType) throws DAOException
      Returns Pilots signed up to receive a particular notification type.
      Parameters:
      notificationType - the Notification Type to filter on
      Returns:
      a List of objects implementing EMailAddress
      Throws:
      DAOException - if a JDBC error occurs
      IllegalArgumentException - if notificationType is invalid
    • gePilots

      public Collection<Pilot> gePilots(Notification notificationType) throws DAOException
      Returns the populated Pilots signed up to receive a particulr notification type.
      Parameters:
      notificationType - the Notification Type to filter on.
      Returns:
      a Collection of Pilot beans
      Throws:
      DAOException - if a JDBC error occurs