com.hack23.cia.model.impl.sweden.content
Class ParliamentMemberVoteCompareResult

Package class diagram package ParliamentMemberVoteCompareResult
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
      extended by com.hack23.cia.model.impl.sweden.content.ParliamentMemberVoteCompareResult
All Implemented Interfaces:
Data, MetaData, ModelObject, PersistedModelObject, Resource, ParliamentMetaData, ParliamentMemberVoteCompareResultData, Serializable

@Entity
public class ParliamentMemberVoteCompareResult
extends BaseEntity
implements ParliamentMemberVoteCompareResultData

The Class ParliamentMemberVoteCompareResult.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static float NO_RESULT
          The Constant NO_RESULT.
 
Constructor Summary
Constructor and Description
ParliamentMemberVoteCompareResult()
          Instantiates a new parliament member vote compare result.
ParliamentMemberVoteCompareResult(Date datum, int votesCompared, float result, ParliamentMember parliamentMember, ParliamentMember opponentParliamentMember)
          Instantiates a new parliament member vote compare result.
 
Method Summary
Modifier and Type Method and Description
protected  TypeContext getApplicationTypeContext()
          Gets the application type context.
 Date getCreatedDate()
          Gets the created date.
 Date getDatum()
          Gets the datum.
 Long getId()
          Gets the id.
 ParliamentMember getOpponentParliamentMember()
          Gets the opponent parliament member.
 ParliamentMember getParliamentMember()
          Gets the parliament member.
 ResourceType getResourceType()
          Gets the resource type.
 float getResult()
          Gets the result.
 Long getVersion()
          Gets the version.
 int getVotesCompared()
          Gets the votes compared.
 void setCreatedDate(Date createdDate)
          Sets the created date.
 void setDatum(Date datum)
          Sets the datum.
 void setId(Long id)
          Sets the id.
 void setOpponentParliamentMember(ParliamentMember opponentParliamentMember)
          Sets the opponent parliament member.
 void setParliamentMember(ParliamentMember parliamentMember)
          Sets the parliament member.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 void setResult(float result)
          Sets the result.
 void setVersion(Long version)
          Sets the version.
 void setVotesCompared(int votesCompared)
          Sets the votes compared.
 
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
 

Field Detail

NO_RESULT

public static final float NO_RESULT
The Constant NO_RESULT.

See Also:
Constant Field Values
Constructor Detail

ParliamentMemberVoteCompareResult

public ParliamentMemberVoteCompareResult()
Instantiates a new parliament member vote compare result.


ParliamentMemberVoteCompareResult

public ParliamentMemberVoteCompareResult(Date datum,
                                         int votesCompared,
                                         float result,
                                         ParliamentMember parliamentMember,
                                         ParliamentMember opponentParliamentMember)
Instantiates a new parliament member vote compare result.

Parameters:
datum - the datum
votesCompared - the votes compared
result - the result
parliamentMember - the parliament member
opponentParliamentMember - the opponent parliament member
Method Detail

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application type context.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application type context

getCreatedDate

public Date getCreatedDate()
Description copied from interface: ParliamentMetaData
Gets the created date.

Specified by:
getCreatedDate in interface ParliamentMetaData
Returns:
the created date

getDatum

public Date getDatum()
Gets the datum.

Returns:
the datum

getId

public Long getId()
Description copied from class: BaseEntity
Gets the id.

Specified by:
getId in interface PersistedModelObject
Specified by:
getId in class BaseEntity
Returns:
the id

getOpponentParliamentMember

public ParliamentMember getOpponentParliamentMember()
Gets the opponent parliament member.

Returns:
the opponent parliament member

getParliamentMember

public ParliamentMember getParliamentMember()
Gets the parliament member.

Returns:
the parliament member

getResourceType

public ResourceType getResourceType()
Description copied from interface: Resource
Gets the resource type.

Specified by:
getResourceType in interface Resource
Returns:
the resource type

getResult

public float getResult()
Gets the result.

Returns:
the result

getVersion

public Long getVersion()
Description copied from class: BaseEntity
Gets the version.

Specified by:
getVersion in interface PersistedModelObject
Specified by:
getVersion in class BaseEntity
Returns:
the version

getVotesCompared

public int getVotesCompared()
Gets the votes compared.

Returns:
the votes compared

setCreatedDate

public void setCreatedDate(Date createdDate)
Sets the created date.

Parameters:
createdDate - the new created date

setDatum

public void setDatum(Date datum)
Sets the datum.

Parameters:
datum - the new datum

setId

public void setId(Long id)
Description copied from interface: PersistedModelObject
Sets the id.

Specified by:
setId in interface PersistedModelObject
Parameters:
id - the new id

setOpponentParliamentMember

public void setOpponentParliamentMember(ParliamentMember opponentParliamentMember)
Sets the opponent parliament member.

Parameters:
opponentParliamentMember - the new opponent parliament member

setParliamentMember

public void setParliamentMember(ParliamentMember parliamentMember)
Sets the parliament member.

Parameters:
parliamentMember - the new parliament member

setResourceType

public void setResourceType(ResourceType resourceType)
Sets the resource type.

Parameters:
resourceType - the new resource type

setResult

public void setResult(float result)
Sets the result.

Parameters:
result - the new result

setVersion

public void setVersion(Long version)
Description copied from interface: PersistedModelObject
Sets the version.

Specified by:
setVersion in interface PersistedModelObject
Parameters:
version - the new version

setVotesCompared

public void setVotesCompared(int votesCompared)
Sets the votes compared.

Parameters:
votesCompared - the new votes compared


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.