Class SetEvent

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

public class SetEvent extends DAO
A Data Access Object to write Online Event data.
Since:
1.0
Version:
11.6
Author:
Luke
  • Constructor Details

    • SetEvent

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

    • write

      public void write(Event e) throws DAOException
      Writes an Online Event to the database. This handles INSERTs and UPDATEs.
      Parameters:
      e - the Online Event
      Throws:
      DAOException - if a JDBC error occurs
    • signup

      public void signup(Signup s) throws DAOException
      Writes a Signup to the database.
      Parameters:
      s - the Signup bean
      Throws:
      DAOException - if a JDBC error occurs
    • save

      public void save(Route r) throws DAOException
      Saves a Flight Route to the database. This can handle create and update operations.
      Parameters:
      r - the Route bean
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(Event e) throws DAOException
      Deletes an Online Event.
      Parameters:
      e - the Event bean
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(Signup s) throws DAOException
      Deletes an Online Event pilot signup.
      Parameters:
      s - the Signup bean
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(Route r) throws DAOException
      Deletes an Online Event flight route.
      Parameters:
      r - the Route bean
      Throws:
      DAOException - if a JDBC error occurs
    • deleteBanner

      public void deleteBanner(int id) throws DAOException
      Deletes an Online Event banner image from the database.
      Parameters:
      id - the Event database ID
      Throws:
      DAOException - if a JDBC error occurs
    • writeBanner

      public void writeBanner(Event e) throws DAOException
      Updates an Online Event banner image.
      Parameters:
      e - the Event bean
      Throws:
      DAOException - if a JDBC error occurs
    • toggle

      public void toggle(Route r) throws DAOException
      Toggles the availability of an Event flight route.
      Parameters:
      r - the Route bean
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(Feedback f) throws DAOException
      Writes Online Event feedback to the database.
      Parameters:
      f - a Feedback bean
      Throws:
      DAOException - if a JDBC error occurs