Class SetAirspace

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

public class SetAirspace extends DAO
A Data Access Object to write Airspace boundaries to the database.
Since:
7.3
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetAirspace

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

    • write

      public void write(Airspace a) throws DAOException
      Writes an Airspace bean to the database.
      Parameters:
      a - an Airspace bean
      Throws:
      DAOException - if a JDBC error occurs
    • clear

      public int clear(Country c) throws DAOException
      Deletes all Airspace boundaries for a particular country from the database.
      Parameters:
      c - the Country
      Returns:
      the number of records purged
      Throws:
      DAOException - if a JDBC error occurs