public class RLDiscountDataBean extends RLDiscountDataBeanBase implements RLConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The copyright information.
|
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_STATE, 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, RLPRODPROMO_TYPEALIAS, RLPROMOTION, RLPROMOTION_ADJUSTMENT_TYPE, RLPROMOTION_ASSIGNEDSEGMENTIDS, 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_CODE_REQUIRED, RLPROMOTION_COUPON_EFFECTIVE_DAYS, RLPROMOTION_COUPON_EXPIRATION_DAYS, 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_EXCLUSIVENESS, RLPROMOTION_FRIDAY, RLPROMOTION_GROUP_NAME, RLPROMOTION_GWP_CATENTRY_ID, RLPROMOTION_INCOMBINATIONWITH, RLPROMOTION_ISCOUPON, RLPROMOTION_ISEVERYDAYFLAG, RLPROMOTION_ITEMLEVELBUYXGETYFREE, RLPROMOTION_ITEMLEVELPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_ITEMLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_ITEMLEVELVALUEDISCOUNT, RLPROMOTION_LAST_UPDATE_TIME, RLPROMOTION_LAST_UPDATE_USER, RLPROMOTION_LIST_ALL, RLPROMOTION_LIST_ORDERLEVEL, RLPROMOTION_LIST_PRODUCTLEVEL, RLPROMOTION_MAX_DISCOUNT_ITEM_QTY, RLPROMOTION_MERCHANDISE_TYPE, RLPROMOTION_MONDAY, RLPROMOTION_NAME, RLPROMOTION_ORDER_GROUP, RLPROMOTION_ORDERLEVELFIXEDSHIPPINGDISCOUNT, RLPROMOTION_ORDERLEVELFREEGIFT, RLPROMOTION_ORDERLEVELPERCENTDISCOUNT, RLPROMOTION_ORDERLEVELVALUEDISCOUNT, RLPROMOTION_ORIGINAL_STORE, RLPROMOTION_PER_ORDER_LIMIT, RLPROMOTION_PER_SHOPPER_LIMIT, RLPROMOTION_PRIORITY, RLPROMOTION_PROD_SEARCH_PAGE, RLPROMOTION_PRODUCT_GROUP, RLPROMOTION_PRODUCT_SKU, RLPROMOTION_PRODUCTLEVELBUYXGETYFREE, RLPROMOTION_PRODUCTLEVELPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELPERITEMVALUEDISCOUNT, RLPROMOTION_PRODUCTLEVELSAMEITEMPERCENTDISCOUNT, RLPROMOTION_PRODUCTLEVELVALUEDISCOUNT, RLPROMOTION_PROMOGROUP, RLPROMOTION_PROMOTION_CODE, RLPROMOTION_RANGES, RLPROMOTION_RELATED_STORE, RLPROMOTION_REQUIRED_QTY, RLPROMOTION_RESOURCES, RLPROMOTION_REVISION, RLPROMOTION_SATURDAY, RLPROMOTION_SHIPMODEID, RLPROMOTION_SHIPPING_GROUP, RLPROMOTION_STARTDAY, RLPROMOTION_STARTHOUR, RLPROMOTION_STARTMONTH, RLPROMOTION_STARTYEAR, RLPROMOTION_STATUS, RLPROMOTION_SUNDAY, RLPROMOTION_TARGETSALES, RLPROMOTION_THURSDAY, RLPROMOTION_TIMERANGED, RLPROMOTION_TOTAL_LIMIT, RLPROMOTION_TUESDAY, RLPROMOTION_TYPE, RLPROMOTION_VALIDFORALLCUSTOMERS, RLPROMOTION_VALUE, RLPROMOTION_VALUES, RLPROMOTION_VERSION, RLPROMOTION_WEDNESDAY, ZERO_STRING
emptyString
Constructor and Description |
---|
RLDiscountDataBean()
The default RLDiscountDataBean constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAllGroups()
Gets the boolean value of whether or not the discount is valid for all.
|
java.lang.String[] |
getAssignedSegments()
Returns the list of MemberGroups for which this discount is valid.
|
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()
Gets the non-translatable description of the discount.
|
java.lang.String |
getRlDescriptionNL()
Gets 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 on which this discount starts.
|
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 gets active.
|
java.lang.String |
getRlTargetSales()
Returns the target sales amount for this discount.
|
boolean |
getRlTimeRanged()
Gets the rlTimeRanged.
|
java.lang.String[] |
getRlValues()
Returns the discount values corresponding to the discount ranges.
|
java.lang.String |
getRuleXML()
Returns the Rule XML from the RLDISCOUNT table.
|
java.lang.String |
getStartDate()
Returns the date from which the discount 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 assigned to this discount.
|
void |
setCalcodeId(java.lang.String newCalcodeId)
The
CALCODE_ID from the calcode table , which stores the details of the calculation to be performed. |
void |
setFlag(boolean newFlag)
Reserved for IBM internal use.
|
void |
setRlCurrency(java.lang.String newRlCurrency)
Sets the 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 stores the translatable 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 method sets the day when the discount ends.
|
void |
setRlEndHour(java.lang.String newRlEndHour)
This method sets the hour when the discount expires.
|
void |
setRlEndMonth(java.lang.String newRlEndMonth)
This method sets the month when the discount will expire.
|
void |
setRlEndYear(java.lang.String newRlEndYear)
This method sets the year when the discount will expire.
|
void |
setRlInCombinationWith(boolean newRlInCombinationWith)
This method sets whether the discount is valid in combination with other defined discounts.
|
void |
setRlIsEveryDayFlag(boolean newRlIsEveryDayFlag)
This method sets 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 method sets the day from which the discount is active.
|
void |
setRlStartHour(java.lang.String newRlStartHour)
This method will store the hour from which the discount is active.
|
void |
setRlStartMonth(java.lang.String newRlStartMonth)
This method sets the month from which the discount is active.
|
void |
setRlStartYear(java.lang.String newRlStartYear)
This method stores the year from which the discount is active.
|
void |
setRlTargetSales(java.lang.String newRlTargetSales)
This method stores the target sales assigned for this discount.
|
void |
setRlTimeRanged(boolean newRlTimeRanged)
Sets the rlTimeRanged.
|
void |
setRlValues(java.lang.String[] newRlValues)
This method 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 is active.
|
void |
setValidForAllCustomers(boolean newValidForAllCustomers)
This field stores whether the discount is valid for all customer segments or targets to specific customer segments.
|
getDelegate, getOwner
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties, setRequestProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fulfills
getRequestProperties, setRequestProperties
public static final java.lang.String COPYRIGHT
public RLDiscountDataBean()
public boolean getAllGroups()
public java.lang.String[] getAssignedSegments()
public java.lang.String getCalcodeId()
public java.lang.String getRlCurrency()
public boolean getRlDateRanged()
public java.lang.String[] getRlDaysInWeek()
public java.lang.String getRlDescription()
public java.lang.String getRlDescriptionNL()
public java.lang.String getRlDiscountItemQty()
public java.lang.String getRlDiscountItemSku()
public java.lang.String getRlEndDay()
public java.lang.String getRlEndHour()
public java.lang.String getRlEndMonth()
public java.lang.String getRlEndYear()
public boolean getRlInCombinationWith()
public boolean getRlIsEveryDayFlag()
public java.lang.String getRlLongDescriptionNL()
public java.lang.String getRlName()
public java.lang.String getRlPriority()
public java.lang.String getRlPromotionGWPCatEntryID()
Catentry ID
of the free gift SKU.Catentry ID
of the free gift SKU.public java.lang.String getRlPromotionType()
public java.lang.String[] getRlRanges()
public java.lang.String getRlRequiredQty()
public java.lang.String getRlShipModeId()
public java.lang.String getRlStartDay()
public java.lang.String getRlStartHour()
public java.lang.String getRlStartMonth()
public java.lang.String getRlStartYear()
public java.lang.String getRlTargetSales()
public java.lang.String[] getRlValues()
public java.lang.String getRuleXML()
public java.lang.String getStartDate()
public boolean getValidForAllCustomers()
public void populate() throws java.lang.Exception
populate
in interface SmartDataBean
populate
in class SmartDataBeanImpl
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.public void setAllGroups(boolean newAllGroups)
newAllGroups
- booleanpublic void setAssignedSegments(java.lang.String[] newAssignedSegments)
the
- list of member groups assigned to this discount.public void setCalcodeId(java.lang.String newCalcodeId)
CALCODE_ID
from the calcode
table , which stores the details of the calculation to be performed.The
- String type of CALCODE_ID
.public void setFlag(boolean newFlag)
newFlag
- booleanpublic void setRlCurrency(java.lang.String newRlCurrency)
The
- currency which can be used with this discount type.public void setRlDateRanged(boolean newRlDateRanged)
newRlDateRanged
- booleanpublic void setRlDaysInWeek(java.lang.String[] newRlDaysInWeek)
The
- list of days in a week.public void setRlDescription(java.lang.String newRlDescription)
The
- non-translatable description for the discount.public void setRlDescriptionNL(java.lang.String newRlDescriptionNL)
The
- translatable description for the discount.public void setRlDiscountItemQty(java.lang.String newRlDiscountItemQty)
The
- quantity of the discounted items.public void setRlDiscountItemSku(java.lang.String newRlDiscountItemSku)
The
- SKU of the discounted item.public void setRlEndDay(java.lang.String newRlEndDay)
The
- day when the discount ends.public void setRlEndHour(java.lang.String newRlEndHour)
The
- hour when the discount expires.public void setRlEndMonth(java.lang.String newRlEndMonth)
The
- month when the discount will expire.public void setRlEndYear(java.lang.String newRlEndYear)
The
- year when the discount will expire.public void setRlInCombinationWith(boolean newRlInCombinationWith)
newRlInCombinationWith
- booleanpublic void setRlIsEveryDayFlag(boolean newRlIsEveryDayFlag)
newRlIsEveryDayFlag
- booleanpublic void setRlLongDescriptionNL(java.lang.String newRlLongDescriptionNL)
The
- translatable long description of the discount.public void setRlName(java.lang.String newRlName)
The
- name of the discount.public void setRlPriority(java.lang.String newRlPriority)
The
- discount priority.public void setRlPromotionGWPCatEntryID(java.lang.String newRlPromotionGWPCatEntryID)
catentry_id
of the free gift SKU.The
- catentry_id
of the free gift SKU.public void setRlPromotionType(java.lang.String newRlPromotionType)
The
- discount type.public void setRlRanges(java.lang.String[] newRlRanges)
The
- quantity ranges for which the discount can be applied.public void setRlRequiredQty(java.lang.String newRlRequiredQty)
The
- quantity that need to be purchased to qualify for the discount.public void setRlShipModeId(java.lang.String newRlShipModeId)
The
- shipping mode for which the discount has been defined.public void setRlStartDay(java.lang.String newRlStartDay)
The
- day from which the discount is active.public void setRlStartHour(java.lang.String newRlStartHour)
The
- hour from which the discount is active.public void setRlStartMonth(java.lang.String newRlStartMonth)
The
- month from which the discount is active.public void setRlStartYear(java.lang.String newRlStartYear)
The
- year from which the discount is active.public void setRlTargetSales(java.lang.String newRlTargetSales)
The
- target sales assigned for this discount.public void setRlValues(java.lang.String[] newRlValues)
The
- discount value mentioned for each discount range mentioned.public void setRuleXML(java.lang.String newRuleXML)
The
- entire discount data as a rule XML.public void setStartDate(java.lang.String newStartDate)
The
- date from which the discount is active.public void setValidForAllCustomers(boolean newValidForAllCustomers)
True
- if the discount is valid for all customer segments.public boolean getRlTimeRanged()
public void setRlTimeRanged(boolean newRlTimeRanged)
True
- if the start time and end time has been specified. Otherwise, false.