Class SetACARSRoute

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

public class SetACARSRoute extends DAO
A Data Access Object to write ACARS Dispatcher routes.
Since:
2.2
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetACARSRoute

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

    • write

      public void write(DispatchRoute rp) throws DAOException
      Creates a new ACARS dispatcher route.
      Parameters:
      rp - the RoutePlan bean
      Throws:
      DAOException - if a JDBC error occurs
    • activate

      public void activate(int id, boolean isActive) throws DAOException
      Marks a saved route as active or inactive.
      Parameters:
      id - the route ID
      isActive - TRUE if active, otherwise FALSE
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int id) throws DAOException
      Deletes a saved route from the database.
      Parameters:
      id - the route ID
      Throws:
      DAOException - if a JDBC error occurs