Class CountrySubdivisionImpl

java.lang.Object
org.broadleafcommerce.profile.core.domain.CountrySubdivisionImpl
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.admin.domain.AdminMainEntity, CountrySubdivision

@Entity public class CountrySubdivisionImpl extends Object implements CountrySubdivision, org.broadleafcommerce.common.admin.domain.AdminMainEntity
Author:
Elbert Bautista (elbertbautista)
See Also:
  • Field Details

  • Constructor Details

    • CountrySubdivisionImpl

      public CountrySubdivisionImpl()
  • Method Details

    • getAbbreviation

      public String getAbbreviation()
      Description copied from interface: CountrySubdivision
      The 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:
      getAbbreviation in interface CountrySubdivision
    • setAbbreviation

      public void setAbbreviation(String abbreviation)
      Description copied from interface: CountrySubdivision
      Sets the primary key abbreviation
      Specified by:
      setAbbreviation in interface CountrySubdivision
      Parameters:
      abbreviation - - e.g. "US-TX" or "GB-WSM"
    • getAlternateAbbreviation

      public String getAlternateAbbreviation()
      Description copied from interface: CountrySubdivision
      More friendly abbreviation that can be used for display purposes e.g. "TX", "CA", "NY"
      Specified by:
      getAlternateAbbreviation in interface CountrySubdivision
      Returns:
      - the alternate abbreviation
    • setAlternateAbbreviation

      public void setAlternateAbbreviation(String alternateAbbreviation)
      Description copied from interface: CountrySubdivision
      sets the alternate abbreviation
      Specified by:
      setAlternateAbbreviation in interface CountrySubdivision
      Parameters:
      alternateAbbreviation - - e.g. "TX", "CA", "NY"
    • getName

      public String getName()
      Description copied from interface: CountrySubdivision
      Full name for display purposes e.g. "Texas", "California", "New York"
      Specified by:
      getName in interface CountrySubdivision
      Returns:
      - the alternate abbreviation
    • setName

      public void setName(String name)
      Description copied from interface: CountrySubdivision
      sets the name
      Specified by:
      setName in interface CountrySubdivision
      Parameters:
      name - - e.g. "Texas", "California", "New York"
    • getCountry

      public Country getCountry()
      Description copied from interface: CountrySubdivision
      The country where this subdivision resides e.g. "US", "GB"
      Specified by:
      getCountry in interface CountrySubdivision
      Returns:
      - the country where this subdivision resides
    • setCountry

      public void setCountry(Country country)
      Description copied from interface: CountrySubdivision
      sets the country in which this subdivision resides
      Specified by:
      setCountry in interface CountrySubdivision
      Parameters:
      country - - e.g. "US", "GB"
    • getCategory

      public CountrySubdivisionCategory getCategory()
      Description copied from interface: CountrySubdivision
      A category that represents the subdivision of this Country. e.g. "State", "Province", "District"
      Specified by:
      getCategory in interface CountrySubdivision
      Returns:
      - the country subdivision category
    • setCategory

      public void setCategory(CountrySubdivisionCategory category)
      Description copied from interface: CountrySubdivision
      sets the country subdivision category
      Specified by:
      setCategory in interface CountrySubdivision
      Parameters:
      category - - e.g. "State", "Province", "District"
    • getMainEntityName

      public String getMainEntityName()
      Specified by:
      getMainEntityName in interface org.broadleafcommerce.common.admin.domain.AdminMainEntity