|
||||||||||
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.AbstractBallotMetaData
@Entity public abstract class AbstractBallotMetaData extends BaseEntity implements BaseBallotResultData
The Class AbstractBallotMetaData.
Modifier and Type | Field and Description |
---|---|
protected long |
absentVotes
The absent votes. |
protected long |
neutralVotes
The neutral votes. |
protected long |
noVotes
The no votes. |
protected long |
totalVotes
The total votes. |
protected long |
yesVotes
The yes votes. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractBallotMetaData()
Instantiates a new abstract ballot meta data. |
Modifier and Type | Method and Description |
---|---|
long |
getAbsentVotes()
Gets the absent votes. |
protected TypeContext |
getApplicationTypeContext()
Gets the application type context. |
Long |
getId()
Gets the id. |
long |
getNeutralVotes()
Gets the neutral votes. |
long |
getNoVotes()
Gets the no votes. |
long |
getTotalVotes()
Gets the total votes. |
Long |
getVersion()
Gets the version. |
long |
getYesVotes()
Gets the yes votes. |
void |
newVote(VoteData vote)
New vote. |
void |
setAbsentVotes(long absentVotes)
Sets the absent votes. |
void |
setId(Long id)
Sets the id. |
void |
setNeutralVotes(long neutralVotes)
Sets the neutral votes. |
void |
setNoVotes(long noVotes)
Sets the no votes. |
void |
setTotalVotes(long totalVotes)
Sets the total votes. |
void |
setVersion(Long version)
Sets the version. |
void |
setYesVotes(long yesVotes)
Sets the yes votes. |
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.common.ParliamentMetaData |
---|
getCreatedDate |
Methods inherited from interface com.hack23.cia.model.api.common.Resource |
---|
getResourceType |
Methods inherited from interface com.hack23.cia.model.api.common.PersistedModelObject |
---|
getTypeContext, isNew |
Field Detail |
---|
protected long absentVotes
protected long neutralVotes
protected long noVotes
protected long totalVotes
protected long yesVotes
Constructor Detail |
---|
protected AbstractBallotMetaData()
Method Detail |
---|
public long getAbsentVotes()
BaseBallotResultData
getAbsentVotes
in interface BaseBallotResultData
protected TypeContext getApplicationTypeContext()
BaseEntity
getApplicationTypeContext
in class BaseEntity
public Long getId()
BaseEntity
getId
in interface PersistedModelObject
getId
in class BaseEntity
public long getNeutralVotes()
public long getNoVotes()
public long getTotalVotes()
BaseBallotResultData
getTotalVotes
in interface BaseBallotResultData
public Long getVersion()
BaseEntity
getVersion
in interface PersistedModelObject
getVersion
in class BaseEntity
public long getYesVotes()
public void newVote(VoteData vote)
BaseBallotResultData
newVote
in interface BaseBallotResultData
vote
- the votepublic void setAbsentVotes(long absentVotes)
absentVotes
- the new absent votespublic void setId(Long id)
PersistedModelObject
setId
in interface PersistedModelObject
id
- the new idpublic void setNeutralVotes(long neutralVotes)
neutralVotes
- the new neutral votespublic void setNoVotes(long noVotes)
noVotes
- the new no votespublic void setTotalVotes(long totalVotes)
totalVotes
- the new total votespublic void setVersion(Long version)
PersistedModelObject
setVersion
in interface PersistedModelObject
version
- the new versionpublic void setYesVotes(long yesVotes)
yesVotes
- the new yes votes
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |