Class SetOceanic

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

public class SetOceanic extends DAO
A Data Access Object to write Oceanic Routes.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetOceanic

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

    • purgeOceanic

      public int purgeOceanic(Instant sd) throws DAOException
      Purges the Oceanic Routes table.
      Parameters:
      sd - the start date for the purge operation; purge all records before this date
      Returns:
      the number of routes deleted
      Throws:
      DAOException - if a JDBC error occurs
    • deleteOceanic

      public void deleteOceanic(OceanicTrackInfo.Type routeType, Instant vd) throws DAOException
      Deletes an entry from the Oceanic Routes table.
      Parameters:
      routeType - the route type
      vd - the validity date of the route
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(OceanicNOTAM or) throws DAOException
      Writes an Oceanic Route NOTAM into the database.
      Parameters:
      or - the OceanicNOTAM bean
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(OceanicTrack ow) throws DAOException
      Wirtes an Oceanic route into the database.
      Parameters:
      ow - the OceanicTrack bean
      Throws:
      DAOException - if a JDBC error occurs