Class CountrySubdivisionImpl
java.lang.Object
org.broadleafcommerce.profile.core.domain.CountrySubdivisionImpl
- All Implemented Interfaces:
Serializable,AdminMainEntity,CountrySubdivision
@Entity
public class CountrySubdivisionImpl
extends Object
implements CountrySubdivision, AdminMainEntity
- Author:
- Elbert Bautista (elbertbautista)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected CountrySubdivisionCategoryprotected Countryprotected StringFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe primary key - Ideally, implementations should use the ISO 3166-2 code of the country subdivision.More friendly abbreviation that can be used for display purposes e.g.A category that represents the subdivision of this Country.The country where this subdivision resides e.g.getName()Full name for display purposes e.g.voidsetAbbreviation(String abbreviation) Sets the primary key abbreviationvoidsetAlternateAbbreviation(String alternateAbbreviation) sets the alternate abbreviationvoidsetCategory(CountrySubdivisionCategory category) sets the country subdivision categoryvoidsetCountry(Country country) sets the country in which this subdivision residesvoidsets the name
-
Field Details
-
abbreviation
-
name
-
alternateAbbreviation
-
country
-
category
-
-
Constructor Details
-
CountrySubdivisionImpl
public CountrySubdivisionImpl()
-
-
Method Details
-
getAbbreviation
Description copied from interface:CountrySubdivisionThe primary key - Ideally, implementations should use the ISO 3166-2 code of the country subdivision. e.g. "US-TX" or "GB-WSM" {@link http://en.wikipedia.org/wiki/ISO_3166-2}- Specified by:
getAbbreviationin interfaceCountrySubdivision
-
setAbbreviation
Description copied from interface:CountrySubdivisionSets the primary key abbreviation- Specified by:
setAbbreviationin interfaceCountrySubdivision- Parameters:
abbreviation- - e.g. "US-TX" or "GB-WSM"
-
getAlternateAbbreviation
Description copied from interface:CountrySubdivisionMore friendly abbreviation that can be used for display purposes e.g. "TX", "CA", "NY"- Specified by:
getAlternateAbbreviationin interfaceCountrySubdivision- Returns:
- - the alternate abbreviation
-
setAlternateAbbreviation
Description copied from interface:CountrySubdivisionsets the alternate abbreviation- Specified by:
setAlternateAbbreviationin interfaceCountrySubdivision- Parameters:
alternateAbbreviation- - e.g. "TX", "CA", "NY"
-
getName
Description copied from interface:CountrySubdivisionFull name for display purposes e.g. "Texas", "California", "New York"- Specified by:
getNamein interfaceCountrySubdivision- Returns:
- - the alternate abbreviation
-
setName
Description copied from interface:CountrySubdivisionsets the name- Specified by:
setNamein interfaceCountrySubdivision- Parameters:
name- - e.g. "Texas", "California", "New York"
-
getCountry
Description copied from interface:CountrySubdivisionThe country where this subdivision resides e.g. "US", "GB"- Specified by:
getCountryin interfaceCountrySubdivision- Returns:
- - the country where this subdivision resides
-
setCountry
Description copied from interface:CountrySubdivisionsets the country in which this subdivision resides- Specified by:
setCountryin interfaceCountrySubdivision- Parameters:
country- - e.g. "US", "GB"
-
getCategory
Description copied from interface:CountrySubdivisionA category that represents the subdivision of this Country. e.g. "State", "Province", "District"- Specified by:
getCategoryin interfaceCountrySubdivision- Returns:
- - the country subdivision category
-
setCategory
Description copied from interface:CountrySubdivisionsets the country subdivision category- Specified by:
setCategoryin interfaceCountrySubdivision- Parameters:
category- - e.g. "State", "Province", "District"
-
getMainEntityName
- Specified by:
getMainEntityNamein interfaceAdminMainEntity
-