|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.common.impl.BaseEntity com.hack23.cia.model.sweden.impl.AbstractBallotMetaData com.hack23.cia.model.sweden.impl.ParliamentMemberBallotRecord
@Entity public class ParliamentMemberBallotRecord
The Class ParliamentMemberBallotRecord.
Field Summary |
---|
Fields inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotMetaData |
---|
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes |
Constructor Summary | |
---|---|
ParliamentMemberBallotRecord()
Instantiates a new parliament member ballot record. |
Method Summary | |
---|---|
Date |
getFirstVoteDate()
Gets the first vote date. |
Date |
getLastVoteDate()
Gets the last vote date. |
long |
getLoyal()
Gets the loyal. |
long |
getOpponent()
Gets the opponent. |
long |
getPercentageAbsent()
Gets the percentage absent. |
long |
getPercentageLoosing()
Gets the percentage loosing. |
long |
getPercentageLoyal()
Gets the percentage loyal. |
long |
getPercentagePresent()
Gets the percentage present. |
long |
getPercentageRebel()
Gets the percentage rebel. |
long |
getPercentageWinning()
Gets the percentage winning. |
long |
getPresent()
Gets the present. |
long |
getRebel()
Gets the rebel. |
ResourceType |
getResourceType()
Gets the resource type. |
long |
getWinning()
Gets the winning. |
void |
newVote(Vote vote)
New vote. |
void |
setFirstVoteDate(Date firstVoteDate)
Sets the first vote date. |
void |
setLastVoteDate(Date lastVoteDate)
Sets the last vote date. |
void |
setOpponent(long opponent)
Sets the opponent. |
void |
setPercentageAbsent(long percentageAbsent)
Sets the percentage absent. |
void |
setPercentageLoosing(long percentageLoosing)
Sets the percentage loosing. |
void |
setPercentageLoyal(long percentageLoyal)
Sets the percentage loyal. |
void |
setPercentagePresent(long percentagePresent)
Sets the percentage present. |
void |
setPercentageRebel(long percentageRebel)
Sets the percentage rebel. |
void |
setPercentageWinning(long percentageWinning)
Sets the percentage winning. |
void |
setRebel(long rebel)
Sets the rebel. |
void |
setResourceType(ResourceType resourceType)
Sets the resource type. |
Methods inherited from class com.hack23.cia.model.sweden.impl.AbstractBallotMetaData |
---|
getAbsentVotes, getId, getNeutralVotes, getNoVotes, getTotalVotes, getVersion, getYesVotes, setAbsentVotes, setId, setNeutralVotes, setNoVotes, setTotalVotes, setVersion, setYesVotes |
Methods inherited from class com.hack23.cia.model.common.impl.BaseEntity |
---|
equals, 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.common.api.PersistedModelObject |
---|
isNew |
Constructor Detail |
---|
public ParliamentMemberBallotRecord()
Method Detail |
---|
public Date getFirstVoteDate()
public Date getLastVoteDate()
public long getLoyal()
public long getOpponent()
public long getPercentageAbsent()
public long getPercentageLoosing()
public long getPercentageLoyal()
public long getPercentagePresent()
public long getPercentageRebel()
public long getPercentageWinning()
public long getPresent()
public long getRebel()
public ResourceType getResourceType()
Resource
public long getWinning()
public void newVote(Vote vote)
AbstractBallotMetaData
newVote
in class AbstractBallotMetaData
vote
- the votepublic void setFirstVoteDate(Date firstVoteDate)
firstVoteDate
- the new first vote datepublic void setLastVoteDate(Date lastVoteDate)
lastVoteDate
- the new last vote datepublic void setOpponent(long opponent)
opponent
- the new opponentpublic void setPercentageAbsent(long percentageAbsent)
percentageAbsent
- the new percentage absentpublic void setPercentageLoosing(long percentageLoosing)
percentageLoosing
- the new percentage loosingpublic void setPercentageLoyal(long percentageLoyal)
percentageLoyal
- the new percentage loyalpublic void setPercentagePresent(long percentagePresent)
percentagePresent
- the new percentage presentpublic void setPercentageRebel(long percentageRebel)
percentageRebel
- the new percentage rebelpublic void setPercentageWinning(long percentageWinning)
percentageWinning
- the new percentage winningpublic void setRebel(long rebel)
rebel
- the new rebelpublic void setResourceType(ResourceType resourceType)
Resource
resourceType
- the new resource type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |