|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hack23.cia.model.common.impl.BaseEntity com.hack23.cia.model.sweden.impl.AbstractBallotMetaData
@Entity public abstract class AbstractBallotMetaData
The Class AbstractBallotMetaData.
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
AbstractBallotMetaData()
Instantiates a new abstract ballot meta data. |
Method Summary | |
---|---|
long |
getAbsentVotes()
Gets the absent votes. |
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(Vote 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.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.Resource |
---|
getResourceType, setResourceType |
Methods inherited from interface com.hack23.cia.model.common.api.PersistedModelObject |
---|
isNew |
Field Detail |
---|
protected long absentVotes
protected long neutralVotes
protected long noVotes
protected long totalVotes
protected long yesVotes
Constructor Detail |
---|
public AbstractBallotMetaData()
Method Detail |
---|
public long getAbsentVotes()
public Long getId()
BaseEntity
getId
in interface PersistedModelObject
getId
in class BaseEntity
public long getNeutralVotes()
public long getNoVotes()
public long getTotalVotes()
public Long getVersion()
BaseEntity
getVersion
in interface PersistedModelObject
getVersion
in class BaseEntity
public long getYesVotes()
public void newVote(Vote vote)
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 |