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

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

@Entity
public abstract class AbstractBallotMetaData
extends BaseEntity
implements ParliamentMetaData

The Class AbstractBallotMetaData.

See Also:
Serialized Form

Field Summary
protected  long absentVotes
          The absent votes.
protected  long neutralVotes
          The neutral votes.
protected  long noVotes
          The no votes.
protected  long totalVotes
          The total votes.
protected  long yesVotes
          The yes votes.
 
Constructor Summary
AbstractBallotMetaData()
          Instantiates a new abstract ballot meta data.
 
Method Summary
 long getAbsentVotes()
          Gets the absent votes.
 Long getId()
          Gets the id.
 long getNeutralVotes()
          Gets the neutral votes.
 long getNoVotes()
          Gets the no votes.
 long getTotalVotes()
          Gets the total votes.
 Long getVersion()
          Gets the version.
 long getYesVotes()
          Gets the yes votes.
 void newVote(Vote vote)
          New vote.
 void setAbsentVotes(long absentVotes)
          Sets the absent votes.
 void setId(Long id)
          Sets the id.
 void setNeutralVotes(long neutralVotes)
          Sets the neutral votes.
 void setNoVotes(long noVotes)
          Sets the no votes.
 void setTotalVotes(long totalVotes)
          Sets the total votes.
 void setVersion(Long version)
          Sets the version.
 void setYesVotes(long yesVotes)
          Sets the yes votes.
 
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.Resource
getResourceType, setResourceType
 
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject
isNew
 

Field Detail

absentVotes

protected long absentVotes
The absent votes.


neutralVotes

protected long neutralVotes
The neutral votes.


noVotes

protected long noVotes
The no votes.


totalVotes

protected long totalVotes
The total votes.


yesVotes

protected long yesVotes
The yes votes.

Constructor Detail

AbstractBallotMetaData

public AbstractBallotMetaData()
Instantiates a new abstract ballot meta data.

Method Detail

getAbsentVotes

public long getAbsentVotes()
Gets the absent votes.

Returns:
the absent votes

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getNeutralVotes

public long getNeutralVotes()
Gets the neutral votes.

Returns:
the neutral votes

getNoVotes

public long getNoVotes()
Gets the no votes.

Returns:
the no votes

getTotalVotes

public long getTotalVotes()
Gets the total votes.

Returns:
the total votes

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

getYesVotes

public long getYesVotes()
Gets the yes votes.

Returns:
the yes votes

newVote

public void newVote(Vote vote)
New vote.

Parameters:
vote - the vote

setAbsentVotes

public void setAbsentVotes(long absentVotes)
Sets the absent votes.

Parameters:
absentVotes - the new absent votes

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setNeutralVotes

public void setNeutralVotes(long neutralVotes)
Sets the neutral votes.

Parameters:
neutralVotes - the new neutral votes

setNoVotes

public void setNoVotes(long noVotes)
Sets the no votes.

Parameters:
noVotes - the new no votes

setTotalVotes

public void setTotalVotes(long totalVotes)
Sets the total votes.

Parameters:
totalVotes - the new total votes

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version

setYesVotes

public void setYesVotes(long yesVotes)
Sets the yes votes.

Parameters:
yesVotes - the new yes votes


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