Class CountryImpl

java.lang.Object
org.broadleafcommerce.profile.core.domain.CountryImpl
All Implemented Interfaces:
Serializable, AdminMainEntity, Country

@Entity public class CountryImpl extends Object implements Country, AdminMainEntity
See Also:
  • Field Details

    • abbreviation

      protected String abbreviation
    • name

      protected String name
  • Constructor Details

    • CountryImpl

      public CountryImpl()
  • Method Details

    • getAbbreviation

      public String getAbbreviation()
      Description copied from interface: Country
      The primary key - Ideally, implementations should use the ISO 3166-1 alpha-2 code of the country. e.g. "US" or "GB" {@link http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2}
      Specified by:
      getAbbreviation in interface Country
    • setAbbreviation

      public void setAbbreviation(String Abbreviation)
      Description copied from interface: Country
      sets the abbreviation for this Country
      Specified by:
      setAbbreviation in interface Country
      Parameters:
      Abbreviation - - e.g. "US" or "GB"
    • getName

      public String getName()
      Description copied from interface: Country
      The name for the Country e.g. "United States", "United Kingdom"
      Specified by:
      getName in interface Country
      Returns:
      - the name of the Country
    • setName

      public void setName(String name)
      Description copied from interface: Country
      sets the name of the Country
      Specified by:
      setName in interface Country
      Parameters:
      name - - e.g. "United States", "United Kingdom"
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getMainEntityName

      public String getMainEntityName()
      Specified by:
      getMainEntityName in interface AdminMainEntity
      Returns:
      the display name of this entity for the admin screen