public abstract class RLPromotion extends java.lang.Object implements RLConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
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
Constructor and Description |
---|
RLPromotion()
Default constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
fromXML(java.lang.String xml)
Populate the promotion object from a nonBlaze XML representation.
|
boolean |
getAllowCouponTransfer()
Gets true only if this is a coupon promotion and allow this coupon promotion
to be transferred.
|
java.util.Vector |
getAssignedSegmentIds()
Get the assignedSegmentIds
|
java.util.Vector |
getAssignedSegments()
Get the assignedSegments.
|
boolean |
getCodeRequired()
Check if the promotion code is required in this promotion.
|
int |
getCouponEffectiveDays()
Gets the coupon effective days.
|
int |
getCouponExpirationDays()
Gets the coupon expiration days.
|
java.lang.String |
getCurrency()
Get the currency.
|
boolean |
getDateRanged()
Check if the promotion is scheduled by date.
|
java.util.Vector |
getDayInWeek()
Get the daysInWeek.
|
java.util.Vector |
getDaysInWeek()
Gets the daysInWeek.
|
java.lang.String |
getDescription()
Get the description.
|
java.lang.String |
getDescriptionLongNL()
Get the customers viewable long description.
|
java.lang.String |
getDescriptionNL()
Return the customers viewable description.
|
java.sql.Timestamp |
getEndTimeStamp()
Get the promotion end timestamp.
|
int |
getExclusive()
Gets the exclusiveness of current RLPromotion object.
|
java.lang.String |
getGroupName()
Gets the group name of current RLPromotion object.
|
boolean |
getIsAdjustmentBasedOnStandardOfferPrice()
Gets true only if adjustment is based on standard offer price.
|
boolean |
getIsCoupon()
Check if the current RLPromotion is a coupon promotion.
|
java.lang.String |
getLanguageId()
Gets the language ID of current RLPromotion object description.
|
java.sql.Timestamp |
getLastUpdate()
Gets the timestamp when the current RLPromotion object was updated at last.
|
java.lang.String |
getLastUpdateUserId()
Gets the user logon ID who is the last one to update the current RLPromotion object.
|
java.lang.String |
getName()
Get the promotion name.
|
int |
getPerOrderLimit()
Gets the promotion applicable limit per order.
|
int |
getPerShopperLimit()
Gets the promotion applicable limit per customer.
|
int |
getPriority()
Get the promotion priority.
|
java.lang.String |
getPromotionCode()
Gets the promotion code of current RLPromotion object.
|
abstract java.lang.Integer |
getPromotionDisplayLevel()
Get the promotion display level.
|
int |
getRevision()
Gets the revision of current RLPromotion object.
|
java.lang.String |
getRLPromotionType()
Get promotion type.
|
java.sql.Timestamp |
getStartTimeStamp()
Get promotion start timestamp.
|
int |
getStatus()
Get promotion status.
|
java.lang.String |
getStoreId()
Gets the store ID of current RLPromotion object.
|
java.lang.String |
getTargetSalesFigure()
Get promotion target sales.
|
boolean |
getTimeRanged()
Check if the promotion is scheduled by time.
|
int |
getTotalLimit()
Gets the promotion total applicable limit.
|
boolean |
getValidForAllCustomers()
Check if the promotion is valid for all customers.
|
int |
getVersion()
Gets the version of current RLPromotion object.
|
abstract void |
populatePromotionLevelSpecificDataFrom(java.util.Map h)
Populate promotion level specific data for itself from a Map.
|
abstract void |
populatePromotionSpecificDataFrom(java.util.Map h)
Populate promotion specific data for itself from a Map.
|
void |
setAllowCouponTransfer(boolean newAllowCouponTransfer)
Sets true only if this is a coupon promotion and allow this coupon promotion to
be transferred.
|
void |
setAssignedSegmentIds(java.util.Vector newAssignedSegmentIds)
Sets the assignedSegmentIds
|
void |
setAssignedSegments(java.util.Vector newAssignedSegments)
Sets the assignedSegments.
|
void |
setCodeRequired(boolean newCodeRequired)
Sets the boolean value if the promotion code is required in this promotion.
|
void |
setCouponEffectiveDays(int newCouponEffectiveDays)
Sets the coupon effective days.
|
void |
setCouponExpirationDays(int newCouponExpirationDays)
Sets the coupon expiration days.
|
void |
setCurrency(java.lang.String newCurrency)
Sets the currency.
|
void |
setDaysInWeek(java.util.Vector newDaysInWeek)
Sets the days in week.
|
void |
setDescription(java.lang.String newDesc)
Because the description is stored in the CalcoDesc table, it has to be set outside of 'populate' method.
|
void |
setDescriptionLongNL(java.lang.String newDescriptionLongNL)
Because the NL-enabled long description is stored in the
CALCODEDSC table, it has to be set outside of 'populate' method. |
void |
setDescriptionNL(java.lang.String newDescNL)
Because the NL-enabled short description is stored in the
CALCODEDSC table, it has to be set outside of 'populate' method. |
void |
setEndTimeStamp(java.sql.Timestamp newEndTimeStamp)
Sets the endTimeStamp.
|
void |
setExclusive(int newExclusive)
Sets the exclusiveness of current RLPromotion object.
|
void |
setGroupName(java.lang.String newGroupName)
Sets the group name of current RLPromotion object.
|
void |
setIsCoupon(boolean newIsCoupon)
Sets true if the current RLPromotion is a coupon promotion, otherwise false.
|
void |
setLanguageId(java.lang.String newLanguageId)
Sets the language ID of current RLPromotion object description.
|
void |
setLastUpdate(java.sql.Timestamp newLastUpdate)
Sets the Timestamp when the current RLPromotion object was updated at last.
|
void |
setLastUpdateUserId(java.lang.String newLastUpdateUserId)
Sets the user logon ID who is the last one to update the current RLPromotion object.
|
void |
setName(java.lang.String newDiscountName)
Set the name of the Discount.
|
void |
setPerOrderLimit(int newPerOrderLimit)
Sets the promotion applicable limit per order.
|
void |
setPerShopperLimit(int newPerShopperLimit)
Sets the promotion applicable limit per customer.
|
void |
setPriority(int newPriority)
Sets the priority.
|
void |
setPromotionCode(java.lang.String newPromotionCode)
Sets the promotion code of current RLPromotion object.
|
void |
setRevision(int newRevision)
Sets the revision of current RLPromotion object.
|
void |
setRLPromotionType(java.lang.String newRlPromotionType)
Sets the rlPromotionType.
|
void |
setStartTimeStamp(java.sql.Timestamp newStartTimeStamp)
Sets the startTimeStamp.
|
void |
setStatus(int newStatus)
Sets the status.
|
void |
setStoreId(java.lang.String newStoreId)
Sets the store ID of current RLPromotion object.
|
void |
setTargetSalesFigure(java.lang.String newTargetSalesFigure)
targetSalesFigure is not stored in the XML string, it has to be set outside of 'populate' method.
|
void |
setTotalLimit(int newTotalLimit)
Sets the promotion total applicable limit.
|
void |
setVersion(int newVersion)
Sets the version of current RLPromotion object.
|
java.lang.String |
toXML()
Generate the nonBlaze promotion XML representation.
|
public static final java.lang.String COPYRIGHT
public java.lang.String toXML()
public void fromXML(java.lang.String xml) throws ParameterNotFoundException, java.text.ParseException
String
- xmlParameterNotFoundException
java.text.ParseException
public java.util.Vector getAssignedSegments()
public java.lang.String getCurrency()
public java.util.Vector getDayInWeek()
public java.lang.String getDescription()
public java.lang.String getDescriptionLongNL()
public java.lang.String getDescriptionNL()
public java.sql.Timestamp getEndTimeStamp()
public java.lang.String getName()
public int getPriority()
public abstract java.lang.Integer getPromotionDisplayLevel()
public java.lang.String getRLPromotionType()
public java.sql.Timestamp getStartTimeStamp()
public int getStatus()
public java.lang.String getTargetSalesFigure()
public boolean getDateRanged()
public boolean getTimeRanged()
public boolean getValidForAllCustomers()
public abstract void populatePromotionLevelSpecificDataFrom(java.util.Map h) throws ParameterNotFoundException
h
- java.util.MapParameterNotFoundException
public abstract void populatePromotionSpecificDataFrom(java.util.Map h) throws ParameterNotFoundException
h
- java.util.MapParameterNotFoundException
public void setDescription(java.lang.String newDesc)
desc
- Description of this discount.public void setDescriptionLongNL(java.lang.String newDescriptionLongNL)
CALCODEDSC
table, it has to be set outside of 'populate' method.newDescriptionLongNL
- java.lang.Stringpublic void setDescriptionNL(java.lang.String newDescNL)
CALCODEDSC
table, it has to be set outside of 'populate' method.desc
- Description of this discount.public void setName(java.lang.String newDiscountName)
newDiscountName
- java.lang.Stringpublic void setTargetSalesFigure(java.lang.String newTargetSalesFigure)
targetSalesFigure
- java.lang.Stringpublic void setAssignedSegments(java.util.Vector newAssignedSegments)
assignedSegments
- The assignedSegments to setpublic void setCurrency(java.lang.String newCurrency)
currency
- The currency to setpublic java.util.Vector getDaysInWeek()
public void setDaysInWeek(java.util.Vector newDaysInWeek)
Vector
- newDaysInWeekpublic void setEndTimeStamp(java.sql.Timestamp newEndTimeStamp)
endTimeStamp
- The endTimeStamp to setpublic void setPriority(int newPriority)
priority
- The priority to setpublic void setRLPromotionType(java.lang.String newRlPromotionType)
rlPromotionType
- The rlPromotionType to setpublic void setStartTimeStamp(java.sql.Timestamp newStartTimeStamp)
startTimeStamp
- The startTimeStamp to setpublic void setStatus(int newStatus)
newStatus
- The status to setpublic java.lang.String getStoreId()
public void setStoreId(java.lang.String newStoreId)
String
- newStoreIdpublic java.lang.String getLanguageId()
public void setLanguageId(java.lang.String newLanguageId)
String
- newLanguageIdpublic int getVersion()
public void setVersion(int newVersion)
int
- newVersionpublic int getRevision()
public void setRevision(int newRevision)
int
- newRevisionpublic java.lang.String getGroupName()
public void setGroupName(java.lang.String newGroupName)
String
- newGroupNamepublic int getExclusive()
public void setExclusive(int newExclusive)
0 = not exclusive 1 = exclusive at a group level 2 = exclusive at a global level 3 = combined with product promotion (order level and shipping only)
int
- newExclusivepublic int getPerOrderLimit()
public void setPerOrderLimit(int newPerOrderLimit)
int
- newPerOrderLimitpublic int getPerShopperLimit()
public void setPerShopperLimit(int newPerShopperLimit)
int
- newPerShopperLimitpublic int getTotalLimit()
public void setTotalLimit(int newTotalLimit)
int
- newTotalLimitpublic java.lang.String getPromotionCode()
public void setPromotionCode(java.lang.String newPromotionCode)
String
- newPromotionCodepublic boolean getCodeRequired()
public void setCodeRequired(boolean newCodeRequired)
boolean
- newCodeRequiredpublic java.lang.String getLastUpdateUserId()
public void setLastUpdateUserId(java.lang.String newLastUpdateUserId)
String
- newLastUpdateUserIdpublic java.sql.Timestamp getLastUpdate()
public void setLastUpdate(java.sql.Timestamp newLastUpdate)
Timestamp
- newLastUpdatepublic boolean getIsCoupon()
public void setIsCoupon(boolean newIsCoupon)
boolean
- newIsCouponpublic int getCouponEffectiveDays()
public void setCouponEffectiveDays(int newCouponEffectiveDays)
int
- newCouponEffectiveDayspublic int getCouponExpirationDays()
public void setCouponExpirationDays(int newCouponExpirationDays)
int
- newCouponExpirationDayspublic boolean getAllowCouponTransfer()
public void setAllowCouponTransfer(boolean newAllowCouponTransfer)
boolean
- newAllowCouponTransferpublic boolean getIsAdjustmentBasedOnStandardOfferPrice()
public java.util.Vector getAssignedSegmentIds()
public void setAssignedSegmentIds(java.util.Vector newAssignedSegmentIds)
assignedSegmentIds
- The assignedSegmentIds to set