Class GetSystemInfo

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

public class GetSystemInfo extends DAO
A Data Access Object to retrieve ACARS System Information data.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetSystemInfo

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

    • getTotals

      public int getTotals() throws DAOException
      Returns the total number of statistics entries for totals calculation.
      Returns:
      the total number of entries
      Throws:
      DAOException - if a JDBC error occurs
    • get

      public SystemInformation get(int id) throws DAOException
      Returns system configuration data for a particular Pilot.
      Parameters:
      id - the user's database ID
      Returns:
      a SystemInformation bean, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • get

      public SystemInformation get(int id, Simulator sim, Instant dt) throws DAOException
      Returns system configuration data for a particular Pilot.
      Parameters:
      id - the user's database ID
      sim - an optional Simulator bean
      dt - the date/time of the configuration recording
      Returns:
      a SystemInformation bean, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getStatistics

      public List<SystemStatistics<Integer>> getStatistics(String groupBy, boolean sortLabel) throws DAOException
      Returns Fleet Installer statistics for a particular database field.
      Parameters:
      groupBy - the database field to group by
      sortLabel - TRUE if sorted by label, FALSE if sorted by total
      Returns:
      a List of InstallerStatistics beans
      Throws:
      DAOException - if a JDBC error occurs