Class SetAccomplishment

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

public class SetAccomplishment extends DAO
A Data Access Object to save Accomplishment profiles.
Since:
3.2
Version:
10.2
Author:
Luke
  • Constructor Details

    • SetAccomplishment

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

    • write

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

      public void achieve(int pilotID, Accomplishment a, Instant dt) throws DAOException
      Records a Pilot accomplishment.
      Parameters:
      pilotID - the Pilot's database ID
      a - the Accomplishment
      dt - the date/time of the accomplishment
      Throws:
      DAOException - if a JDBC error occurs
    • clearAchievement

      public void clearAchievement(int pilotID, Accomplishment a) throws DAOException
      Deletes a Pilot Accomplishment record from the database.
      Parameters:
      pilotID - the Pilot's datbaase ID
      a - the Accomplishment
      Throws:
      DAOException - if a JDBC error occurs
    • delete

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