com.ibm.commerce.user.beans

Class CountryListDataBean

  • All Implemented Interfaces:
    DataBean, InputDataBean, SmartDataBean, com.ibm.commerce.user.beans.CountryListInputDataBean, com.ibm.commerce.user.beans.CountryListSmartDataBean, java.io.Serializable


    public class CountryListDataBean
    extends SmartDataBeanImpl
    implements com.ibm.commerce.user.beans.CountryListInputDataBean, com.ibm.commerce.user.beans.CountryListSmartDataBean
    This databean provides a list of all countries or regions. This databean gets the language Id from commandContext, then uses this languageId to get the corresponding country or region names of this particular language. The getCountryList method returns a two dimension String array which contains the abbreviation and name of all countries or regions in the COUNTRY table.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • CLASSNAME

        public static final java.lang.String CLASSNAME
        The full qualified name of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CountryListDataBean

        public CountryListDataBean()
    • Method Detail

      • getCountryList

        public java.lang.String[][] getCountryList()
        Returns a two dimension String array which contains the abbreviation and name of all countries or regions in the COUNTRY table. First column: COUNTRY Abbreviation (COUNTRY Table) Second column: COUNTRY Name (COUNTRY Table)
        Specified by:
        getCountryList in interface com.ibm.commerce.user.beans.CountryListSmartDataBean
        Returns:
        String[][] A two dimension String array which contains the abbreviation and name of all countries or regions in COUNTRY table.
      • populate

        public void populate()
                      throws java.lang.Exception
        Fetches and populates information needed by the bean.
        Specified by:
        populate in interface SmartDataBean
        Overrides:
        populate in class SmartDataBeanImpl
        Throws:
        java.lang.Exception - Any exception thrown during populating.