|
||||||||||
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.AbstractBallotMetaData com.hack23.cia.model.impl.sweden.ParliamentMemberBallotRecord
@Entity public class ParliamentMemberBallotRecord
The Class ParliamentMemberBallotRecord.
Field Summary |
---|
Fields inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotMetaData |
---|
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes |
Constructor Summary | |
---|---|
ParliamentMemberBallotRecord()
Instantiates a new parliament member ballot record. |
Method Summary | |
---|---|
Date |
getCreatedDate()
Gets the created date. |
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(VoteData vote)
New vote. |
void |
setCreatedDate(Date createdDate)
Sets the created date. |
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.impl.sweden.AbstractBallotMetaData |
---|
getAbsentVotes, getApplicationTypeContext, getId, getNeutralVotes, getNoVotes, getTotalVotes, getVersion, getYesVotes, 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.common.PersistedModelObject |
---|
getTypeContext, isNew |
Constructor Detail |
---|
public ParliamentMemberBallotRecord()
Method Detail |
---|
public Date getCreatedDate()
ParliamentMetaData
getCreatedDate
in interface ParliamentMetaData
public Date getFirstVoteDate()
public Date getLastVoteDate()
public long getLoyal()
public long getOpponent()
ParliamentMemberBallotRecordData
getOpponent
in interface ParliamentMemberBallotRecordData
public long getPercentageAbsent()
public long getPercentageLoosing()
public long getPercentageLoyal()
public long getPercentagePresent()
public long getPercentageRebel()
public long getPercentageWinning()
public long getPresent()
public long getRebel()
ParliamentMemberBallotRecordData
getRebel
in interface ParliamentMemberBallotRecordData
public ResourceType getResourceType()
Resource
getResourceType
in interface Resource
public long getWinning()
public void newVote(VoteData vote)
AbstractBallotMetaData
newVote
in interface ParliamentMemberBallotRecordData
newVote
in class AbstractBallotMetaData
vote
- the votepublic void setCreatedDate(Date createdDate)
createdDate
- the new created datepublic void setFirstVoteDate(Date firstVoteDate)
firstVoteDate
- the new first vote datepublic void setLastVoteDate(Date lastVoteDate)
lastVoteDate
- the new last vote datepublic void setOpponent(long opponent)
ParliamentMemberBallotRecordData
setOpponent
in interface ParliamentMemberBallotRecordData
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)
ParliamentMemberBallotRecordData
setRebel
in interface ParliamentMemberBallotRecordData
rebel
- the new rebelpublic void setResourceType(ResourceType resourceType)
resourceType
- the new resource type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |