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

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

@Entity
public class Vote
extends BaseEntity
implements ParliamentData

The Class Vote.

See Also:
Serialized Form

Nested Class Summary
static class Vote.Position
          The Enum Position.
 
Nested classes/interfaces inherited from interface com.hack23.cia.model.sweden.api.ParliamentData
ParliamentData.ImportStatus
 
Constructor Summary
Vote()
           
 
Method Summary
 boolean dataCanBeUpdated()
          Data can be updated.
 boolean generatesParliamentMetaData()
          Generates parliament meta data.
 Ballot getBallot()
          Gets the ballot.
 Date getDatum()
          Gets the datum.
 Long getId()
          Gets the id.
 Date getImportedDate()
          Gets the imported date.
 ParliamentData.ImportStatus getImportStatus()
          Gets the import status.
 ParliamentMember getParliamentMember()
          Gets the parliament member.
 ParliamentMetaData getParliamentMetaData()
          Gets the parliament meta data.
 Vote.Position getPosition()
          Gets the position.
 ResourceType getResourceType()
          Gets the resource type.
 Long getVersion()
          Gets the version.
 VoteMetaData getVoteMetaData()
          Gets the vote meta data.
 boolean isRebel()
          Checks if is rebel.
 boolean isWinning()
          Checks if is winning.
 void setBallot(Ballot ballot)
          Sets the ballot.
 void setDatum(Date datum)
          Sets the datum.
 void setId(Long id)
          Sets the id.
 void setImportedDate(Date importedDate)
          Sets the imported date.
 void setImportStatus(ParliamentData.ImportStatus importStatus)
          Sets the import status.
 void setParliamentMember(ParliamentMember parliamentMember)
          Sets the parliament member.
 void setPosition(Vote.Position position)
          Sets the position.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 void setVersion(Long version)
          Sets the version.
 void setVoteMetaData(VoteMetaData voteMetaData)
          Sets the vote meta data.
 
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

Vote

public Vote()
Method Detail

dataCanBeUpdated

public boolean dataCanBeUpdated()
Description copied from interface: ParliamentData
Data can be updated.

Specified by:
dataCanBeUpdated in interface ParliamentData
Returns:
true, if successful

generatesParliamentMetaData

public boolean generatesParliamentMetaData()
Description copied from interface: ParliamentData
Generates parliament meta data.

Specified by:
generatesParliamentMetaData in interface ParliamentData
Returns:
true, if successful

getBallot

public Ballot getBallot()
Gets the ballot.

Returns:
the ballot

getDatum

public Date getDatum()
Gets the datum.

Returns:
the datum

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

getImportedDate

public Date getImportedDate()
Description copied from interface: ParliamentData
Gets the imported date.

Specified by:
getImportedDate in interface ParliamentData
Returns:
the imported date

getImportStatus

public ParliamentData.ImportStatus getImportStatus()
Description copied from interface: ParliamentData
Gets the import status.

Specified by:
getImportStatus in interface ParliamentData
Returns:
the import status

getParliamentMember

public ParliamentMember getParliamentMember()
Gets the parliament member.

Returns:
the parliament member

getParliamentMetaData

public ParliamentMetaData getParliamentMetaData()
Description copied from interface: ParliamentData
Gets the parliament meta data.

Specified by:
getParliamentMetaData in interface ParliamentData
Returns:
the parliament meta data

getPosition

public Vote.Position getPosition()
Gets the position.

Returns:
the position

getResourceType

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

Specified by:
getResourceType in interface Resource
Returns:
the resource type

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

getVoteMetaData

public VoteMetaData getVoteMetaData()
Gets the vote meta data.

Returns:
the vote meta data

isRebel

public boolean isRebel()
Checks if is rebel.

Returns:
true, if is rebel

isWinning

public boolean isWinning()
Checks if is winning.

Returns:
true, if is winning

setBallot

public void setBallot(Ballot ballot)
Sets the ballot.

Parameters:
ballot - the new ballot

setDatum

public void setDatum(Date datum)
Sets the datum.

Parameters:
datum - the new datum

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

setImportedDate

public void setImportedDate(Date importedDate)
Description copied from interface: ParliamentData
Sets the imported date.

Specified by:
setImportedDate in interface ParliamentData
Parameters:
importedDate - the new imported date

setImportStatus

public void setImportStatus(ParliamentData.ImportStatus importStatus)
Description copied from interface: ParliamentData
Sets the import status.

Specified by:
setImportStatus in interface ParliamentData
Parameters:
importStatus - the new import status

setParliamentMember

public void setParliamentMember(ParliamentMember parliamentMember)
Sets the parliament member.

Parameters:
parliamentMember - the new parliament member

setPosition

public void setPosition(Vote.Position position)
Sets the position.

Parameters:
position - the new position

setResourceType

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

Specified by:
setResourceType in interface Resource
Parameters:
resourceType - the new resource type

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

setVoteMetaData

public void setVoteMetaData(VoteMetaData voteMetaData)
Sets the vote meta data.

Parameters:
voteMetaData - the new vote meta data


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