|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.impl.common.BaseEntity com.hack23.cia.model.impl.sweden.content.Vote
@Entity public class Vote extends BaseEntity implements VoteData
The Class Vote.
Modifier and Type | Interface and Description |
---|
Nested classes/interfaces inherited from interface com.hack23.cia.model.api.sweden.common.ImportedData |
---|
ImportedData.ImportStatus |
Constructor and Description |
---|
Vote()
|
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 |
---|
public Vote()
Method Detail |
---|
public boolean dataCanBeUpdated()
ParliamentMappedData
dataCanBeUpdated
in interface ParliamentMappedData
public boolean generatesParliamentMetaData()
ParliamentMappedData
generatesParliamentMetaData
in interface ParliamentMappedData
protected TypeContext getApplicationTypeContext()
BaseEntity
getApplicationTypeContext
in class BaseEntity
public Ballot getBallot()
public BallotData getBallotData()
VoteData
getBallotData
in interface VoteData
public Date getDatum()
VoteData
getDatum
in interface VoteData
public Long getId()
BaseEntity
getId
in interface PersistedModelObject
getId
in class BaseEntity
public Date getImportedDate()
ImportedData
getImportedDate
in interface ImportedData
public ImportedData.ImportStatus getImportStatus()
ImportedData
getImportStatus
in interface ImportedData
public ParliamentMember getParliamentMember()
public ParliamentMemberData getParliamentMemberData()
VoteData
getParliamentMemberData
in interface VoteData
public ParliamentMetaData getParliamentMetaData()
ParliamentMappedData
getParliamentMetaData
in interface ParliamentMappedData
public VotePosition getPosition()
VoteData
getPosition
in interface VoteData
public ResourceType getResourceType()
Resource
getResourceType
in interface Resource
public Long getVersion()
BaseEntity
getVersion
in interface PersistedModelObject
getVersion
in class BaseEntity
public VoteMetaData getVoteMetaData()
public boolean isRebel()
public boolean isWinning()
VoteData
isWinning
in interface VoteData
public void setBallot(Ballot ballot)
ballot
- the new ballotpublic void setBallotData(BallotData ballot)
VoteData
setBallotData
in interface VoteData
ballot
- the new ballot datapublic void setDatum(Date datum)
VoteData
setDatum
in interface VoteData
datum
- the new datumpublic void setId(Long id)
PersistedModelObject
setId
in interface PersistedModelObject
id
- the new idpublic void setImportedDate(Date importedDate)
ImportedData
setImportedDate
in interface ImportedData
importedDate
- the new imported datepublic void setImportStatus(ImportedData.ImportStatus importStatus)
ImportedData
setImportStatus
in interface ImportedData
importStatus
- the new import statuspublic void setParliamentMember(ParliamentMember parliamentMember)
parliamentMember
- the new parliament memberpublic void setParliamentMemberData(ParliamentMemberData parliamentMember)
VoteData
setParliamentMemberData
in interface VoteData
parliamentMember
- the new parliament member datapublic void setPosition(VotePosition position)
VoteData
setPosition
in interface VoteData
position
- the new positionpublic void setResourceType(ResourceType resourceType)
resourceType
- the new resource typepublic void setVersion(Long version)
PersistedModelObject
setVersion
in interface PersistedModelObject
version
- the new versionpublic void setVoteMetaData(VoteMetaData voteMetaData)
voteMetaData
- the new vote meta datapublic void setVoteParliamentMetaData(VoteMetaDataData voteMetaData)
VoteData
setVoteParliamentMetaData
in interface VoteData
voteMetaData
- the new vote parliament meta data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |