com.hack23.cia.model.impl.sweden
Class ParliamentYear

Package class diagram package ParliamentYear
java.lang.Object
  extended by com.hack23.cia.model.impl.common.BaseEntity
      extended by com.hack23.cia.model.impl.sweden.ParliamentYear
All Implemented Interfaces:
Data, Event, ModelObject, PersistedModelObject, Resource, ParliamentEvent, ParliamentImportedData, ParliamentMappedData, ParliamentYearData, Serializable

@Entity
public class ParliamentYear
extends BaseEntity
implements ParliamentYearData

The Class ParliamentYear.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.hack23.cia.model.api.sweden.ParliamentImportedData
ParliamentImportedData.ImportStatus
 
Constructor Summary
ParliamentYear()
          Instantiates a new parliament year.
 
Method Summary
 boolean dataCanBeUpdated()
          Data can be updated.
 boolean generatesParliamentMetaData()
          Generates parliament meta data.
protected  TypeContext getApplicationTypeContext()
          Gets the application group specification.
 boolean getCurrentYear()
          Gets the current year.
 boolean getDataCompleted()
          Gets the data completed.
 boolean getDataUpdating()
          Gets the data updating.
 Date getEndDate()
          Gets the end date.
 Long getId()
          Gets the id.
 boolean getImportData()
          Gets the import data.
 Date getImportedDate()
          Gets the imported date.
 ParliamentImportedData.ImportStatus getImportStatus()
          Gets the import status.
 String getName()
          Gets the name.
 ParliamentMetaData getParliamentMetaData()
          Gets the parliament meta data.
 ResourceType getResourceType()
          Gets the resource type.
 String getShortCode()
          Gets the short code.
 Date getStartDate()
          Gets the start date.
 Long getVersion()
          Gets the version.
 void setCurrentYear(boolean currentYear)
          Sets the current year.
 void setDataCompleted(boolean dataCompleted)
          Sets the data completed.
 void setDataUpdating(boolean dataUpdating)
          Sets the data updating.
 void setEndDate(Date endDate)
          Sets the end date.
 void setId(Long id)
          Sets the id.
 void setImportData(boolean importData)
          Sets the import data.
 void setImportedDate(Date importedDate)
          Sets the imported date.
 void setImportStatus(ParliamentImportedData.ImportStatus importStatus)
          Sets the import status.
 void setName(String name)
          Sets the name.
 void setResourceType(ResourceType resourceType)
          Sets the resource type.
 void setShortCode(String shortCode)
          Sets the short code.
 void setStartDate(Date startDate)
          Sets the start date.
 void setVersion(Long version)
          Sets the version.
 
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
 

Constructor Detail

ParliamentYear

public ParliamentYear()
Instantiates a new parliament year.

Method Detail

dataCanBeUpdated

public boolean dataCanBeUpdated()
Description copied from interface: ParliamentImportedData
Data can be updated.

Specified by:
dataCanBeUpdated in interface ParliamentImportedData
Returns:
true, if successful

generatesParliamentMetaData

public boolean generatesParliamentMetaData()
Description copied from interface: ParliamentImportedData
Generates parliament meta data.

Specified by:
generatesParliamentMetaData in interface ParliamentImportedData
Returns:
true, if successful

getCurrentYear

public boolean getCurrentYear()
Gets the current year.

Returns:
the current year

getDataCompleted

public boolean getDataCompleted()
Gets the data completed.

Returns:
the data completed

getDataUpdating

public boolean getDataUpdating()
Description copied from interface: ParliamentYearData
Gets the data updating.

Specified by:
getDataUpdating in interface ParliamentYearData
Returns:
the data updating

getEndDate

public Date getEndDate()
Description copied from interface: ParliamentYearData
Gets the end date.

Specified by:
getEndDate in interface ParliamentYearData
Returns:
the end date

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

getImportData

public boolean getImportData()
Description copied from interface: ParliamentYearData
Gets the import data.

Specified by:
getImportData in interface ParliamentYearData
Returns:
the import data

getImportedDate

public Date getImportedDate()
Description copied from interface: ParliamentImportedData
Gets the imported date.

Specified by:
getImportedDate in interface ParliamentImportedData
Returns:
the imported date

getImportStatus

public ParliamentImportedData.ImportStatus getImportStatus()
Description copied from interface: ParliamentImportedData
Gets the import status.

Specified by:
getImportStatus in interface ParliamentImportedData
Returns:
the import status

getName

public String getName()
Gets the name.

Returns:
the name

getParliamentMetaData

public ParliamentMetaData getParliamentMetaData()
Description copied from interface: ParliamentImportedData
Gets the parliament meta data.

Specified by:
getParliamentMetaData in interface ParliamentImportedData
Returns:
the parliament meta data

getResourceType

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

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

getShortCode

public String getShortCode()
Description copied from interface: ParliamentYearData
Gets the short code.

Specified by:
getShortCode in interface ParliamentYearData
Returns:
the short code

getStartDate

public Date getStartDate()
Description copied from interface: ParliamentYearData
Gets the start date.

Specified by:
getStartDate in interface ParliamentYearData
Returns:
the start date

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

setCurrentYear

public void setCurrentYear(boolean currentYear)
Sets the current year.

Parameters:
currentYear - the new current year

setDataCompleted

public void setDataCompleted(boolean dataCompleted)
Sets the data completed.

Parameters:
dataCompleted - the new data completed

setDataUpdating

public void setDataUpdating(boolean dataUpdating)
Description copied from interface: ParliamentYearData
Sets the data updating.

Specified by:
setDataUpdating in interface ParliamentYearData
Parameters:
dataUpdating - the new data updating

setEndDate

public void setEndDate(Date endDate)
Sets the end date.

Parameters:
endDate - the new end date

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

setImportData

public void setImportData(boolean importData)
Description copied from interface: ParliamentYearData
Sets the import data.

Specified by:
setImportData in interface ParliamentYearData
Parameters:
importData - the new import data

setImportedDate

public void setImportedDate(Date importedDate)
Description copied from interface: ParliamentImportedData
Sets the imported date.

Specified by:
setImportedDate in interface ParliamentImportedData
Parameters:
importedDate - the new imported date

setImportStatus

public void setImportStatus(ParliamentImportedData.ImportStatus importStatus)
Description copied from interface: ParliamentImportedData
Sets the import status.

Specified by:
setImportStatus in interface ParliamentImportedData
Parameters:
importStatus - the new import status

setName

public void setName(String name)
Description copied from interface: ParliamentYearData
Sets the name.

Specified by:
setName in interface ParliamentYearData
Parameters:
name - the new name

setResourceType

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

Parameters:
resourceType - the new resource type

setShortCode

public void setShortCode(String shortCode)
Description copied from interface: ParliamentYearData
Sets the short code.

Specified by:
setShortCode in interface ParliamentYearData
Parameters:
shortCode - the new short code

setStartDate

public void setStartDate(Date startDate)
Sets the start date.

Parameters:
startDate - the new start date

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

getApplicationTypeContext

protected TypeContext getApplicationTypeContext()
Description copied from class: BaseEntity
Gets the application group specification.

Specified by:
getApplicationTypeContext in class BaseEntity
Returns:
the application group specification


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