Class SetDispatchCalendar

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

public class SetDispatchCalendar extends DAO
A Data Access Object to write entries to the ACARS Dispatcher service calendar.
Since:
2.2
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetDispatchCalendar

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

    • write

      public void write(DispatchScheduleEntry dse) throws DAOException
      Writes a schedule entry to the calendar. This can handle INSERT and UPDATE operations.
      Parameters:
      dse - the DispatchScheduleEntry to write
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int id) throws DAOException
      Deletes a schedule entry from the calendar.
      Parameters:
      id - the entry database ID
      Throws:
      DAOException - if a JDBC error occurs