com.hack23.cia.model.sweden.impl
Class ParliamentMemberBallotRecord

Package class diagram package ParliamentMemberBallotRecord
java.lang.Object
  extended by com.hack23.cia.model.common.impl.BaseEntity
      extended by com.hack23.cia.model.sweden.impl.AbstractBallotMetaData
          extended by com.hack23.cia.model.sweden.impl.ParliamentMemberBallotRecord
All Implemented Interfaces:
Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, Serializable

@Entity
public class ParliamentMemberBallotRecord
extends AbstractBallotMetaData

The Class ParliamentMemberBallotRecord.

See Also:
Serialized Form

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

ParliamentMemberBallotRecord

public ParliamentMemberBallotRecord()
Instantiates a new parliament member ballot record.

Method Detail

getFirstVoteDate

public Date getFirstVoteDate()
Gets the first vote date.

Returns:
the first vote date

getLastVoteDate

public Date getLastVoteDate()
Gets the last vote date.

Returns:
the last vote date

getLoyal

public long getLoyal()
Gets the loyal.

Returns:
the loyal

getOpponent

public long getOpponent()
Gets the opponent.

Returns:
the opponent

getPercentageAbsent

public long getPercentageAbsent()
Gets the percentage absent.

Returns:
the percentage absent

getPercentageLoosing

public long getPercentageLoosing()
Gets the percentage loosing.

Returns:
the percentage loosing

getPercentageLoyal

public long getPercentageLoyal()
Gets the percentage loyal.

Returns:
the percentage loyal

getPercentagePresent

public long getPercentagePresent()
Gets the percentage present.

Returns:
the percentage present

getPercentageRebel

public long getPercentageRebel()
Gets the percentage rebel.

Returns:
the percentage rebel

getPercentageWinning

public long getPercentageWinning()
Gets the percentage winning.

Returns:
the percentage winning

getPresent

public long getPresent()
Gets the present.

Returns:
the present

getRebel

public long getRebel()
Gets the rebel.

Returns:
the rebel

getResourceType

public ResourceType getResourceType()
Description copied from interface: Resource
Gets the resource type.

Returns:
the resource type

getWinning

public long getWinning()
Gets the winning.

Returns:
the winning

newVote

public void newVote(Vote vote)
Description copied from class: AbstractBallotMetaData
New vote.

Overrides:
newVote in class AbstractBallotMetaData
Parameters:
vote - the vote

setFirstVoteDate

public void setFirstVoteDate(Date firstVoteDate)
Sets the first vote date.

Parameters:
firstVoteDate - the new first vote date

setLastVoteDate

public void setLastVoteDate(Date lastVoteDate)
Sets the last vote date.

Parameters:
lastVoteDate - the new last vote date

setOpponent

public void setOpponent(long opponent)
Sets the opponent.

Parameters:
opponent - the new opponent

setPercentageAbsent

public void setPercentageAbsent(long percentageAbsent)
Sets the percentage absent.

Parameters:
percentageAbsent - the new percentage absent

setPercentageLoosing

public void setPercentageLoosing(long percentageLoosing)
Sets the percentage loosing.

Parameters:
percentageLoosing - the new percentage loosing

setPercentageLoyal

public void setPercentageLoyal(long percentageLoyal)
Sets the percentage loyal.

Parameters:
percentageLoyal - the new percentage loyal

setPercentagePresent

public void setPercentagePresent(long percentagePresent)
Sets the percentage present.

Parameters:
percentagePresent - the new percentage present

setPercentageRebel

public void setPercentageRebel(long percentageRebel)
Sets the percentage rebel.

Parameters:
percentageRebel - the new percentage rebel

setPercentageWinning

public void setPercentageWinning(long percentageWinning)
Sets the percentage winning.

Parameters:
percentageWinning - the new percentage winning

setRebel

public void setRebel(long rebel)
Sets the rebel.

Parameters:
rebel - the new rebel

setResourceType

public void setResourceType(ResourceType resourceType)
Description copied from interface: Resource
Sets the resource type.

Parameters:
resourceType - the new resource type


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.