Class GetACARSErrors

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

public class GetACARSErrors extends DAO
A Data Access Object to load ACARS client error logs.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetACARSErrors

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

    • getBuilds

      public Collection<Integer> getBuilds() throws DAOException
      Returns the ACARS Client builds with error reports.
      Returns:
      a Collection of Build numbers
      Throws:
      DAOException - if a JDBC error occurs
    • getPilots

      public Collection<Integer> getPilots() throws DAOException
      Returns the Pilots with error reports.
      Returns:
      a Collection of datbase ID
      Throws:
      DAOException - if a JDBC error occurs
    • get

      public ACARSError get(int id) throws DAOException
      Returns a specific ACARS Client error log entry.
      Parameters:
      id - the entry database ID
      Returns:
      an ACARSError bean, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getByPilot

      public Collection<ACARSError> getByPilot(int id) throws DAOException
      Returns all ACARS client error log entries logged by a particular Pilot.
      Parameters:
      id - the Pilot's database ID
      Returns:
      a Collection of ACARSError beans
      Throws:
      DAOException - if a JDBC error occurs
    • getByBuild

      public Collection<ACARSError> getByBuild(int build) throws DAOException
      Returns all ACARS client error log entries logged by a particular ACARS client build.
      Parameters:
      build - the client build number
      Returns:
      a Collection of ACARSError beans
      Throws:
      DAOException - if a JDBC error occurs
    • getAll

      public Collection<ACARSError> getAll() throws DAOException
      Returns all ACARS client error log entries.
      Returns:
      a Collection of ACARSError beans
      Throws:
      DAOException - if a JDBC error occurs