Class SetACARSData

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetACARSData
Direct Known Subclasses:
SetACARSRunway

public class SetACARSData extends DAO
A Data Access Object to write ACARS data. This is used outside of the ACARS server by classes that need to simulate ACARS server writes without having access to the ACARS server message bean code.
Since:
1.0
Version:
11.2
Author:
Luke
  • Constructor Details

    • SetACARSData

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

    • createFlight

      public void createFlight(FlightInfo info) throws DAOException
      Writes a Flight Information entry to the database.
      Parameters:
      info - the FlightInfo bean
      Throws:
      DAOException - if a JDBC error occurs
    • writeDispatch

      public void writeDispatch(int flightID, int dispatcherID, int routeID) throws DAOException
      Flags a flight after the fact as being plotted by a Dispatcher.
      Parameters:
      flightID - the Flight ID
      dispatcherID - the Dispatcher's database ID (or zero for auto-dispatch)
      routeID - the Route's database ID
      Throws:
      DAOException - if a JDBC error occurs
    • writeLoad

      public void writeLoad(FlightInfo info) throws DAOException
      Writes ACARS load data to the database.
      Parameters:
      info - a FlightInfo bean
      Throws:
      DAOException - if a JDBC error occurs
    • writeTaxi

      public void writeTaxi(FlightInfo inf, int taxiIn, int taxiOut) throws DAOException
      Writes taxi time data for a flight to the database.
      Parameters:
      inf - the FlightData object
      taxiIn - the inbound taxi time in seconds
      taxiOut - the outbound taxi time in seconds
      Throws:
      DAOException - if a JDBC error occurs
    • writePositions

      public void writePositions(int flightID, Collection<ACARSRouteEntry> entries) throws DAOException
      Writes a Flight's position entries to the database.
      Parameters:
      flightID - the Flight ID
      entries - a Collection of RouteEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • clearTerminalRoutes

      public void clearTerminalRoutes(int id, TerminalRoute.Type t) throws DAOException
      Deletes a Flight's SID/STAR data from the database.
      Parameters:
      id - the Flight ID
      t - the TerminalRoute Type
      Throws:
      DAOException - if a JDBC error occurs
    • writeSIDSTAR

      public void writeSIDSTAR(int id, TerminalRoute tr) throws DAOException
      Writes a Flight's SID/STAR data to the database.
      Parameters:
      id - the Flight ID
      tr - the TerminalRoute bean
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(Livery l) throws DAOException
      Updates an ACARS multi-player livery profile.
      Parameters:
      l - the Livery bean
      Throws:
      DAOException - if a JDBC error occurs
    • deleteLivery

      public void deleteLivery(String aCode, String code) throws DAOException
      Deletes an ACARS mutli-player livery profile.
      Parameters:
      aCode - the Airline code
      code - the Livery code
      Throws:
      DAOException - if a JDBC error occurs