Package org.deltava.beans.cooler
Class PollVote
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.cooler.PollVote
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A bean to store Water Cooler poll votes.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Luke
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the Option's database ID.int
Returns the Pilot's database ID.void
setOptionID
(int id) Updates the Option's database ID.void
setPilotID
(int id) Updates the Pilot's database ID.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, equals, getHexID, getID, hashCode, setID, validateID, validateID
-
Constructor Details
-
PollVote
public PollVote(int threadID, int pilotID) Creates a new Water Cooler poll vote.- Parameters:
threadID
- the Message Thread database IDpilotID
- the Pilot database ID- Throws:
IllegalArgumentException
- if threadID or pilotID are zero or negative
-
-
Method Details
-
getPilotID
public int getPilotID()Returns the Pilot's database ID.- Returns:
- the database ID
-
getOptionID
public int getOptionID()Returns the Option's database ID.- Returns:
- the database ID
-
setPilotID
public void setPilotID(int id) Updates the Pilot's database ID.- Parameters:
id
- the database ID- Throws:
IllegalArgumentException
- if id is zero or negative
-
setOptionID
public void setOptionID(int id) Updates the Option's database ID.- Parameters:
id
- the database ID- Throws:
IllegalArgumentException
- if id is zero or negative
-