@Entity public class CountryImpl extends Object implements Country, AdminMainEntity
| Modifier and Type | Field and Description |
|---|---|
protected String |
abbreviation |
protected String |
name |
MAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
CountryImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAbbreviation()
The primary key - Ideally, implementations should use the ISO 3166-1 alpha-2 code of the country.
|
String |
getMainEntityName() |
String |
getName()
The name for the Country
e.g.
|
int |
hashCode() |
void |
setAbbreviation(String Abbreviation)
sets the abbreviation for this Country
|
void |
setName(String name)
sets the name of the Country
|
public String getAbbreviation()
Countryhttp://en.wikipedia.org/wiki/ISO_3166-1_alpha-2getAbbreviation in interface Countrypublic void setAbbreviation(String Abbreviation)
CountrysetAbbreviation in interface CountryAbbreviation - - e.g. "US" or "GB"public String getName()
Countrypublic void setName(String name)
Countrypublic String getMainEntityName()
getMainEntityName in interface AdminMainEntityCopyright © 2015. All Rights Reserved.