Class PollVote

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.cooler.PollVote
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class PollVote extends DatabaseBean
A bean to store Water Cooler poll votes.
Since:
1.0
Version:
1.0
Author:
Luke
See Also:
  • Constructor Details

    • PollVote

      public PollVote(int threadID, int pilotID)
      Creates a new Water Cooler poll vote.
      Parameters:
      threadID - the Message Thread database ID
      pilotID - 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