|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcom.hack23.cia.model.common.impl.BaseEntity
com.hack23.cia.model.sweden.impl.Parliament
@Entity public class Parliament
The Class Parliament.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.hack23.cia.model.sweden.api.ParliamentData |
|---|
ParliamentData.ImportStatus |
| Constructor Summary | |
|---|---|
Parliament()
Instantiates a new parliament. |
|
| Method Summary | |
|---|---|
boolean |
dataCanBeUpdated()
Data can be updated. |
boolean |
generatesParliamentMetaData()
Generates parliament meta data. |
Role[] |
getActorRoles()
Gets the actor roles. |
Committee |
getCommitteeById(Long id)
Gets the committee by id. |
Set<Committee> |
getCommittees()
Gets the committees. |
String |
getDescription()
Gets the description. |
Election |
getElectionById(Long id)
Gets the election by id. |
Set<Election> |
getElections()
Gets the elections. |
Long |
getId()
Gets the id. |
Date |
getImportedDate()
Gets the imported date. |
ParliamentData.ImportStatus |
getImportStatus()
Gets the import status. |
String |
getName()
Gets the name. |
ParliamentMetaData |
getParliamentMetaData()
Gets the parliament meta data. |
ParliamentYear |
getParliamentYearById(Long id)
Gets the parliament year by id. |
Set<ParliamentYear> |
getParliamentYears()
Gets the parliament years. |
ResourceType |
getResourceType()
Gets the resource type. |
String |
getShortCode()
Gets the short code. |
String |
getUrl()
Gets the url. |
Long |
getVersion()
Gets the version. |
void |
setActorRoles(Role[] roles)
Sets the actor roles. |
void |
setCommittees(Set<Committee> committees)
Sets the committees. |
void |
setDescription(String description)
Sets the description. |
void |
setElections(Set<Election> elections)
Sets the elections. |
void |
setId(Long id)
Sets the id. |
void |
setImportedDate(Date importedDate)
Sets the imported date. |
void |
setImportStatus(ParliamentData.ImportStatus importStatus)
Sets the import status. |
void |
setName(String name)
Sets the name. |
void |
setParliamentYears(Set<ParliamentYear> parliamentYears)
Sets the parliament years. |
void |
setResourceType(ResourceType resourceType)
Sets the resource type. |
void |
setShortCode(String shortCode)
Sets the short code. |
void |
setUrl(String url)
Sets the url. |
void |
setVersion(Long version)
Sets the version. |
| 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 |
| Constructor Detail |
|---|
public Parliament()
| Method Detail |
|---|
public boolean dataCanBeUpdated()
ParliamentData
dataCanBeUpdated in interface ParliamentDatapublic boolean generatesParliamentMetaData()
ParliamentData
generatesParliamentMetaData in interface ParliamentDatapublic Role[] getActorRoles()
Actor
getActorRoles in interface Actorpublic Committee getCommitteeById(Long id)
id - the id
public Set<Committee> getCommittees()
public String getDescription()
public Election getElectionById(Long id)
id - the id
public Set<Election> getElections()
public Long getId()
BaseEntity
getId in interface PersistedModelObjectgetId in class BaseEntitypublic Date getImportedDate()
ParliamentData
getImportedDate in interface ParliamentDatapublic ParliamentData.ImportStatus getImportStatus()
ParliamentData
getImportStatus in interface ParliamentDatapublic String getName()
Actor
getName in interface Actorpublic ParliamentMetaData getParliamentMetaData()
ParliamentData
getParliamentMetaData in interface ParliamentDatapublic ParliamentYear getParliamentYearById(Long id)
id - the id
public Set<ParliamentYear> getParliamentYears()
public ResourceType getResourceType()
Resource
getResourceType in interface Resourcepublic String getShortCode()
public String getUrl()
public Long getVersion()
BaseEntity
getVersion in interface PersistedModelObjectgetVersion in class BaseEntitypublic void setActorRoles(Role[] roles)
Actor
setActorRoles in interface Actorroles - the new actor rolespublic void setCommittees(Set<Committee> committees)
committees - the new committeespublic void setDescription(String description)
description - the new descriptionpublic void setElections(Set<Election> elections)
elections - the new electionspublic void setId(Long id)
PersistedModelObject
setId in interface PersistedModelObjectid - the new idpublic void setImportedDate(Date importedDate)
ParliamentData
setImportedDate in interface ParliamentDataimportedDate - the new imported datepublic void setImportStatus(ParliamentData.ImportStatus importStatus)
ParliamentData
setImportStatus in interface ParliamentDataimportStatus - the new import statuspublic void setName(String name)
Actor
setName in interface Actorname - the new namepublic void setParliamentYears(Set<ParliamentYear> parliamentYears)
parliamentYears - the new parliament yearspublic void setResourceType(ResourceType resourceType)
Resource
setResourceType in interface ResourceresourceType - the new resource typepublic void setShortCode(String shortCode)
shortCode - the new short codepublic void setUrl(String url)
url - the new urlpublic void setVersion(Long version)
PersistedModelObject
setVersion in interface PersistedModelObjectversion - the new version
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||