Class GetCoolerPolls
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetCoolerPolls
A Data Access Object to load Water Cooler poll data.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOptions
(int threadID) Returns poll options for a Water Cooler discussion thread.getVotes
(int threadID) Returns all poll votes for a particular Water Cooler discussion thread.Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeIDs, executeUpdate, executeUpdate, expandDate, formatDBName, formatLocation, getNewID, getQueryCount, prepare, prepareWithoutLimits, rollbackTransaction, setQueryMax, setQueryStart, setQueryTimeout, startTransaction, toID, toID, toInstant
-
Constructor Details
-
GetCoolerPolls
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getOptions
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
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
-