Class SetStaff

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

public class SetStaff extends DAO
A Data Access Object to write Staff Profiles to the database.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetStaff

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

    • write

      public void write(Staff s) throws DAOException
      Writes/Updates a Staff Profile to the database.
      Parameters:
      s - the Staff Profile
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int id) throws DAOException
      Removes a Staff Profile from the databse.
      Parameters:
      id - the Staff Profile ID
      Throws:
      DAOException - if a JDBC error occurs