Class SetAggregateStatistics

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

public class SetAggregateStatistics extends DAO
A Data Access Object to update Flight Statistics.
Since:
6.2
Version:
11.4
Author:
Luke
  • Constructor Details

    • SetAggregateStatistics

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

    • addQueueEntry

      public void addQueueEntry(int id) throws DAOException
      Adds an entry to the aggregation queue.
      Parameters:
      id - the Flight Report database ID
      Throws:
      DAOException - if a JDBC error occurs
    • deleteQueueEntry

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

      public void update(FlightReport fr) throws DAOException
      Updates flight statistics based linked to a flight report.
      Parameters:
      fr - the FlightReport
      Throws:
      DAOException - if a JDBC error occurs
    • updateLanding

      public void updateLanding(FlightReport fr) throws DAOException
      Throws:
      DAOException