Class SetExamProfile

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

public class SetExamProfile extends DAO
A Data Access Object for writing Examination Profiles and Check Ride scripts.
Since:
1.0
Version:
10.0
Author:
Luke
  • Constructor Details

    • SetExamProfile

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

    • update

      public void update(ExamProfile ep, String examName) throws DAOException
      Saves an existing Examination Profile to the database.
      Parameters:
      ep - the ExamProfile bean to update
      examName - the old Examination Profile name
      Throws:
      DAOException - if a JDBC error occurs
    • create

      public void create(ExamProfile ep) throws DAOException
      Saves a new Examination Profile to the database.
      Parameters:
      ep - the ExamProfile bean to save
      Throws:
      DAOException - if a JDBC error occurs
    • write

      public void write(EquipmentRideScript sc) throws DAOException
      Writes a Check Ride script to the database. This call can handle both INSERT and UPDATE operations.
      Parameters:
      sc - the Check Ride script
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(EquipmentRideScriptKey key) throws DAOException
      Deletes a Check Ride Script from the database.
      Parameters:
      key - the key
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(ExamProfile ep) throws DAOException
      Deletes an Examination Profile from the database.
      Parameters:
      ep - an ExamProfile bean
      Throws:
      DAOException - if a JDBC error occurs