|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.impl.common.BaseEntity com.hack23.cia.model.impl.sweden.content.AbstractBallotMetaData com.hack23.cia.model.impl.sweden.content.AbstractBallotResult
@Entity public abstract class AbstractBallotResult extends AbstractBallotMetaData implements BaseBallotResultData
The Class AbstractBallotResult.
Modifier and Type | Field and Description |
---|---|
protected long |
opponentVotes
The opponent votes. |
protected VotePosition |
winningPosition
The winning position. |
protected long |
winningVotes
The winning votes. |
Fields inherited from class com.hack23.cia.model.impl.sweden.content.AbstractBallotMetaData |
---|
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBallotResult()
Instantiates a new abstract ballot result. |
Modifier and Type | Method and Description |
---|---|
void |
calcWinningPosition()
Calc winning position. |
long |
getOpponentVotes()
Gets the opponent votes. |
VotePosition |
getWinningPosition()
Gets the winning position. |
long |
getWinningVotes()
Gets the winning votes. |
void |
setOpponentVotes(long opponentVotes)
Sets the opponent votes. |
void |
setWinningPosition(VotePosition winningPosition)
Sets the winning position. |
void |
setWinningVotes(long winningVotes)
Sets the winning votes. |
Methods inherited from class com.hack23.cia.model.impl.sweden.content.AbstractBallotMetaData |
---|
getAbsentVotes, getApplicationTypeContext, getId, getNeutralVotes, getNoVotes, getTotalVotes, getVersion, getYesVotes, newVote, setAbsentVotes, setId, setNeutralVotes, setNoVotes, setTotalVotes, setVersion, setYesVotes |
Methods inherited from class com.hack23.cia.model.impl.common.BaseEntity |
---|
equals, getTypeContext, hashCode, isNew |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hack23.cia.model.api.sweden.configuration.BaseBallotResultData |
---|
getAbsentVotes, getTotalVotes, newVote |
Methods inherited from interface com.hack23.cia.model.api.sweden.common.ParliamentMetaData |
---|
getCreatedDate |
Methods inherited from interface com.hack23.cia.model.api.common.Resource |
---|
getResourceType |
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject |
---|
getId, getTypeContext, getVersion, isNew, setId, setVersion |
Field Detail |
---|
protected long opponentVotes
protected VotePosition winningPosition
protected long winningVotes
Constructor Detail |
---|
protected AbstractBallotResult()
Method Detail |
---|
public void calcWinningPosition()
public long getOpponentVotes()
public VotePosition getWinningPosition()
public long getWinningVotes()
public void setOpponentVotes(long opponentVotes)
opponentVotes
- the new opponent votespublic void setWinningPosition(VotePosition winningPosition)
winningPosition
- the new winning positionpublic void setWinningVotes(long winningVotes)
winningVotes
- the new winning votes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |