com.ibm.commerce.tools.epromotion.databeans

Class RLDiscountDataBean

    • Field Detail

      • COPYRIGHT

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

      • RLDiscountDataBean

        public RLDiscountDataBean()
        The default RLDiscountDataBean constructor.
    • Method Detail

      • getAllGroups

        public boolean getAllGroups()
        Gets the boolean value of whether or not the discount is valid for all. true : if the discount is valid to all groups. false : if the discount is valid for some customer groups.
        Returns:
        True if the discount is valid for all the groups.
      • getAssignedSegments

        public java.lang.String[] getAssignedSegments()
        Returns the list of MemberGroups for which this discount is valid.
        Returns:
        The list of MemberGroups for which this discount is valid.
      • getCalcodeId

        public java.lang.String getCalcodeId()
        Returns the CalCodeId assigned for this discount.
        Returns:
        The CalCodeId assigned for this discount.
      • getRlCurrency

        public java.lang.String getRlCurrency()
        Returns the currency specified for the store.
        Returns:
        The currency specified for the store.
      • getRlDateRanged

        public boolean getRlDateRanged()
        This returns whether or not the date is ranged.
        Returns:
        True if the date is ranged.
      • getRlDaysInWeek

        public java.lang.String[] getRlDaysInWeek()
        Returns the list of days, the discount is applicable for.
        Returns:
        The list of days in a week this discount is applicable for.
      • getRlDescription

        public java.lang.String getRlDescription()
        Gets the non-translatable description of the discount.
        Returns:
        The non-translatable description of the discount.
      • getRlDescriptionNL

        public java.lang.String getRlDescriptionNL()
        Gets the translatable description of the discount.
        Returns:
        The translatable description of the discount.
      • getRlDiscountItemQty

        public java.lang.String getRlDiscountItemQty()
        Returns the quantity of the discounted items.
        Returns:
        The quantity of the discounted items.
      • getRlDiscountItemSku

        public java.lang.String getRlDiscountItemSku()
        Returns the SKU of the discounted items.
        Returns:
        The SKU of the discounted items.
      • getRlEndDay

        public java.lang.String getRlEndDay()
        Returns the day when the discount ends.
        Returns:
        The day when the discount ends.
      • getRlEndHour

        public java.lang.String getRlEndHour()
        Returns the time when the discount ends.
        Returns:
        The time when the discount ends.
      • getRlEndMonth

        public java.lang.String getRlEndMonth()
        Returns the month when the discount ends.
        Returns:
        The month when the discount ends.
      • getRlEndYear

        public java.lang.String getRlEndYear()
        Returns the year when the discount ends.
        Returns:
        The year when the discount ends.
      • getRlInCombinationWith

        public boolean getRlInCombinationWith()
        Returns whether or not this discount can be combined with other discounts.
        Returns:
        True if this discount can be combined with other discounts.
      • getRlIsEveryDayFlag

        public boolean getRlIsEveryDayFlag()
        Indicated whether or not this discount is valid through the week.
        Returns:
        True if this discount is valid through the whole week.
      • getRlLongDescriptionNL

        public java.lang.String getRlLongDescriptionNL()
        Returns the translatable long description of the discount.
        Returns:
        The translatable long description of the discount.
      • getRlName

        public java.lang.String getRlName()
        Returns Name of the Discount.
        Returns:
        The name of the Discount.
      • getRlPriority

        public java.lang.String getRlPriority()
        Returns Discount Priority.
        Returns:
        The discount's priority.
      • getRlPromotionGWPCatEntryID

        public java.lang.String getRlPromotionGWPCatEntryID()
        Returns the Catentry ID of the free gift SKU.
        Returns:
        The Catentry ID of the free gift SKU.
      • getRlPromotionType

        public java.lang.String getRlPromotionType()
        Returns Discount Type.
        Returns:
        The discount's type.
      • getRlRanges

        public java.lang.String[] getRlRanges()
        Returns the list of ranges defined to qualify for the discount.
        Returns:
        The list of ranges defined to qualify for the discount.
      • getRlRequiredQty

        public java.lang.String getRlRequiredQty()
        Returns the Minimum Quantity that needs to be purchased to qualify for the discount.
        Returns:
        The minimum quantity that needs to be purchased to qualify for the discount.
      • getRlShipModeId

        public java.lang.String getRlShipModeId()
        Returns the Shipping Mode associated with this Discount.
        Returns:
        The shipping mode associated with this discount.
      • getRlStartDay

        public java.lang.String getRlStartDay()
        Returns the day on which this discount starts.
        Returns:
        The day on which this discount starts.
      • getRlStartHour

        public java.lang.String getRlStartHour()
        Returns the hour from which this discount gets active.
        Returns:
        The hour from which this discount gets active.
      • getRlStartMonth

        public java.lang.String getRlStartMonth()
        Returns the month from which this discount gets active.
        Returns:
        The month from which this discount gets active.
      • getRlStartYear

        public java.lang.String getRlStartYear()
        Returns the year from which this discount gets active.
        Returns:
        The year from which this discount gets active.
      • getRlTargetSales

        public java.lang.String getRlTargetSales()
        Returns the target sales amount for this discount.
        Returns:
        The target sales amount for this discount.
      • getRlValues

        public java.lang.String[] getRlValues()
        Returns the discount values corresponding to the discount ranges.
        Returns:
        The discount values corresponding to the discount ranges.
      • getRuleXML

        public java.lang.String getRuleXML()
        Returns the Rule XML from the RLDISCOUNT table.
        Returns:
        The Rule XML from the RLDISCOUNT table.
      • getStartDate

        public java.lang.String getStartDate()
        Returns the date from which the discount is active.
        Returns:
        The date from which the discount is active.
      • getValidForAllCustomers

        public boolean getValidForAllCustomers()
        Returns whether or not the discount is valid for all customer groups.
        Returns:
        True if the discount is valid for all the customer groups.
      • populate

        public void populate()
                      throws java.lang.Exception
        This method is called to populate the attributes of this DataBean.
        Specified by:
        populate in interface SmartDataBean
        Overrides:
        populate in class SmartDataBeanImpl
        Throws:
        There - might be some XML parsing exception when reading object from XML.
        java.lang.Exception - This method should never be thrown because there is no data retrieved to populate the data bean.
      • setAllGroups

        public void setAllGroups(boolean newAllGroups)
        Indicates whether the discount is valid for all customer groups.
        Parameters:
        newAllGroups - boolean
      • setAssignedSegments

        public void setAssignedSegments(java.lang.String[] newAssignedSegments)
        Stores the list of member groups assigned to this discount.
        Parameters:
        the - list of member groups assigned to this discount.
      • setCalcodeId

        public void setCalcodeId(java.lang.String newCalcodeId)
        The CALCODE_ID from the calcode table , which stores the details of the calculation to be performed.
        Parameters:
        The - String type of CALCODE_ID.
      • setFlag

        public void setFlag(boolean newFlag)
        Reserved for IBM internal use.
        Parameters:
        newFlag - boolean
      • setRlCurrency

        public void setRlCurrency(java.lang.String newRlCurrency)
        Sets the currency which can be used with this discount type.
        Parameters:
        The - currency which can be used with this discount type.
      • setRlDateRanged

        public void setRlDateRanged(boolean newRlDateRanged)
        This Field indicates whether the date is ranged or not.
        Parameters:
        newRlDateRanged - boolean
      • setRlDaysInWeek

        public void setRlDaysInWeek(java.lang.String[] newRlDaysInWeek)
        This Field stores the list of day in a week for which the discount is valid.
        Parameters:
        The - list of days in a week.
      • setRlDescription

        public void setRlDescription(java.lang.String newRlDescription)
        This field stores the non translatable description for the discount.
        Parameters:
        The - non-translatable description for the discount.
      • setRlDescriptionNL

        public void setRlDescriptionNL(java.lang.String newRlDescriptionNL)
        This field stores the translatable description for the discount.
        Parameters:
        The - translatable description for the discount.
      • setRlDiscountItemQty

        public void setRlDiscountItemQty(java.lang.String newRlDiscountItemQty)
        This field stores quantity of the discounted items.
        Parameters:
        The - quantity of the discounted items.
      • setRlDiscountItemSku

        public void setRlDiscountItemSku(java.lang.String newRlDiscountItemSku)
        This field stores SKU of the discounted items.
        Parameters:
        The - SKU of the discounted item.
      • setRlEndDay

        public void setRlEndDay(java.lang.String newRlEndDay)
        This method sets the day when the discount ends.
        Parameters:
        The - day when the discount ends.
      • setRlEndHour

        public void setRlEndHour(java.lang.String newRlEndHour)
        This method sets the hour when the discount expires.
        Parameters:
        The - hour when the discount expires.
      • setRlEndMonth

        public void setRlEndMonth(java.lang.String newRlEndMonth)
        This method sets the month when the discount will expire.
        Parameters:
        The - month when the discount will expire.
      • setRlEndYear

        public void setRlEndYear(java.lang.String newRlEndYear)
        This method sets the year when the discount will expire.
        Parameters:
        The - year when the discount will expire.
      • setRlInCombinationWith

        public void setRlInCombinationWith(boolean newRlInCombinationWith)
        This method sets whether the discount is valid in combination with other defined discounts.
        Parameters:
        newRlInCombinationWith - boolean
      • setRlIsEveryDayFlag

        public void setRlIsEveryDayFlag(boolean newRlIsEveryDayFlag)
        This method sets whether the discount is valid all through the week.
        Parameters:
        newRlIsEveryDayFlag - boolean
      • setRlLongDescriptionNL

        public void setRlLongDescriptionNL(java.lang.String newRlLongDescriptionNL)
        Sets translatable long description of the discount.
        Parameters:
        The - translatable long description of the discount.
      • setRlName

        public void setRlName(java.lang.String newRlName)
        This field stores the name of the discount.
        Parameters:
        The - name of the discount.
      • setRlPriority

        public void setRlPriority(java.lang.String newRlPriority)
        This field stores the discount priority.
        Parameters:
        The - discount priority.
      • setRlPromotionGWPCatEntryID

        public void setRlPromotionGWPCatEntryID(java.lang.String newRlPromotionGWPCatEntryID)
        Sets the catentry_id of the free gift SKU.
        Parameters:
        The - catentry_id of the free gift SKU.
      • setRlPromotionType

        public void setRlPromotionType(java.lang.String newRlPromotionType)
        This field stores the discount type.
        Parameters:
        The - discount type.
      • setRlRanges

        public void setRlRanges(java.lang.String[] newRlRanges)
        This field stores the quantity ranges for which the discount can be applied.
        Parameters:
        The - quantity ranges for which the discount can be applied.
      • setRlRequiredQty

        public void setRlRequiredQty(java.lang.String newRlRequiredQty)
        This field stores the quantity that need to be purchased to qualify for the discount.
        Parameters:
        The - quantity that need to be purchased to qualify for the discount.
      • setRlShipModeId

        public void setRlShipModeId(java.lang.String newRlShipModeId)
        This field stores the shipping mode for which the discount has been defined.
        Parameters:
        The - shipping mode for which the discount has been defined.
      • setRlStartDay

        public void setRlStartDay(java.lang.String newRlStartDay)
        This method sets the day from which the discount is active.
        Parameters:
        The - day from which the discount is active.
      • setRlStartHour

        public void setRlStartHour(java.lang.String newRlStartHour)
        This method will store the hour from which the discount is active.
        Parameters:
        The - hour from which the discount is active.
      • setRlStartMonth

        public void setRlStartMonth(java.lang.String newRlStartMonth)
        This method sets the month from which the discount is active.
        Parameters:
        The - month from which the discount is active.
      • setRlStartYear

        public void setRlStartYear(java.lang.String newRlStartYear)
        This method stores the year from which the discount is active.
        Parameters:
        The - year from which the discount is active.
      • setRlTargetSales

        public void setRlTargetSales(java.lang.String newRlTargetSales)
        This method stores the target sales assigned for this discount.
        Parameters:
        The - target sales assigned for this discount.
      • setRlValues

        public void setRlValues(java.lang.String[] newRlValues)
        This method stores the discount value mentioned for each discount range mentioned.
        Parameters:
        The - discount value mentioned for each discount range mentioned.
      • setRuleXML

        public void setRuleXML(java.lang.String newRuleXML)
        This field stores the entire discount data as a rule XML.
        Parameters:
        The - entire discount data as a rule XML.
      • setStartDate

        public void setStartDate(java.lang.String newStartDate)
        This field stores the date from which the discount is active.
        Parameters:
        The - date from which the discount is active.
      • setValidForAllCustomers

        public void setValidForAllCustomers(boolean newValidForAllCustomers)
        This field stores whether the discount is valid for all customer segments or targets to specific customer segments.
        Parameters:
        True - if the discount is valid for all customer segments.
      • getRlTimeRanged

        public boolean getRlTimeRanged()
        Gets the rlTimeRanged. This field tells whether a start time and end time has been specified.
        Returns:
        True if the start time and end time has been specified.
      • setRlTimeRanged

        public void setRlTimeRanged(boolean newRlTimeRanged)
        Sets the rlTimeRanged. This field tells whether a start time and end time has been specified.
        Parameters:
        True - if the start time and end time has been specified. Otherwise, false.