Class GetACARSLog


public class GetACARSLog extends GetACARSData
A Data Access Object to load ACARS log data.
Since:
1.0
Version:
11.2
Author:
Luke
  • Constructor Details

    • GetACARSLog

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

    • getConnections

      public List<ConnectionEntry> getConnections(LogSearchCriteria criteria) throws DAOException
      Returns all ACARS connection log entries matching particular criteria.
      Parameters:
      criteria - the search criteria
      Returns:
      a List of ConnectionEntry beans sorted by date
      Throws:
      DAOException - if a JDBC error occurs
    • getMessages

      public List<TextMessage> getMessages(LogSearchCriteria criteria, String searchStr) throws DAOException
      Returns all ACARS text messages matching particular criteria.
      Parameters:
      criteria - the ACARS log search criteria
      searchStr - text to search for in the message body, or null
      Returns:
      a List of TextMessage beans
      Throws:
      DAOException - if a JDBC error occurs
    • getFlights

      public List<FlightInfo> getFlights(LogSearchCriteria criteria) throws DAOException
      Returns all Flight Information entries matching particular criteria.
      Parameters:
      criteria - the search criteria
      Returns:
      a List of InfoEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • getSDKs

      public Collection<String> getSDKs() throws DAOException
      Returns a list of Aircraft SDKs used for ACARS Flight Reports.
      Returns:
      a Collection of SDK names
      Throws:
      DAOException - if a JDBC error occured
    • getDispatchLog

      public DispatchLogEntry getDispatchLog(int id) throws DAOException
      Loads an ACARS Dispatch log entry from the database.
      Parameters:
      id - the database ID
      Returns:
      a DispatchLogEntry, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getDispatchLogs

      public List<DispatchLogEntry> getDispatchLogs() throws DAOException
      Loads ACARS Dispatch log entries from the database.
      Returns:
      a List of DispatchLogEntry beans
      Throws:
      DAOException - if a JDBC error occurs