Class VoteData
- java.lang.Object
-
- com.hack23.cia.model.external.riksdagen.votering.impl.VoteData
-
- All Implemented Interfaces:
com.hack23.cia.model.common.api.ModelObject
,java.io.Serializable
@Entity(name="VoteData") public class VoteData extends java.lang.Object implements com.hack23.cia.model.common.api.ModelObject
The Class VoteData.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected BallotType
ballotType
The ballot type.protected java.lang.String
bankNumber
The bank number.protected int
bornYear
The born year.protected java.lang.String
electoralRegion
The electoral region.protected java.math.BigInteger
electoralRegionNumber
The electoral region number.protected VoteDataEmbeddedId
embeddedId
The embedded id.protected java.lang.String
firstName
The first name.protected java.lang.String
fullName
The full name.protected java.lang.String
gender
The gender.protected java.lang.String
label
The label.protected java.lang.String
lastName
The last name.protected java.lang.String
party
The party.protected java.lang.String
place
The place.protected java.lang.String
rm
The rm.protected VoteDecision
vote
The vote.protected java.util.Date
voteDate
The vote date.
-
Constructor Summary
Constructors Constructor Description VoteData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
BallotType
getBallotType()
Gets the ballot type.java.lang.String
getBankNumber()
Gets the bank number.int
getBornYear()
Gets the born year.java.lang.String
getElectoralRegion()
Gets the electoral region.java.math.BigInteger
getElectoralRegionNumber()
Gets the electoral region number.VoteDataEmbeddedId
getEmbeddedId()
Gets the embedded id.java.lang.String
getFirstName()
Gets the first name.java.lang.String
getFullName()
Gets the full name.java.lang.String
getGender()
Gets the gender.java.lang.String
getLabel()
Gets the label.java.lang.String
getLastName()
Gets the last name.java.lang.String
getParty()
Gets the party.java.lang.String
getPlace()
Gets the place.java.lang.String
getRm()
Gets the rm.VoteDecision
getVote()
Gets the vote.java.util.Date
getVoteDate()
Gets the vote date.int
hashCode()
void
setBallotType(BallotType value)
Sets the ballot type.void
setBankNumber(java.lang.String value)
Sets the bank number.void
setBornYear(int value)
Sets the born year.void
setElectoralRegion(java.lang.String value)
Sets the electoral region.void
setElectoralRegionNumber(java.math.BigInteger value)
Sets the electoral region number.void
setEmbeddedId(VoteDataEmbeddedId value)
Sets the embedded id.void
setFirstName(java.lang.String value)
Sets the first name.void
setFullName(java.lang.String value)
Sets the full name.void
setGender(java.lang.String value)
Sets the gender.void
setLabel(java.lang.String value)
Sets the label.void
setLastName(java.lang.String value)
Sets the last name.void
setParty(java.lang.String value)
Sets the party.void
setPlace(java.lang.String value)
Sets the place.void
setRm(java.lang.String value)
Sets the rm.void
setVote(VoteDecision value)
Sets the vote.void
setVoteDate(java.util.Date value)
Sets the vote date.java.lang.String
toString()
VoteData
withBallotType(BallotType value)
With ballot type.VoteData
withBankNumber(java.lang.String value)
With bank number.VoteData
withBornYear(int value)
With born year.VoteData
withElectoralRegion(java.lang.String value)
With electoral region.VoteData
withElectoralRegionNumber(java.math.BigInteger value)
With electoral region number.VoteData
withEmbeddedId(VoteDataEmbeddedId value)
With embedded id.VoteData
withFirstName(java.lang.String value)
With first name.VoteData
withFullName(java.lang.String value)
With full name.VoteData
withGender(java.lang.String value)
With gender.VoteData
withLabel(java.lang.String value)
With label.VoteData
withLastName(java.lang.String value)
With last name.VoteData
withParty(java.lang.String value)
With party.VoteData
withPlace(java.lang.String value)
With place.VoteData
withRm(java.lang.String value)
With rm.VoteData
withVote(VoteDecision value)
With vote.VoteData
withVoteDate(java.util.Date value)
With vote date.
-
-
-
Field Detail
-
bankNumber
protected java.lang.String bankNumber
The bank number.
-
label
protected java.lang.String label
The label.
-
lastName
protected java.lang.String lastName
The last name.
-
bornYear
protected int bornYear
The born year.
-
firstName
protected java.lang.String firstName
The first name.
-
place
protected java.lang.String place
The place.
-
gender
protected java.lang.String gender
The gender.
-
fullName
protected java.lang.String fullName
The full name.
-
voteDate
protected java.util.Date voteDate
The vote date.
-
party
protected java.lang.String party
The party.
-
rm
protected java.lang.String rm
The rm.
-
vote
protected VoteDecision vote
The vote.
-
ballotType
protected BallotType ballotType
The ballot type.
-
electoralRegion
protected java.lang.String electoralRegion
The electoral region.
-
electoralRegionNumber
protected java.math.BigInteger electoralRegionNumber
The electoral region number.
-
embeddedId
protected VoteDataEmbeddedId embeddedId
The embedded id.
-
-
Method Detail
-
getBankNumber
public java.lang.String getBankNumber()
Gets the bank number.- Returns:
- the bank number
-
setBankNumber
public void setBankNumber(java.lang.String value)
Sets the bank number.- Parameters:
value
- the new bank number
-
getLabel
public java.lang.String getLabel()
Gets the label.- Returns:
- the label
-
setLabel
public void setLabel(java.lang.String value)
Sets the label.- Parameters:
value
- the new label
-
getLastName
public java.lang.String getLastName()
Gets the last name.- Returns:
- the last name
-
setLastName
public void setLastName(java.lang.String value)
Sets the last name.- Parameters:
value
- the new last name
-
getBornYear
public int getBornYear()
Gets the born year.- Returns:
- the born year
-
setBornYear
public void setBornYear(int value)
Sets the born year.- Parameters:
value
- the new born year
-
getFirstName
public java.lang.String getFirstName()
Gets the first name.- Returns:
- the first name
-
setFirstName
public void setFirstName(java.lang.String value)
Sets the first name.- Parameters:
value
- the new first name
-
getPlace
public java.lang.String getPlace()
Gets the place.- Returns:
- the place
-
setPlace
public void setPlace(java.lang.String value)
Sets the place.- Parameters:
value
- the new place
-
getGender
public java.lang.String getGender()
Gets the gender.- Returns:
- the gender
-
setGender
public void setGender(java.lang.String value)
Sets the gender.- Parameters:
value
- the new gender
-
getFullName
public java.lang.String getFullName()
Gets the full name.- Returns:
- the full name
-
setFullName
public void setFullName(java.lang.String value)
Sets the full name.- Parameters:
value
- the new full name
-
getVoteDate
public java.util.Date getVoteDate()
Gets the vote date.- Returns:
- the vote date
-
setVoteDate
public void setVoteDate(java.util.Date value)
Sets the vote date.- Parameters:
value
- the new vote date
-
getParty
public java.lang.String getParty()
Gets the party.- Returns:
- the party
-
setParty
public void setParty(java.lang.String value)
Sets the party.- Parameters:
value
- the new party
-
getRm
public java.lang.String getRm()
Gets the rm.- Returns:
- the rm
-
setRm
public void setRm(java.lang.String value)
Sets the rm.- Parameters:
value
- the new rm
-
getVote
public VoteDecision getVote()
Gets the vote.- Returns:
- the vote
-
setVote
public void setVote(VoteDecision value)
Sets the vote.- Parameters:
value
- the new vote
-
getBallotType
public BallotType getBallotType()
Gets the ballot type.- Returns:
- the ballot type
-
setBallotType
public void setBallotType(BallotType value)
Sets the ballot type.- Parameters:
value
- the new ballot type
-
getElectoralRegion
public java.lang.String getElectoralRegion()
Gets the electoral region.- Returns:
- the electoral region
-
setElectoralRegion
public void setElectoralRegion(java.lang.String value)
Sets the electoral region.- Parameters:
value
- the new electoral region
-
getElectoralRegionNumber
public java.math.BigInteger getElectoralRegionNumber()
Gets the electoral region number.- Returns:
- the electoral region number
-
setElectoralRegionNumber
public void setElectoralRegionNumber(java.math.BigInteger value)
Sets the electoral region number.- Parameters:
value
- the new electoral region number
-
getEmbeddedId
public VoteDataEmbeddedId getEmbeddedId()
Gets the embedded id.- Returns:
- the embedded id
-
setEmbeddedId
public void setEmbeddedId(VoteDataEmbeddedId value)
Sets the embedded id.- Parameters:
value
- the new embedded id
-
withBankNumber
public VoteData withBankNumber(java.lang.String value)
With bank number.- Parameters:
value
- the value- Returns:
- the vote data
-
withLabel
public VoteData withLabel(java.lang.String value)
With label.- Parameters:
value
- the value- Returns:
- the vote data
-
withLastName
public VoteData withLastName(java.lang.String value)
With last name.- Parameters:
value
- the value- Returns:
- the vote data
-
withBornYear
public VoteData withBornYear(int value)
With born year.- Parameters:
value
- the value- Returns:
- the vote data
-
withFirstName
public VoteData withFirstName(java.lang.String value)
With first name.- Parameters:
value
- the value- Returns:
- the vote data
-
withPlace
public VoteData withPlace(java.lang.String value)
With place.- Parameters:
value
- the value- Returns:
- the vote data
-
withGender
public VoteData withGender(java.lang.String value)
With gender.- Parameters:
value
- the value- Returns:
- the vote data
-
withFullName
public VoteData withFullName(java.lang.String value)
With full name.- Parameters:
value
- the value- Returns:
- the vote data
-
withVoteDate
public VoteData withVoteDate(java.util.Date value)
With vote date.- Parameters:
value
- the value- Returns:
- the vote data
-
withParty
public VoteData withParty(java.lang.String value)
With party.- Parameters:
value
- the value- Returns:
- the vote data
-
withRm
public VoteData withRm(java.lang.String value)
With rm.- Parameters:
value
- the value- Returns:
- the vote data
-
withVote
public VoteData withVote(VoteDecision value)
With vote.- Parameters:
value
- the value- Returns:
- the vote data
-
withBallotType
public VoteData withBallotType(BallotType value)
With ballot type.- Parameters:
value
- the value- Returns:
- the vote data
-
withElectoralRegion
public VoteData withElectoralRegion(java.lang.String value)
With electoral region.- Parameters:
value
- the value- Returns:
- the vote data
-
withElectoralRegionNumber
public VoteData withElectoralRegionNumber(java.math.BigInteger value)
With electoral region number.- Parameters:
value
- the value- Returns:
- the vote data
-
withEmbeddedId
public VoteData withEmbeddedId(VoteDataEmbeddedId value)
With embedded id.- Parameters:
value
- the value- Returns:
- the vote data
-
toString
public final java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-