Class SetFlightReportQueue

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

public class SetFlightReportQueue extends DAO
A Data Access Object to write to asynchronous Flight Report operation queues. This are done for asynchronous updates of Flight Statistics, Flight Report approvals and Elite Status updates.
Since:
12.2
Version:
12.2
Author:
Luke
  • Constructor Details

    • SetFlightReportQueue

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

    • add

      public void add(int id, boolean skipElite, String dbName) throws DAOException
      Adds an entry to the operation queue.
      Parameters:
      id - the Flight Report database ID
      skipElite - TRUE if Elite scoring should be marked complete (for Rejected flights and no Elite program), otherwise FALSE
      dbName - the database name
      Throws:
      DAOException - if a JDBC error occurs
    • clear

      public void clear(int id) throws DAOException
      Deletes an entry from the operation queue.
      Parameters:
      id - the Flight Report database ID
      Throws:
      DAOException - if a JDBC error occurs
    • complete

      public void complete(int id, ApprovalOperation a) throws DAOException
      Marks a post-approval operation as complete in the queue.
      Parameters:
      id - the Flight Report database ID
      a - the AppropvalOperation
      Throws:
      DAOException - if a JDBC error occurs