Class SetCoolerNotification

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

public class SetCoolerNotification extends DAO
A Data Access Object to update Water Cooler thread notification entries.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetCoolerNotification

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

    • clear

      public void clear(int threadID) throws DAOException
      Clears all notification entries for a particular message thread.
      Parameters:
      threadID - the message thread database ID
      Throws:
      DAOException - if a JDBC error occurs
    • add

      public void add(int threadID, int userID) throws DAOException
      Adds a notification entry for a particular message thread.
      Parameters:
      threadID - the message thread database ID
      userID - the user database ID
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int threadID, int userID) throws DAOException
      Removes a notification entry for a particular message thread.
      Parameters:
      threadID - the message thread database ID
      userID - the user database ID
      Throws:
      DAOException - if a JDBC error occurs