Class SetCoolerLinks

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

public class SetCoolerLinks extends DAO
A Data Access Object to write and update Water Cooler image URLs.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetCoolerLinks

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

    • write

      public void write(MessageThread t) throws DAOException
      Writes Image URLs for a Message Thread.
      Parameters:
      t - the Message Thread bean
      Throws:
      DAOException - if a JDBC error occurs
    • add

      public void add(int threadID, LinkedImage img) throws DAOException
      Adds a Linked Image to an existing discussion thread.
      Parameters:
      threadID - the MessageThread database ID
      img - the LinkedImage bean
      Throws:
      DAOException - if a JDBC error occurs
    • restore

      public void restore(int threadID) throws DAOException
      Restores disabled Linked Images within an existing discussion thread.
      Parameters:
      threadID - the MessageThread database ID
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int threadID, int seq) throws DAOException
      Deletes an image URL associated with a particular Message Thread.
      Parameters:
      threadID - the MessageThread database ID
      seq - the Image URL sequence ID
      Throws:
      DAOException - if a JDBC error occurs
    • disable

      public void disable(int threadID, int seq) throws DAOException
      Disables an image URL associated with a particular Message Thread.
      Parameters:
      threadID - the MessageThread database ID
      seq - the Image URL sequence ID
      Throws:
      DAOException - if a JDBC error occurs