Class BallotDocumentElement

  • All Implemented Interfaces:
    com.hack23.cia.model.common.api.ModelObject, java.io.Serializable

    @Entity(name="BallotDocumentElement")
    public class BallotDocumentElement
    extends java.lang.Object
    implements com.hack23.cia.model.common.api.ModelObject
    The Class BallotDocumentElement.
    See Also:
    Serialized Form
    • Field Detail

      • ballotId

        protected java.lang.String ballotId
        The ballot id.
      • yesVotes

        protected int yesVotes
        The yes votes.
      • noVotes

        protected int noVotes
        The no votes.
      • absentVotes

        protected int absentVotes
        The absent votes.
      • abstainedVotes

        protected int abstainedVotes
        The abstained votes.
      • hjid

        protected java.lang.Long hjid
        The hjid.
    • Constructor Detail

      • BallotDocumentElement

        public BallotDocumentElement()
    • Method Detail

      • getBallotId

        public java.lang.String getBallotId()
        Gets the ballot id.
        Returns:
        the ballot id
      • setBallotId

        public void setBallotId​(java.lang.String value)
        Sets the ballot id.
        Parameters:
        value - the new ballot id
      • getYesVotes

        public int getYesVotes()
        Gets the yes votes.
        Returns:
        the yes votes
      • setYesVotes

        public void setYesVotes​(int value)
        Sets the yes votes.
        Parameters:
        value - the new yes votes
      • getNoVotes

        public int getNoVotes()
        Gets the no votes.
        Returns:
        the no votes
      • setNoVotes

        public void setNoVotes​(int value)
        Sets the no votes.
        Parameters:
        value - the new no votes
      • getAbsentVotes

        public int getAbsentVotes()
        Gets the absent votes.
        Returns:
        the absent votes
      • setAbsentVotes

        public void setAbsentVotes​(int value)
        Sets the absent votes.
        Parameters:
        value - the new absent votes
      • getAbstainedVotes

        public int getAbstainedVotes()
        Gets the abstained votes.
        Returns:
        the abstained votes
      • setAbstainedVotes

        public void setAbstainedVotes​(int value)
        Sets the abstained votes.
        Parameters:
        value - the new abstained votes
      • withBallotId

        public BallotDocumentElement withBallotId​(java.lang.String value)
        With ballot id.
        Parameters:
        value - the value
        Returns:
        the ballot document element
      • withYesVotes

        public BallotDocumentElement withYesVotes​(int value)
        With yes votes.
        Parameters:
        value - the value
        Returns:
        the ballot document element
      • withNoVotes

        public BallotDocumentElement withNoVotes​(int value)
        With no votes.
        Parameters:
        value - the value
        Returns:
        the ballot document element
      • withAbsentVotes

        public BallotDocumentElement withAbsentVotes​(int value)
        With absent votes.
        Parameters:
        value - the value
        Returns:
        the ballot document element
      • withAbstainedVotes

        public BallotDocumentElement withAbstainedVotes​(int value)
        With abstained votes.
        Parameters:
        value - the value
        Returns:
        the ballot document element
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getHjid

        public java.lang.Long getHjid()
        Gets the hjid.
        Returns:
        the hjid
      • setHjid

        public void setHjid​(java.lang.Long value)
        Sets the hjid.
        Parameters:
        value - the new hjid
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object