Class SetTour

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

public class SetTour extends DAO
A Data Access Object to write Tour data to the database.
Since:
10.0
Version:
11.6
Author:
Luke
  • Constructor Details

    • SetTour

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

    • write

      public void write(Tour t) throws DAOException
      Writes a Tour and its legs to the database.
      Parameters:
      t - the Tour
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public int delete(Tour t) throws DAOException
      Deletes a Tour from the database, clearing the flag from any existing Flight Reports.
      Parameters:
      t - the Tour
      Returns:
      the number of Flight Reports updated
      Throws:
      DAOException - if a JDBC error occurs
    • write

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