org.deltava.dao
Class GetCoolerPolls

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

public class GetCoolerPolls
extends DAO

A Data Access Object to load Water Cooler poll data.

Since:
1.0
Version:
1.0
Author:
Luke

Field Summary
 
Fields inherited from class org.deltava.dao.DAO
_ps, _queryMax, _queryStart, _queryTimeout
 
Constructor Summary
GetCoolerPolls(Connection c)
          Initializes the Data Access Object.
 
Method Summary
 Collection<PollOption> getOptions(int threadID)
          Returns poll options for a Water Cooler discussion thread.
 Collection<PollVote> getVotes(int threadID)
          Returns all poll votes for a particular Water Cooler discussion thread.
 
Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeUpdate, expandDate, formatDBName, getNewID, getQueryCount, prepareStatement, prepareStatementWithoutLimits, rollbackTransaction, setManualCommit, setQueryMax, setQueryStart, setQueryTimeout, startTransaction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetCoolerPolls

public GetCoolerPolls(Connection c)
Initializes the Data Access Object.

Parameters:
c - the JDBC connection to use
Method Detail

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


Copyright © 2004-2009 Global Virtual Airlines Group. All Rights Reserved.