Class SetXACARS

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

public class SetXACARS extends DAO
A Data Access Object for writing XACARS data to the database.
Since:
4.1
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetXACARS

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

    • create

      public void create(XAFlightInfo inf) throws DAOException
      Writes a new XACARS flight information bean to the database.
      Parameters:
      inf - a FlightInfo bean
      Throws:
      DAOException - if a JDBC error occurs
    • update

      public void update(XAFlightInfo inf) throws DAOException
      Updates an existing XACARS flight information bean in the database.
      Parameters:
      inf - a FlightInfo bean
      Throws:
      DAOException - if a JDBC error occurs
    • endFlight

      public void endFlight(int flightID) throws DAOException
      Marks a flight as complete.
      Parameters:
      flightID - the XACARS flight ID
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(XARouteEntry pos) throws DAOException
      Writes an XACARS position report to the database.
      Parameters:
      pos - a PositionInfo bean
      Throws:
      DAOException - if a JDBC error occurs
    • archive

      public void archive(int oldID, int newID) throws DAOException
      Archives a set of XACARS position reports.
      Parameters:
      oldID - the temporary XACARS flight ID
      newID - the permanent ACARS flight ID
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int id) throws DAOException
      Deletes an XACARS flight from the database.
      Parameters:
      id - the flight ID
      Throws:
      DAOException - if a JDBC error occurs
    • purge

      public void purge(int hours) throws DAOException
      Purges old XACARS flights from the database.
      Parameters:
      hours - the purge interval in hours
      Throws:
      DAOException - if a JDBC error occurs