com.ibm.commerce.tools.epromotion.databeans

Class RLDiscountListBaseBean

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RLDiscountListBaseBean

        public RLDiscountListBaseBean()
        DiscountCalculationCodeList constructor.
    • Method Detail

      • getCalcode_Id

        public java.lang.String getCalcode_Id(int index)
        Gets the CALCODE ID.
        Parameters:
        index - the index of discount record in the table
        Returns:
        ID of calculation code, also is the ID of the discount object.
      • getCheckBoxName

        public java.lang.String getCheckBoxName(int index)
        Gets the check box name in each row.
        Specified by:
        getCheckBoxName in interface SimpleDynamicListBean
        Parameters:
        index - The check box index.
        Returns:
        The name of check box in each Row by given index.
      • getCode

        public java.lang.String getCode(int index)
        Gets the name of the discount.
        Parameters:
        index - The index of the Array of the discounts.
        Returns:
        The name of the discount.
      • getColumns

        public java.lang.String[] getColumns(int i)
        Gets the values for the columns in the list.
        Specified by:
        getColumns in interface SimpleDynamicListBean
        Parameters:
        i - The index of the Array of the discounts.
        Returns:
        String Array of the Discount properties, which will be represented in one column.
      • getCOPYRIGHT

        public static final java.lang.String getCOPYRIGHT()
        Gets COPYRIGHT string Creation date: (4/17/01 7:42:44 PM)
        Returns:
        The copyright.
      • getDefaultAction

        public java.lang.String getDefaultAction(int i)
        Gets default action
        Specified by:
        getDefaultAction in interface SimpleDynamicListBean
        Parameters:
        i - The index of the Array of the discounts.
        Returns:
        NONE in this case
      • getDescription

        public java.lang.String getDescription(int index)
        Gets administrator's description for the discount associated by index i
        Parameters:
        index - of the Array of the discounts.
        Returns:
        administrator's description for the discount associated by index i.
      • getDisplayLevelFlag

        public abstract java.lang.Integer getDisplayLevelFlag()
        Gets the display level flag.
        Returns:
        The display level flag.
      • getEndDate

        public java.lang.String getEndDate(int index)
        Gets the end date of the current discount
        Parameters:
        index - of the Array of the discounts.
        Returns:
        The end date of the current discount availability.
      • getHeadings

        public java.lang.String[][] getHeadings()
        Gets the column headings for the discount list
        Specified by:
        getHeadings in interface SimpleDynamicListBean
        Returns:
        HTML table heading
      • getLength

        public int getLength()
        Gets the length
        Returns:
        The length.
      • getListSize

        public int getListSize()
        Gets the discount list size
        Specified by:
        getListSize in interface SimpleDynamicListBean
        Returns:
        the size of discount list found
      • getOrderBy

        public java.lang.String getOrderBy()
        Gets the orderby string on which the list has to be sorted.
        Returns:
        the property name, which used to sort the list records.
      • getParm

        public java.lang.String getParm(java.lang.String para)
        Gets the internal parameter name associated with the parameter passed.
        Specified by:
        getParm in interface SimpleDynamicListBean
        Parameters:
        para - parameter name passed by GUI.
        Returns:
        The internal parameter name associated with the parameter passed.
      • getPromotionRowList

        public RLPromotionListRow[] getPromotionRowList()
        Gets the chosen row of the discount list.
        Returns:
        The chosen row of the discount list.
      • getPublished

        public java.lang.String getPublished(int index)
        Gets the status of the discount.
        Parameters:
        index - The index of the array of discount
        Returns:
        the discount status
      • getStartDate

        public java.lang.String getStartDate(int index)
        Gets the start date of discount.
        Parameters:
        index - The index of the Array of the discounts.
        Returns:
        start date of the discount availability.
      • getPriority

        public java.lang.String getPriority(int index)
        Gets the priority of discount
        Parameters:
        index - The index of the Array of the discounts.
        Returns:
        priority of the discount.
      • getUserJSfnc

        public java.lang.String getUserJSfnc()
        Gets user defined JavaScript function
        Returns:
        User defined JavaScript functions
      • getUserJSfnc

        public java.lang.String getUserJSfnc(java.util.Hashtable nlsFile)
        Gets user defined NLS specific JavaScript function
        Specified by:
        getUserJSfnc in interface SimpleDynamicListBean
        Parameters:
        nlsFile - National Languages profile object
        Returns:
        User defined JavaScript functions
      • populate

        public void populate()
                      throws java.lang.Exception
        Loads data into the databean when the DataBeanmanager.activate() runs.
        Specified by:
        populate in interface SmartDataBean
        Overrides:
        populate in class SmartDataBeanImpl
        Throws:
        java.lang.Exception - There might be some SQL exception when querying database.
      • setLength

        public void setLength(int newLength)
        sets the value of the length.
        Parameters:
        newLength - The value of the length.
      • setOrderBy

        public void setOrderBy(java.lang.String newOrderBy)
        Sets the value of OrderBy.
        Parameters:
        newOrderBy - The value of the OrderBy.
      • setParm

        public void setParm(java.lang.String para,
                            java.lang.String value)
        Sets the value of Parameter.
        Specified by:
        setParm in interface SimpleDynamicListBean
        Parameters:
        para - parameter name
        value - parameter value
      • setPromotionRowList

        public void setPromotionRowList(RLPromotionListRow[] newRLPromotionRowList)
        Sets the value of DiscountRowList.
        Parameters:
        newRLPromotionRowList - The value of the DiscountRowList.
      • getGroupName

        public java.lang.String getGroupName()
        Returns the promotion group name.
        Returns:
        The promotion group name.
      • setGroupName

        public void setGroupName(java.lang.String string)
        Sets the promotion group name
        Parameters:
        string - The promotion group name.
      • setFilterCMCPromotions

        public void setFilterCMCPromotions(boolean aValue)
        Sets the flag of whether CMC managed promotions should be filtered out or not. This value should be set before the populate() method is called.
        Parameters:
        aValue - true or false
      • getFilterCMCPromotions

        public boolean getFilterCMCPromotions()
        Gets the flag of whether CMC managed promotions should be filtered out or not.
        Returns:
        true or false.