Package africa.absa.inception.reference
Class Country
- java.lang.Object
-
- africa.absa.inception.reference.Country
-
- All Implemented Interfaces:
Serializable
@Entity public class Country extends Object implements Serializable
The Country class holds the information for a country.- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Country()Constructs a new Country.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether some other object is "equal to" this one.StringgetCode()Returns the ISO 3166-1 alpha-2 code for the country.StringgetDescription()Returns the description for the country.StringgetIso3Code()Returns the ISO 3166-1 alpha-3 code for the country.StringgetLocaleId()Returns the Unicode locale identifier for the country.StringgetName()Returns the name of the country.StringgetNationality()Returns the nationality for the country.StringgetShortName()Returns the short name for the country.IntegergetSortIndex()Returns the sort index for the country.StringgetSovereignState()Returns the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with.inthashCode()Returns a hash code value for the object.voidsetCode(String code)Set the ISO 3166-1 alpha-2 code for the country.voidsetDescription(String description)Set the description for the country.voidsetIso3Code(String iso3Code)Set the ISO 3166-1 alpha-3 code for the country.voidsetLocaleId(String localeId)Set the Unicode locale identifier for the country.voidsetName(String name)Set the name of the country.voidsetNationality(String nationality)Set the nationality for the country.voidsetShortName(String shortDescription)Set the short name for the country.voidsetSortIndex(Integer sortIndex)Set the sort index for the country.voidsetSovereignState(String sovereignState)Set the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
getCode
public String getCode()
Returns the ISO 3166-1 alpha-2 code for the country.- Returns:
- the ISO 3166-1 alpha-2 code for the country
-
getDescription
public String getDescription()
Returns the description for the country.- Returns:
- the description for the country
-
getIso3Code
public String getIso3Code()
Returns the ISO 3166-1 alpha-3 code for the country.- Returns:
- the ISO 3166-1 alpha-3 code for the country
-
getLocaleId
public String getLocaleId()
Returns the Unicode locale identifier for the country.- Returns:
- the Unicode locale identifier for the country
-
getName
public String getName()
Returns the name of the country.- Returns:
- the name of the country
-
getNationality
public String getNationality()
Returns the nationality for the country.- Returns:
- the nationality for the country
-
getShortName
public String getShortName()
Returns the short name for the country.- Returns:
- the short name for the country
-
getSortIndex
public Integer getSortIndex()
Returns the sort index for the country.- Returns:
- the sort index for the country
-
getSovereignState
public String getSovereignState()
Returns the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with.- Returns:
- the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
setCode
public void setCode(String code)
Set the ISO 3166-1 alpha-2 code for the country.- Parameters:
code- the ISO 3166-1 alpha-2 code for the country
-
setDescription
public void setDescription(String description)
Set the description for the country.- Parameters:
description- the description for the country
-
setIso3Code
public void setIso3Code(String iso3Code)
Set the ISO 3166-1 alpha-3 code for the country.- Parameters:
iso3Code- the ISO 3166-1 alpha-3 code for the country
-
setLocaleId
public void setLocaleId(String localeId)
Set the Unicode locale identifier for the country.- Parameters:
localeId- the Unicode locale identifier for the country
-
setName
public void setName(String name)
Set the name of the country.- Parameters:
name- the name of the country
-
setNationality
public void setNationality(String nationality)
Set the nationality for the country.- Parameters:
nationality- the nationality for the country
-
setShortName
public void setShortName(String shortDescription)
Set the short name for the country.- Parameters:
shortDescription- the short name for the country
-
setSortIndex
public void setSortIndex(Integer sortIndex)
Set the sort index for the country.- Parameters:
sortIndex- the sort index for the country
-
setSovereignState
public void setSovereignState(String sovereignState)
Set the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with.- Parameters:
sovereignState- the ISO 3166-1 alpha-2 code for the sovereign state the country is associated with
-
-