Class SetACARSArchive

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

public class SetACARSArchive extends DAO
A Data Access Object to write to the ACARS position archive.
Since:
4.1
Version:
11.1
Author:
Luke
  • Constructor Details

    • SetACARSArchive

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

    • archive

      public void archive(int flightID, SequencedCollection<? extends RouteEntry> positions) throws DAOException
      Marks ACARS data as archived.
      Parameters:
      flightID - the ACARS Flight ID
      positions - a Collection of RouteEntry beans
      Throws:
      DAOException - if a JDBC error occurs
    • update

      public void update(ArchiveMetadata md) throws DAOException
      Updates Position Archive metadata.
      Parameters:
      md - an ArchiveMetadata bean
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int flightID) throws DAOException
      Deletes Position Archive metadata.
      Parameters:
      flightID - the flight ID
      Throws:
      DAOException - if a JDBC error occurs