com.ibm.commerce.tools.epromotion.databeans

Class RLProductDiscountDataBean

    • Field Detail

      • COPYRIGHT

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

      • RLProductDiscountDataBean

        public RLProductDiscountDataBean()
        RLProductDiscountDataBean constructor.
    • Method Detail

      • getAssignedSegments

        public java.lang.String[] getAssignedSegments()
        Returns the list of Member Groups to which the discount is assigned.
        Returns:
        The list of Member Groups to which the discount is assigned.
      • getCalcodeId

        public java.lang.String getCalcodeId()
        Returns the CALCODE ID associated with this discount.
        Returns:
        The CALCODE ID associated with this discount.
      • getRlCurrency

        public java.lang.String getRlCurrency()
        Returns the Default Currency for this discount.
        Returns:
        The Default Currency for this discount.
      • getRlDateRanged

        public boolean getRlDateRanged()
        Indicates whether the Date is ranged.
        Returns:
        True if the date is ranged.
      • getRlDaysInWeek

        public java.lang.String[] getRlDaysInWeek()
        Returns the list of days in a week during when the discount is valid.
        Returns:
        The list of days in a week during when the discount is valid.
      • getRlDescription

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

        public java.lang.String getRlDescriptionNL()
        Returns the translated Description of the discount.
        Returns:
        The translated Description of the discount.
      • getRlDiscountItemQty

        public java.lang.String getRlDiscountItemQty()
        Returns the quantity of the discounted item that will be given free with the purchase.
        Returns:
        The quantity of the discounted item that will be given free with the purchase.
      • getRlDiscountItemSku

        public java.lang.String getRlDiscountItemSku()
        Returns SKU of the item that will be given free with purchase.
        Returns:
        The SKU of the item that will be given free with purchase.
      • getRlDiscountPercentage

        public java.lang.String getRlDiscountPercentage()
        Returns the percentage of discount that will be offered if purchase qualifies for discount.
        Returns:
        The percentage of discount that will be offered if purchase qualifies for discount.
      • getRlEndDay

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

        public java.lang.String getRlEndHour()
        Returns the Hour when the discount will get inactive.
        Returns:
        The Hour when the discount will get inactive.
      • getRlEndMonth

        public java.lang.String getRlEndMonth()
        Returns the Month when the discount will get inactive.
        Returns:
        The Month when the discount will get inactive.
      • getRlEndYear

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

        public boolean getRlInCombinationWith()
        Indicates whether or not this discount can be combined with other discount for the same purchase.
        Returns:
        True if this discount can be combined with other discount for the same purchase.
      • getRlIsEveryDayFlag

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

        public java.lang.String getRlLongDescriptionNL()
        Returns translated long description.
        Returns:
        The translated long description.
      • getRlMaxDiscountItemQty

        public java.lang.String getRlMaxDiscountItemQty()
        Returns the maximum quantity of the discounted item that can be given free with purchase.
        Returns:
        The maximum quantity of the discounted item that can be given free with purchase.
      • getRlName

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

        public java.lang.String getRlPriority()
        Returns the discount priority. As discount will be chosen for a purchase based on the priority.
        Returns:
        The discount priority
      • getRlProductSku

        public java.util.Vector getRlProductSku()
        Returns the SKU of the item for which the promotion is created. If all the SKUs are deleted after promotion creation, return null.
        Returns:
        The SKU of the item for which the promotion is created.
      • getRlProdXSku

        public java.lang.String getRlProdXSku()
        Returns the product SKU (in same item free discount type).
        Returns:
        The product SKU (in same item free discount type).
      • getRlPromotionCatEntryID

        public java.util.Vector getRlPromotionCatEntryID()
        Returns the CATENTRY ID of the product on discount.
        Returns:
        The catalog entry IDs of the product on discount.
      • getRlPromotionCatEntryType

        public java.lang.String getRlPromotionCatEntryType()
        Returns the type of the CATENTRY which is being promoted.
        Returns:
        The type of the CATENTRY which is being promoted.
      • 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 the type of the promotion.
        Returns:
        The type of the promotion.
      • getRlRanges

        public java.lang.String[] getRlRanges()
        Returns quantity range to qualify for this discount.
        Returns:
        The quantity range to qualify for this discount.
      • getRlRequiredQty

        public java.lang.String getRlRequiredQty()
        Returns the quantity required to be purchased to qualify for the discount.
        Returns:
        The quantity required to be purchased to qualify for the discount.
      • getRlStartDay

        public java.lang.String getRlStartDay()
        Returns the day from which the discount gets active.
        Returns:
        The day from which the discount gets active.
      • getRlStartHour

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

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

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

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

        public java.lang.String getRlValue()
        Returns the discount range value.
        Returns:
        The discount range value.
      • getRlValues

        public java.lang.String[] getRlValues()
        Returns the discount values for the discount ranges created.
        Returns:
        The discount values for the discount ranges created.
      • 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 becomes active.
        Returns:
        The date from which the discount becomes active.
      • getValidForAllCustomers

        public boolean getValidForAllCustomers()
        Returns whether the discount is valid for all customers.
        Returns:
        True if the discount is valid for all customers.
      • 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:
        ECException - The exception might be thrown when querying database.
        java.lang.Exception - This method should never be thrown because there is no data retrieved to populate the data bean.
      • setAssignedSegments

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

        public void setCalcodeId(java.lang.String newCalcodeId)
        Stores the CALCODE ID.
        Parameters:
        The - CALCODE ID.
      • setFlag

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

        public void setRlCurrency(java.lang.String newRlCurrency)
        Stores the default currency for the discount.
        Parameters:
        The - default currency for the discount.
      • setRlDateRanged

        public void setRlDateRanged(boolean newRlDateRanged)
        Stores whether or not the date is ranged.
        Parameters:
        boolean - value if the date is ranged.
      • setRlDaysInWeek

        public void setRlDaysInWeek(java.lang.String[] newRlDaysInWeek)
        Stores Days of Week.
        Parameters:
        The - days of week.
      • setRlDescription

        public void setRlDescription(java.lang.String newRlDescription)
        Stores the description of the discount.
        Parameters:
        The - description of the discount.
      • setRlDescriptionNL

        public void setRlDescriptionNL(java.lang.String newRlDescriptionNL)
        Stores the translated description of the discount.
        Parameters:
        The - translated description of the discount.
      • setRlDiscountItemQty

        public void setRlDiscountItemQty(java.lang.String newRlDiscountItemQty)
        Stores the quantity of the discounted item.
        Parameters:
        The - quantity of the discounted item.
      • setRlDiscountItemSku

        public void setRlDiscountItemSku(java.lang.String newRlDiscountItemSku)
        Stores the SKU number of the discounted item.
        Parameters:
        The - SKU number of the discounted item.
      • setRlDiscountPercentage

        public void setRlDiscountPercentage(java.lang.String newRlDiscountPercentage)
        Stores the percentage of discount offered for the discounted SKU.
        Parameters:
        The - percentage of discount offered for the discounted SKU.
      • setRlEndDay

        public void setRlEndDay(java.lang.String newRlEndDay)
        Stores the day when the discount will expire.
        Parameters:
        The - day when the discount will expire.
      • setRlEndHour

        public void setRlEndHour(java.lang.String newRlEndHour)
        Stores the hour of the day when the discount will expire.
        Parameters:
        The - hour of the day when the discount will expire.
      • setRlEndMonth

        public void setRlEndMonth(java.lang.String newRlEndMonth)
        Stores the month of the year when the discount will expire.
        Parameters:
        The - month of the year when the discount will expire.
      • setRlEndYear

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

        public void setRlInCombinationWith(boolean newRlInCombinationWith)
        Stores whether or not the discount can be combined with other discounts.
        Parameters:
        True - if the discount can be combined with other discounts, otherwise false.
      • setRlIsEveryDayFlag

        public void setRlIsEveryDayFlag(boolean newRlIsEveryDayFlag)
        Stores whether or not the discount is valid for all day through the week.
        Parameters:
        boolean - value indicates whether or not the discount is valid for all day through the week.
      • setRlLongDescriptionNL

        public void setRlLongDescriptionNL(java.lang.String newRlLongDescriptionNL)
        stores the translated long description
        Parameters:
        The - translated long description.
      • setRlMaxDiscountItemQty

        public void setRlMaxDiscountItemQty(java.lang.String newRlMaxDiscountItemQty)
        Stores the maximum quantity of the discounted item that can be given.
        Parameters:
        The - maximum quantity of the discounted item that can be given.
      • setRlName

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

        public void setRlPriority(java.lang.String newRlPriority)
        Stores the discount priority based in which it will be selected.
        Parameters:
        The - discount priority based in which it will be selected.
      • setRlProductSku

        public void setRlProductSku(java.util.Vector newRlProductSku)
        Stores the SKU of the product.
        Parameters:
        The - SKU of the product.
      • setRlProdXSku

        public void setRlProdXSku(java.lang.String newRlProdXSku)
        Stores the SKU of the discounted product.
        Parameters:
        The - SKU of the discounted product.
      • setRlPromotionCatEntryID

        public void setRlPromotionCatEntryID(java.util.Vector newRlPromotionCatEntryID)
        Stores the CATENTRY ID for the promotion merchandise.
        Parameters:
        The - CATENTRY ID for the promotion merchandise.
      • setRlPromotionCatEntryType

        public void setRlPromotionCatEntryType(java.lang.String newRlPromotionCatEntryType)
        Stores the type of the merchandise.
        Parameters:
        The - type of the merchandise.
      • setRlPromotionGWPCatEntryID

        public void setRlPromotionGWPCatEntryID(java.lang.String newRlPromotionGWPCatEntryID)
        Stores the CATENTRY ID for the free gift item.
        Parameters:
        The - CATENTRY ID for the free gift item.
      • setRlPromotionType

        public void setRlPromotionType(java.lang.String newRlPromotionType)
        Stores the discount type that is created.
        Parameters:
        The - discount type that is created.
      • setRlRanges

        public void setRlRanges(java.lang.String[] newRlRanges)
        Stores the quantity ranges of items to qualify for the discount.
        Parameters:
        The - quantity ranges of items to qualify for the discount.
      • setRlRequiredQty

        public void setRlRequiredQty(java.lang.String newRlRequiredQty)
        Quantity Required to qualify for the discount.
        Parameters:
        newRlRequiredQty - java.lang.String
      • setRlStartDay

        public void setRlStartDay(java.lang.String newRlStartDay)
        Set the discount start date.
        Parameters:
        The - discount start date.
      • setRlStartHour

        public void setRlStartHour(java.lang.String newRlStartHour)
        Stores the hour of the day when the discount gets effective.
        Parameters:
        The - hour of the day when the discount gets effective.
      • setRlStartMonth

        public void setRlStartMonth(java.lang.String newRlStartMonth)
        Stores the month of the year from when the discount gets effective.
        Parameters:
        The - month of the year from when the discount gets effective.
      • setRlStartYear

        public void setRlStartYear(java.lang.String newRlStartYear)
        Stores the year from when the discount gets effective.
        Parameters:
        The - year from when the discount gets effective.
      • setRlTargetSales

        public void setRlTargetSales(java.lang.String newRlTargetSales)
        Stores the sales target for this discount.
        Parameters:
        The - sales target for this discount.
      • setRlValue

        public void setRlValue(java.lang.String newRlValue)
        Set the value of this discount.
        Parameters:
        The - value of this discount.
      • setRlValues

        public void setRlValues(java.lang.String[] newRlValues)
        Stores the discount percentage for the corresponding discount ranges.
        Parameters:
        The - discount percentage for the corresponding discount ranges.
      • setRuleXML

        public void setRuleXML(java.lang.String newRuleXML)
        Stores the Discount Rule XML.
        Parameters:
        The - Discount Rule XML.
      • setStartDate

        public void setStartDate(java.lang.String newStartDate)
        Stores the date from which the discount will get effective.
        Parameters:
        The - date from which the discount will get effective.
      • setValidForAllCustomers

        public void setValidForAllCustomers(boolean newValidForAllCustomers)
        Stores whether or not the discount is valid for all customer segments.
        Parameters:
        Set - to true if the discount is valid for all customer segments.
      • getRlTimeRanged

        public boolean getRlTimeRanged()
        Gets the rlTimeRanged. This method returns true if the time range is specified.
        Returns:
        Returns true if the time range is specified.
      • setRlTimeRanged

        public void setRlTimeRanged(boolean newRlTimeRanged)
        Sets to true if the time range is specified.
        Parameters:
        True - if the time range is specified.
      • getRlPromotionMerchandiseType

        public java.lang.String getRlPromotionMerchandiseType()
        Gets the rlPromotionMerchandiseType. This method returns ItemBean if Merchandise is Item type, ProductBean if Merchandise is Product type, Category if Merchandise is Category type.
        Returns:
        The promotion merchandise type.
      • setRlPromotionMerchandiseType

        public void setRlPromotionMerchandiseType(java.lang.String newRlPromotionMerchandiseType)
        Sets the promotion merchandise type.
        Parameters:
        The - promotion merchandise type.
      • setRlPromotionCatGroupCode

        public void setRlPromotionCatGroupCode(java.lang.String[] newRlPromotionCatGroupCode)
        Sets the CatGroup Identifiers.
        Parameters:
        The - CatGroup Identifiers.
      • setRlPromotionCatGroupID

        public void setRlPromotionCatGroupID(java.lang.String[] newRlPromotionCatGroupID)
        Sets the CatGroup IDs.
        Parameters:
        The - CatGroup IDs.
      • getRlPromotionCatGroupCode

        public java.lang.String[] getRlPromotionCatGroupCode()
        Returns an array of CatGroup Identifiers.
        Returns:
        An array of CatGroup Identifiers.
      • getRlPromotionCatGroupID

        public java.lang.String[] getRlPromotionCatGroupID()
        Returns an array of CatGroup IDs.
        Returns:
        An array of CatGroup IDs.
      • getRlProdPromoTypeAlias

        public java.lang.String getRlProdPromoTypeAlias()
        Returns the alias name for the product promotion type.
        Returns:
        the alias name for the product promotion type.
      • setRlProdPromoTypeAlias

        public void setRlProdPromoTypeAlias(java.lang.String string)
        Sets the alias name for the product promotion type.
        Parameters:
        the - alias name for the product promotion type.
      • 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.
      • getRlShipModeId

        public java.lang.String getRlShipModeId()
        Returns the Shipping Mode associated with this Discount.
        Returns:
        The Shipping Mode associated with this Discount.
      • getRlCodeRequired

        public boolean getRlCodeRequired()
        Returns true if the promotion requires a promotion code.
        Returns:
        True if the promotion requires a promotion code.
      • getRlCouponEffectiveDays

        public int getRlCouponEffectiveDays()
        Get coupon effective days.
        Returns:
        The coupon effective days.
      • getRlCouponExpirationDays

        public int getRlCouponExpirationDays()
        Get coupon expiration days.
        Returns:
        The coupon expiration days.
      • getRlExclusiveness

        public int getRlExclusiveness()
        Returns the value of promotion exclusiveness.
        Returns:
        The value of promotion exclusiveness.
      • getRlIsCoupon

        public boolean getRlIsCoupon()
        Returns true if the promotion is a coupon.
        Returns:
        True if the promotion is a coupon.
      • getRlPerOrderLimit

        public int getRlPerOrderLimit()
        Returns the promotion applicable limit per order.
        Returns:
        The promotion applicable limit per order.
      • getRlPerShopperLimit

        public int getRlPerShopperLimit()
        Returns the promotion applicable limit per customer.
        Returns:
        The promotion applicable limit per customer.
      • getRlPromotionCode

        public java.lang.String getRlPromotionCode()
        Returns the promotion code.
        Returns:
        The promotion code.
      • getRlPromotionGroupName

        public java.lang.String getRlPromotionGroupName()
        Returns the promotion group name.
        Returns:
        The promotion group name.
      • getRlPromotionVersion

        public int getRlPromotionVersion()
        Gets the promotion version.
        Returns:
        The promotion version.
      • getRlPromotionRevision

        public int getRlPromotionRevision()
        Gets the promotion revision.
        Returns:
        The promotion revision.
      • getRlStatus

        public int getRlStatus()
        Returns the promotion status.
        Returns:
        The promotion status.
      • getRlTotalLimit

        public int getRlTotalLimit()
        Returns the promotion applicable total limit.
        Returns:
        The promotion applicable total limit.
      • getRlAdjustmentType

        public int getRlAdjustmentType()
        Returns the promotion reward adjustment type.
        Returns:
        the promotion reward adjustment type.
      • setRlCodeRequired

        public void setRlCodeRequired(boolean b)
        Sets TRUE if the promotion requires a promotion code.
        Parameters:
        TRUE - if the promotion requires a promotion code.
      • setRlCouponEffectiveDays

        public void setRlCouponEffectiveDays(int i)
        Sets the number of days this coupon promotion will be effective.
        Parameters:
        the - number of days this coupon promotion will be effective.
      • setRlCouponExpirationDays

        public void setRlCouponExpirationDays(int i)
        Sets the coupon expiration days.
        Parameters:
        the - coupon expiration days.
      • setRlExclusiveness

        public void setRlExclusiveness(int i)
        Sets the value of promotion exclusiveness.
        Parameters:
        the - value of promotion exclusiveness.
      • setRlIsCoupon

        public void setRlIsCoupon(boolean b)
        Sets true if the promotion is a coupon promotion.
        Parameters:
        true - if the promotion is a coupon promotion.
      • setRlPerOrderLimit

        public void setRlPerOrderLimit(int i)
        Sets the number of limit this promotion could be applied per order.
        Parameters:
        the - number of limit this promotion could be applied per order.
      • setRlPerShopperLimit

        public void setRlPerShopperLimit(int i)
        Sets the number of limit this promotion could be applied per customer.
        Parameters:
        the - number of limit this promotion could be applied per customer.
      • setRlPromotionCode

        public void setRlPromotionCode(java.lang.String string)
        Sets the promotion code.
        Parameters:
        The - promotion code.
      • setRlPromotionGroupName

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

        public void setRlPromotionVersion(int newRlPromotionVersion)
        Sets the promotion version.
        Parameters:
        The - promotion version.
      • setRlPromotionRevision

        public void setRlPromotionRevision(int newRlPromotionRevision)
        Sets the promotion revision.
        Parameters:
        The - promotion revision.
      • setRlStatus

        public void setRlStatus(int newRlStatus)
        Sets the promotion status.
        Parameters:
        The - promotion status.
      • setRlTotalLimit

        public void setRlTotalLimit(int i)
        Sets the promotion total limits.
        Parameters:
        The - promotion total limits.
      • setRlAdjustmentType

        public void setRlAdjustmentType(int newAdjustmentType)
        Sets the promotion reward adjustment type.
        Parameters:
        The - promotion reward adjustment type.
      • getAssignedSegmentIds

        public java.lang.String[] getAssignedSegmentIds()
        Returns the list of Member Groups IDs the discount is assigned to.
        Returns:
        The list of Member Groups IDs the discount is assigned to.
      • setAssignedSegmentIds

        public void setAssignedSegmentIds(java.lang.String[] newAssignedSegmentIds)
        Stores the list of member group IDs who can use this discount.
        Parameters:
        The - list of member group IDs who can use this discount.