com.hack23.cia.model.impl.sweden.content
Class BallotResult
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
com.hack23.cia.model.impl.sweden.content.BallotResult
- All Implemented Interfaces:
- Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, BallotResultData, BaseBallotResultData, Serializable
@Entity
public class BallotResult
extends AbstractBallotResult
implements BallotResultData
The Class BallotResult.
- See Also:
- Serialized Form
Constructor Summary
BallotResult()
Instantiates a new ballot result. |
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 |
BallotResult
public BallotResult()
- Instantiates a new ballot result.
getCreatedDate
public Date getCreatedDate()
- Description copied from interface:
ParliamentMetaData
- Gets the created date.
- Specified by:
getCreatedDate
in interface ParliamentMetaData
- Returns:
- the created date
getResourceType
public ResourceType getResourceType()
- Description copied from interface:
Resource
- Gets the resource type.
- Specified by:
getResourceType
in interface Resource
- Returns:
- the resource type
isLosingVote
public boolean isLosingVote(VoteData vote)
- Description copied from interface:
BallotResultData
- Checks if is losing vote.
- Specified by:
isLosingVote
in interface BallotResultData
- Parameters:
vote
- the vote
- Returns:
- true, if is losing vote
setCreatedDate
public void setCreatedDate(Date createdDate)
- Sets the created date.
- Parameters:
createdDate
- the new created date
setResourceType
public void setResourceType(ResourceType resourceType)
- Sets the resource type.
- Parameters:
resourceType
- the new resource type
Copyright © 2008-2010 www.hack23.com. All Rights Reserved.