com.ibm.commerce.tools.epromotion.databeans
Class RLDiscountDataBean

java.lang.Object
  |
  +--com.ibm.commerce.beans.InputDataBeanImpl
        |
        +--com.ibm.commerce.beans.SmartDataBeanImpl
              |
              +--com.ibm.commerce.tools.epromotion.beansrc.RLDiscountDataBeanBase
                    |
                    +--com.ibm.commerce.tools.epromotion.databeans.RLDiscountDataBean
All Implemented Interfaces:
DataBean, InputDataBean, RLConstants, java.io.Serializable, SmartDataBean

public class RLDiscountDataBean
extends RLDiscountDataBeanBase
implements RLConstants

This DataBean is used to retrive information about OrderLevel discounts .

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          the copyright information
 
Fields inherited from class com.ibm.commerce.beans. SmartDataBeanImpl
commandContext
 
Fields inherited from class com.ibm.commerce.beans. InputDataBeanImpl
requestProperties
 
Fields inherited from interface com.ibm.commerce.tools.epromotion. RLConstants
CATEGORY_LEVEL_DISPLAY_FLAG, DISCOUNT_DEPLOYMENT, EC_CALCODE_ID, EC_CODE, EC_DESCRIPTION, EC_DISCOUNTNAME, EC_ENDDATE, EC_ORDERBY, EC_PRIORITY, EC_RANGE_MAX, EC_STARTDATE, EC_STATUS, ERROR_PROMOTION_DELETED_DUPLICATE_CODE, ERROR_PROMOTION_DUPLICATE_CODE, ERROR_PROMOTION_NOT_SAVED, ERROR_PROMOTION_NOT_UPDATED, MSG_PROMOTION_SAVED, MSG_PROMOTION_UPDATED, NEVER_EXPIRE, ORDER_LEVEL_DISPLAY_FLAG, PRODUCT_LEVEL_DISPLAY_FLAG, REST_OF_TIMESTRING, RLPROMOTION, RLPROMOTION_ASSIGNEDSEGMENTS, RLPROMOTION_CATEGORYLEVELBUYXGETYFREE, RLPROMOTION_CATEGORYLEVELPERCENTDISCOUNT, RLPROMOTION_CATEGORYLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_CATEGORYLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_CATEGORYLEVELVALUEDISCOUNT, RLPROMOTION_CATENTRY_ID, RLPROMOTION_CATENTRY_TYPE, RLPROMOTION_CATGROUP_CODE, RLPROMOTION_CATGROUP_ID, RLPROMOTION_CURRENCY, RLPROMOTION_DATERANGED, RLPROMOTION_DAYSINWEEK, RLPROMOTION_DESCRIPTION, RLPROMOTION_DESCRIPTION_LONG_NL, RLPROMOTION_DESCRIPTION_NL, RLPROMOTION_DISCOUNT_ITEM_QTY, RLPROMOTION_DISCOUNT_ITEM_SKU, RLPROMOTION_DISPLAY_LEVEL, RLPROMOTION_ENDDAY, RLPROMOTION_ENDHOUR, RLPROMOTION_ENDMONTH, RLPROMOTION_ENDYEAR, RLPROMOTION_FRIDAY, RLPROMOTION_GWP_CATENTRY_ID, RLPROMOTION_INCOMBINATIONWITH, RLPROMOTION_ISEVERYDAYFLAG, RLPROMOTION_ITEMLEVELBUYXGETYFREE, RLPROMOTION_ITEMLEVELPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_ITEMLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELVALUEDISCOUNT, RLPROMOTION_MAX_DISCOUNT_ITEM_QTY, RLPROMOTION_MERCHANDISE_TYPE, RLPROMOTION_MONDAY, RLPROMOTION_NAME, RLPROMOTION_ORDERLEVELFIXEDSHIPPINGDISCOUNT, RLPROMOTION_ORDERLEVELFREEGIFT, RLPROMOTION_ORDERLEVELPERCENTDISCOUNT, RLPROMOTION_ORDERLEVELVALUEDISCOUNT, RLPROMOTION_PRIORITY, RLPROMOTION_PROD_SEARCH_PAGE, RLPROMOTION_PRODUCT_SKU, RLPROMOTION_PRODUCTLEVELBUYXGETYFREE, RLPROMOTION_PRODUCTLEVELPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_PRODUCTLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELVALUEDISCOUNT, RLPROMOTION_RANGES, RLPROMOTION_REQUIRED_QTY, RLPROMOTION_RESOURCES, RLPROMOTION_SATURDAY, RLPROMOTION_SHIPMODEID, RLPROMOTION_STARTDAY, RLPROMOTION_STARTHOUR, RLPROMOTION_STARTMONTH, RLPROMOTION_STARTYEAR, RLPROMOTION_SUNDAY, RLPROMOTION_TARGETSALES, RLPROMOTION_THURSDAY, RLPROMOTION_TIMERANGED, RLPROMOTION_TUESDAY, RLPROMOTION_TYPE, RLPROMOTION_VALIDFORALLCUSTOMERS, RLPROMOTION_VALUE, RLPROMOTION_VALUES, RLPROMOTION_WEDNESDAY, ZERO_STRING
 
Fields inherited from interface com.ibm.commerce.beans. DataBean
emptyString
 
Constructor Summary
RLDiscountDataBean()
          The default RLDiscountDataBean constructor.
 
Method Summary
 boolean getAllGroups()
          true : if the discount is valid to all groups.
 java.lang.String[] getAssignedSegments()
          Returns the list of MemberGroups that this discount is valid for.
 java.lang.String getCalcodeId()
          Returns the CalCodeId assigned for this discount.
 java.lang.String getRlCurrency()
          Returns the currency specified for the store.
 boolean getRlDateRanged()
          This returns whether or not the date is ranged.
 java.lang.String[] getRlDaysInWeek()
          Returns the list of days, the discount is applicable for.
 java.lang.String getRlDescription()
          Get the non translatable description of the discount.
 java.lang.String getRlDescriptionNL()
          Get the translatable description of the discount.
 java.lang.String getRlDiscountItemQty()
          Returns the quantity of the discounted items.
 java.lang.String getRlDiscountItemSku()
          Returns the SKU of the discounted items.
 java.lang.String getRlEndDay()
          Returns the day when the discount ends.
 java.lang.String getRlEndHour()
          Returns the time when the discount ends.
 java.lang.String getRlEndMonth()
          Returns the month when the discount ends.
 java.lang.String getRlEndYear()
          Returns the year when the discount ends.
 boolean getRlInCombinationWith()
          Returns whether or not this discount can be combined with other discounts.
 boolean getRlIsEveryDayFlag()
          Indicated whether or not this discount is valid through the week.
 java.lang.String getRlLongDescriptionNL()
          returns the translatable long description of the discount.
 java.lang.String getRlName()
          Returns Name of the Discount
 java.lang.String getRlPriority()
          Returns Discount Priority.
 java.lang.String getRlPromotionGWPCatEntryID()
          Returns the Catentry ID of the free gift SKU
 java.lang.String getRlPromotionType()
          Returns Discount Type.
 java.lang.String[] getRlRanges()
          Returns the List of ranges defined to qualify for the discount.
 java.lang.String getRlRequiredQty()
          Returns the Minimum Quantity that needs to be purchased to qualify for the discount.
 java.lang.String getRlShipModeId()
          Returns the Shipping Mode associated with this Discount.
 java.lang.String getRlStartDay()
          Returns the day from which this discount get active.
 java.lang.String getRlStartHour()
          Returns the hour from which this discount gets active.
 java.lang.String getRlStartMonth()
          Returns the month from which this discount gets active.
 java.lang.String getRlStartYear()
          Returns the year from which this discount get active.
 java.lang.String getRlTargetSales()
          Returns the target sales amount for this discount.
 boolean getRlTimeRanged()
          Gets the rlTimeRanged.
 java.lang.String[] getRlValues()
          Returns Discount values corresponding to the discount ranges.
 java.lang.String getRuleXML()
          Returns the Rule XML from the RLDISCOUNT Database
 java.lang.String getStartDate()
          Returns the date from which the disount is active.
 boolean getValidForAllCustomers()
          Returns whether or not the discount is valid for all customer groups.
 void populate()
          This method is called to populate the attributes of this DataBean .
 void setAllGroups(boolean newAllGroups)
          Indicates whether the discount is valid for all customer groups.
 void setAssignedSegments(java.lang.String[] newAssignedSegments)
          Stores the list of Member groups eligible for the discount.
 void setCalcodeId(java.lang.String newCalcodeId)
          CALCODE_ID from the CalCode table , which stores the details of the calculation to be performed.
 void setFlag(boolean newFlag)
          Internal Use
 void setRlCurrency(java.lang.String newRlCurrency)
          Currency which can be used with this discount type.
 void setRlDateRanged(boolean newRlDateRanged)
          This Field indicates whether the date is ranged or not.
 void setRlDaysInWeek(java.lang.String[] newRlDaysInWeek)
          This Field stores the list of day in a week for which the discount is valid.
 void setRlDescription(java.lang.String newRlDescription)
          This field stores the non translatable description for the discount.
 void setRlDescriptionNL(java.lang.String newRlDescriptionNL)
          This field store the translatabel description for the discount.
 void setRlDiscountItemQty(java.lang.String newRlDiscountItemQty)
          This field stores quantity of the discounted items.
 void setRlDiscountItemSku(java.lang.String newRlDiscountItemSku)
          This field stores SKU of the discounted items.
 void setRlEndDay(java.lang.String newRlEndDay)
          This field stores the day when the discount ends
 void setRlEndHour(java.lang.String newRlEndHour)
          this field stores the hour when the discount expires.
 void setRlEndMonth(java.lang.String newRlEndMonth)
          This field stores the month when the discount will expire.
 void setRlEndYear(java.lang.String newRlEndYear)
          This field stores the year when the discount will expire.
 void setRlInCombinationWith(boolean newRlInCombinationWith)
          This field store whether the discount is valid in combination with other discount defined.
 void setRlIsEveryDayFlag(boolean newRlIsEveryDayFlag)
          This field stores whether the discount is valid all through the week.
 void setRlLongDescriptionNL(java.lang.String newRlLongDescriptionNL)
          Sets translatable long description of the discount
 void setRlName(java.lang.String newRlName)
          This field stores the Name of the discount.
 void setRlPriority(java.lang.String newRlPriority)
          This field stores the discount priority
 void setRlPromotionGWPCatEntryID(java.lang.String newRlPromotionGWPCatEntryID)
          Sets the catentry ID of the free gift SKU
 void setRlPromotionType(java.lang.String newRlPromotionType)
          This field stores the discount type.
 void setRlRanges(java.lang.String[] newRlRanges)
          This field stores the quantity ranges for which the discount can be applied.
 void setRlRequiredQty(java.lang.String newRlRequiredQty)
          This field stores the quantity that need to be purchased to qualify for the discount.
 void setRlShipModeId(java.lang.String newRlShipModeId)
          This field stores the shipping mode for which the discount has been defined.
 void setRlStartDay(java.lang.String newRlStartDay)
          This field stores the Day from which the discount gets effective.
 void setRlStartHour(java.lang.String newRlStartHour)
          This field will store the hour from which the discount get effective.
 void setRlStartMonth(java.lang.String newRlStartMonth)
          This field stores the month from which the discount gets effective.
 void setRlStartYear(java.lang.String newRlStartYear)
          This field stores the year from which the discount get effective/active.
 void setRlTargetSales(java.lang.String newRlTargetSales)
          This field stores the target sales assigned for this discount.
 void setRlTimeRanged(boolean newRlTimeRanged)
          Sets the rlTimeRanged.
 void setRlValues(java.lang.String[] newRlValues)
          this field stores the discount value mentioned for each discount range mentioned.
 void setRuleXML(java.lang.String newRuleXML)
          This field stores the entire discount data as a rule XML.
 void setStartDate(java.lang.String newStartDate)
          This field stores the date from which the discount gets active/effective.
 void setValidForAllCustomers(boolean newValidForAllCustomers)
          This field stores whehter the discount is valid for all customer groups / to specific customer groups.
 
Methods inherited from class com.ibm.commerce.tools.epromotion.beansrc. RLDiscountDataBeanBase
getDelegate, getOwner
 
Methods inherited from class com.ibm.commerce.beans. SmartDataBeanImpl
fulfills, getCommandContext, getResources, setCommandContext
 
Methods inherited from class com.ibm.commerce.beans. InputDataBeanImpl
getRequestProperties, setRequestProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.beans. InputDataBean
getRequestProperties, setRequestProperties
 

Field Detail
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()
true : if the discount is valid to all groups. false : if the discount is valid for some customer groups.
Returns:
boolean

getAssignedSegments

public java.lang.String[] getAssignedSegments()
Returns the list of MemberGroups that this discount is valid for.
Returns:
java.util.Vector

getCalcodeId

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

getRlCurrency

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

getRlDateRanged

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

getRlDaysInWeek

public java.lang.String[] getRlDaysInWeek()
Returns the list of days, the discount is applicable for.
Returns:
java.util.Vector

getRlDescription

public java.lang.String getRlDescription()
Get the non translatable description of the discount.
Returns:
java.lang.String

getRlDescriptionNL

public java.lang.String getRlDescriptionNL()
Get the translatable description of the discount.
Returns:
java.lang.String

getRlDiscountItemQty

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

getRlDiscountItemSku

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

getRlEndDay

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

getRlEndHour

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

getRlEndMonth

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

getRlEndYear

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

getRlInCombinationWith

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

getRlIsEveryDayFlag

public boolean getRlIsEveryDayFlag()
Indicated whether or not this discount is valid through the week.
Returns:
boolean

getRlLongDescriptionNL

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

getRlName

public java.lang.String getRlName()
Returns Name of the Discount
Returns:
java.lang.String

getRlPriority

public java.lang.String getRlPriority()
Returns Discount Priority.
Returns:
java.lang.String

getRlPromotionGWPCatEntryID

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

getRlPromotionType

public java.lang.String getRlPromotionType()
Returns Discount Type.
Returns:
java.lang.String

getRlRanges

public java.lang.String[] getRlRanges()
Returns the List of ranges defined to qualify for the discount.
Returns:
java.util.Vector

getRlRequiredQty

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

getRlShipModeId

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

getRlStartDay

public java.lang.String getRlStartDay()
Returns the day from which this discount get active.
Returns:
java.lang.String

getRlStartHour

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

getRlStartMonth

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

getRlStartYear

public java.lang.String getRlStartYear()
Returns the year from which this discount get active.
Returns:
java.lang.String

getRlTargetSales

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

getRlValues

public java.lang.String[] getRlValues()
Returns Discount values corresponding to the discount ranges.
Returns:
java.util.Vector

getRuleXML

public java.lang.String getRuleXML()
Returns the Rule XML from the RLDISCOUNT Database
Returns:
java.lang.String

getStartDate

public java.lang.String getStartDate()
Returns the date from which the disount is active.
Returns:
java.lang.String

getValidForAllCustomers

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

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:
ECException - The exception description.
java.lang.Exception - should not happen since there is no data retrieved to populate the databean.

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 eligible for the discount.
Parameters:
newAssignedSegments - java.util.Vector

setCalcodeId

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

setFlag

public void setFlag(boolean newFlag)
Internal Use
Parameters:
newFlag - boolean

setRlCurrency

public void setRlCurrency(java.lang.String newRlCurrency)
Currency which can be used with this discount type.
Parameters:
newRlCurrency - java.lang.String

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:
newRlDaysInWeek - java.util.Vector

setRlDescription

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

setRlDescriptionNL

public void setRlDescriptionNL(java.lang.String newRlDescriptionNL)
This field store the translatabel description for the discount.
Parameters:
newRlDescriptionNL - java.lang.String

setRlDiscountItemQty

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

setRlDiscountItemSku

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

setRlEndDay

public void setRlEndDay(java.lang.String newRlEndDay)
This field stores the day when the discount ends
Parameters:
newRlEndDay - java.lang.String

setRlEndHour

public void setRlEndHour(java.lang.String newRlEndHour)
this field stores the hour when the discount expires.
Parameters:
newRlEndHour - java.lang.String

setRlEndMonth

public void setRlEndMonth(java.lang.String newRlEndMonth)
This field stores the month when the discount will expire.
Parameters:
newRlEndMonth - java.lang.String

setRlEndYear

public void setRlEndYear(java.lang.String newRlEndYear)
This field stores the year when the discount will expire.
Parameters:
newRlEndYear - java.lang.String

setRlInCombinationWith

public void setRlInCombinationWith(boolean newRlInCombinationWith)
This field store whether the discount is valid in combination with other discount defined.
Parameters:
newRlInCombinationWith - boolean

setRlIsEveryDayFlag

public void setRlIsEveryDayFlag(boolean newRlIsEveryDayFlag)
This field stores 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:
newRlLongDescriptionNL - java.lang.String

setRlName

public void setRlName(java.lang.String newRlName)
This field stores the Name of the discount.
Parameters:
newRlName - java.lang.String

setRlPriority

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

setRlPromotionGWPCatEntryID

public void setRlPromotionGWPCatEntryID(java.lang.String newRlPromotionGWPCatEntryID)
Sets the catentry ID of the free gift SKU
Parameters:
newRlPromotionGWPCatEntryID - java.lang.String

setRlPromotionType

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

setRlRanges

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

setRlRequiredQty

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

setRlShipModeId

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

setRlStartDay

public void setRlStartDay(java.lang.String newRlStartDay)
This field stores the Day from which the discount gets effective.
Parameters:
newRlStartDay - java.lang.String

setRlStartHour

public void setRlStartHour(java.lang.String newRlStartHour)
This field will store the hour from which the discount get effective.
Parameters:
newRlStartHour - java.lang.String

setRlStartMonth

public void setRlStartMonth(java.lang.String newRlStartMonth)
This field stores the month from which the discount gets effective.
Parameters:
newRlStartMonth - java.lang.String

setRlStartYear

public void setRlStartYear(java.lang.String newRlStartYear)
This field stores the year from which the discount get effective/active.
Parameters:
newRlStartYear - java.lang.String

setRlTargetSales

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

setRlValues

public void setRlValues(java.lang.String[] newRlValues)
this field stores the discount value mentioned for each discount range mentioned.
Parameters:
newRlValues - java.util.Vector

setRuleXML

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

setStartDate

public void setStartDate(java.lang.String newStartDate)
This field stores the date from which the discount gets active/effective.
Parameters:
newStartDate - java.lang.String

setValidForAllCustomers

public void setValidForAllCustomers(boolean newValidForAllCustomers)
This field stores whehter the discount is valid for all customer groups / to specific customer groups.
Parameters:
newValidForAllCustomers - boolean

getRlTimeRanged

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

setRlTimeRanged

public void setRlTimeRanged(boolean newRlTimeRanged)
Sets the rlTimeRanged. This field tells whether a start time and end time has been specified.