Class SetInactivity

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

public class SetInactivity extends DAO
A Data Access Object to update the Inactivity Purge table.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetInactivity

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

    • setInactivity

      public void setInactivity(int pilotID, int days, boolean isNotified) throws DAOException
      Sets the inactivity purge entry for a Pilot.
      Parameters:
      pilotID - the Pilot's database ID
      days - the number of days from today to purge
      isNotified - TRUE if the warning message has been sent, otherwise FALSE
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int pilotID) throws DAOException
      Removes a Pilot's inactivity purge entry.
      Parameters:
      pilotID - the Pilot's database ID
      Throws:
      DAOException - if a JDBC error occurs
    • purge

      public void purge() throws DAOException
      Purge all inactivity entries with a purge date in the past.
      Throws:
      DAOException - if a JDBC error occurs