Class GetAcademyInactivity

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

public class GetAcademyInactivity extends DAO
A Data Access Object to select dormant Flight Academy courses.
Since:
6.3
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetAcademyInactivity

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

    • getInactiveCourses

      public Map<Integer,Integer> getInactiveCourses(int interval, String dbName) throws DAOException
      Returns inactive Flight Academy courses from a particular Airline. This will return Courses that have had no completed progress, chats or submitted examinations/check rides within the specified interval.
      Parameters:
      interval - the interval since last activity
      dbName - the databasae to query
      Returns:
      a Map of Course IDs and intervals since last activity in days
      Throws:
      DAOException - if a JDBC error occurs