Class SetAcademyCalendar

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

public class SetAcademyCalendar extends DAO
A Data Access Object to update Flight Academy Flight reports.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetAcademyCalendar

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

    • write

      public void write(InstructionFlight flight) throws DAOException
      Writes an Instruction flight entry to the database.
      Parameters:
      flight - the InstructionFlight bean
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(InstructionSession s) throws DAOException
      Writes an Instruction Calendar entry.
      Parameters:
      s - the InstructionSession bean
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(InstructionBusy ib) throws DAOException
      Writes an Instruction Calendar busy time entry.
      Parameters:
      ib - the InstructionBusy bean
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int id) throws DAOException
      Deletes an Instruction Flight entry from the database.
      Parameters:
      id - the database ID
      Throws:
      DAOException - if a JDBC error occurs
    • deleteBusy

      public void deleteBusy(int instructorID, Instant startTime) throws DAOException
      Deletes an Instructor busy time entry from the database.
      Parameters:
      instructorID - the Instructor's database ID
      startTime - the start time
      Throws:
      DAOException - if a JDBC error occurs