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

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

@Entity
public class Vote
extends BaseEntity
implements VoteData

The Class Vote.

See Also:
Serialized Form

Nested Class Summary
Modifier and Type Interface and Description
 
Nested classes/interfaces inherited from interface com.hack23.cia.model.api.sweden.common.ImportedData
ImportedData.ImportStatus
 
Constructor Summary
Constructor and Description
Vote()
           
 
Method Summary
Modifier and Type Method and Description
 boolean dataCanBeUpdated()
          Data can be updated.
 boolean generatesParliamentMetaData()
          Generates parliament meta data.
protected  TypeContext getApplicationTypeContext()
          Gets the application type context.
 Ballot getBallot()
          Gets the ballot.
 BallotData getBallotData()
          Gets the ballot data.
 Date getDatum()
          Gets the datum.
 Long getId()
          Gets the id.
 Date getImportedDate()
          Gets the imported date.
 ImportedData.ImportStatus getImportStatus()
          Gets the import status.
 ParliamentMember getParliamentMember()
          Gets the parliament member.
 ParliamentMemberData getParliamentMemberData()
          Gets the parliament member data.
 ParliamentMetaData getParliamentMetaData()
          Gets the parliament meta data.
 VotePosition 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 setBallotData(BallotData ballot)
          Sets the ballot data.
 void setDatum(Date datum)
          Sets the datum.
 void setId(Long id)
          Sets the id.
 void setImportedDate(Date importedDate)
          Sets the imported date.
 void setImportStatus(ImportedData.ImportStatus importStatus)
          Sets the import status.
 void setParliamentMember(ParliamentMember parliamentMember)
          Sets the parliament member.
 void setParliamentMemberData(ParliamentMemberData parliamentMember)
          Sets the parliament member data.
 void setPosition(VotePosition 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.
 void setVoteParliamentMetaData(VoteMetaDataData voteMetaData)
          Sets the vote parliament meta data.
 
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.common.PersistedModelObject
getTypeContext, isNew
 

Constructor Detail

Vote

public Vote()
Method Detail

dataCanBeUpdated

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

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

generatesParliamentMetaData

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

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

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application type context.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application type context

getBallot

public Ballot getBallot()
Gets the ballot.

Returns:
the ballot

getBallotData

public BallotData getBallotData()
Description copied from interface: VoteData
Gets the ballot data.

Specified by:
getBallotData in interface VoteData
Returns:
the ballot data

getDatum

public Date getDatum()
Description copied from interface: VoteData
Gets the datum.

Specified by:
getDatum in interface VoteData
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: ImportedData
Gets the imported date.

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

getImportStatus

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

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

getParliamentMember

public ParliamentMember getParliamentMember()
Gets the parliament member.

Returns:
the parliament member

getParliamentMemberData

public ParliamentMemberData getParliamentMemberData()
Description copied from interface: VoteData
Gets the parliament member data.

Specified by:
getParliamentMemberData in interface VoteData
Returns:
the parliament member data

getParliamentMetaData

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

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

getPosition

public VotePosition getPosition()
Description copied from interface: VoteData
Gets the position.

Specified by:
getPosition in interface VoteData
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()
Description copied from interface: VoteData
Checks if is winning.

Specified by:
isWinning in interface VoteData
Returns:
true, if is winning

setBallot

public void setBallot(Ballot ballot)
Sets the ballot.

Parameters:
ballot - the new ballot

setBallotData

public void setBallotData(BallotData ballot)
Description copied from interface: VoteData
Sets the ballot data.

Specified by:
setBallotData in interface VoteData
Parameters:
ballot - the new ballot data

setDatum

public void setDatum(Date datum)
Description copied from interface: VoteData
Sets the datum.

Specified by:
setDatum in interface VoteData
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: ImportedData
Sets the imported date.

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

setImportStatus

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

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

setParliamentMember

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

Parameters:
parliamentMember - the new parliament member

setParliamentMemberData

public void setParliamentMemberData(ParliamentMemberData parliamentMember)
Description copied from interface: VoteData
Sets the parliament member data.

Specified by:
setParliamentMemberData in interface VoteData
Parameters:
parliamentMember - the new parliament member data

setPosition

public void setPosition(VotePosition position)
Description copied from interface: VoteData
Sets the position.

Specified by:
setPosition in interface VoteData
Parameters:
position - the new position

setResourceType

public void setResourceType(ResourceType resourceType)
Sets the resource type.

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

setVoteParliamentMetaData

public void setVoteParliamentMetaData(VoteMetaDataData voteMetaData)
Description copied from interface: VoteData
Sets the vote parliament meta data.

Specified by:
setVoteParliamentMetaData in interface VoteData
Parameters:
voteMetaData - the new vote parliament meta data


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