Class SetPilotTransfer


public class SetPilotTransfer extends SetPilot
A Data Access Object to transfer pilots between Airlines.
Since:
1.0
Version:
11.0
Author:
Luke
  • Constructor Details

    • SetPilotTransfer

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

    • transfer

      public void transfer(Person p, String dbName, Collection<String> ratings) throws DAOException
      Writes a new Pilot to a database.
      Parameters:
      p - the Pilot/Applicant
      dbName - the database name
      ratings - the Pilot's equipment ratings
      Throws:
      DAOException - if a JDBC error occurs