Class GetCoolerPolls

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

public class GetCoolerPolls extends DAO
A Data Access Object to load Water Cooler poll data.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetCoolerPolls

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

    • getOptions

      public Collection<PollOption> getOptions(int threadID) throws DAOException
      Returns poll options for a Water Cooler discussion thread.
      Parameters:
      threadID - the Message Thread database ID
      Returns:
      a Collection of PollOption beans
      Throws:
      DAOException - if a JDBC error occurs
    • getVotes

      public Collection<PollVote> getVotes(int threadID) throws DAOException
      Returns all poll votes for a particular Water Cooler discussion thread.
      Parameters:
      threadID - the Message Thread database ID
      Returns:
      a Collection of PollVote beans
      Throws:
      DAOException - if a JDBC error occurs