|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.hack23.cia.model.common.impl.BaseEntity
com.hack23.cia.model.sweden.impl.Vote
@Entity public class Vote
The Class Vote.
| 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 |
|---|
public Vote()
| Method Detail |
|---|
public boolean dataCanBeUpdated()
ParliamentData
dataCanBeUpdated in interface ParliamentDatapublic boolean generatesParliamentMetaData()
ParliamentData
generatesParliamentMetaData in interface ParliamentDatapublic Ballot getBallot()
public Date getDatum()
public Long getId()
BaseEntity
getId in interface PersistedModelObjectgetId in class BaseEntitypublic Date getImportedDate()
ParliamentData
getImportedDate in interface ParliamentDatapublic ParliamentData.ImportStatus getImportStatus()
ParliamentData
getImportStatus in interface ParliamentDatapublic ParliamentMember getParliamentMember()
public ParliamentMetaData getParliamentMetaData()
ParliamentData
getParliamentMetaData in interface ParliamentDatapublic Vote.Position getPosition()
public ResourceType getResourceType()
Resource
getResourceType in interface Resourcepublic Long getVersion()
BaseEntity
getVersion in interface PersistedModelObjectgetVersion in class BaseEntitypublic VoteMetaData getVoteMetaData()
public boolean isRebel()
public boolean isWinning()
public void setBallot(Ballot ballot)
ballot - the new ballotpublic void setDatum(Date datum)
datum - the new datumpublic void setId(Long id)
PersistedModelObject
setId in interface PersistedModelObjectid - the new idpublic void setImportedDate(Date importedDate)
ParliamentData
setImportedDate in interface ParliamentDataimportedDate - the new imported datepublic void setImportStatus(ParliamentData.ImportStatus importStatus)
ParliamentData
setImportStatus in interface ParliamentDataimportStatus - the new import statuspublic void setParliamentMember(ParliamentMember parliamentMember)
parliamentMember - the new parliament memberpublic void setPosition(Vote.Position position)
position - the new positionpublic void setResourceType(ResourceType resourceType)
Resource
setResourceType in interface ResourceresourceType - the new resource typepublic void setVersion(Long version)
PersistedModelObject
setVersion in interface PersistedModelObjectversion - the new versionpublic void setVoteMetaData(VoteMetaData voteMetaData)
voteMetaData - the new vote meta data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||