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

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

@Entity
public class BallotResult
extends AbstractBallotResult
implements BallotResultData

The Class BallotResult.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotResult
opponentVotes, winningPosition, winningVotes
 
Fields inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotMetaData
absentVotes, neutralVotes, noVotes, totalVotes, yesVotes
 
Constructor Summary
BallotResult()
          Instantiates a new ballot result.
 
Method Summary
 Date getCreatedDate()
          Gets the created date.
 ResourceType getResourceType()
          Gets the resource type.
 boolean isLosingVote(VoteData vote)
          Checks if is losing vote.
 void setCreatedDate(Date createdDate)
          Sets the created date.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 
Methods inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotResult
calcWinningPosition, getOpponentVotes, getWinningPosition, getWinningVotes, setOpponentVotes, setWinningPosition, setWinningVotes
 
Methods inherited from class com.hack23.cia.model.impl.sweden.AbstractBallotMetaData
getAbsentVotes, getApplicationTypeContext, getId, getNeutralVotes, getNoVotes, getTotalVotes, getVersion, getYesVotes, newVote, 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.sweden.BallotResultData
calcWinningPosition, getWinningPosition, newVote
 
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject
getId, getTypeContext, getVersion, isNew, setId, setVersion
 

Constructor Detail

BallotResult

public BallotResult()
Instantiates a new ballot result.

Method Detail

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-2009 www.hack23.com. All Rights Reserved.