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.
|
Constructor and Description |
---|
RLPromotion()
Default constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
protected void | fromCustomXML(java.lang.String xml)
Populate customized fields in this promotion object.
|
protected abstract void | fromSpecificXML(java.lang.String xml)
Populate this promotion object specific fields from a non-Blaze XML representation.
|
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.
|
protected void | populateFrom(java.util.Map h)
PopulateFrom is used to tell an RLPromotion to populate itself from a Map.
|
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.
|
protected java.lang.String | toCustomXML()
Generate the customizable condition XML representation.
|
protected abstract java.lang.String | toSpecificXML()
Generate the specific part of non-Blaze XML representation.
|
java.lang.String | toXML()
Generate the nonBlaze promotion XML representation.
|
public static final java.lang.String COPYRIGHT
protected abstract java.lang.String toSpecificXML()
protected abstract void fromSpecificXML(java.lang.String xml)
protected java.lang.String toCustomXML()
protected void fromCustomXML(java.lang.String xml)
public java.lang.String toXML()
public void fromXML(java.lang.String xml) throws ParameterNotFoundException, 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()
protected void populateFrom(java.util.Map h) throws ParameterNotFoundException, java.text.ParseException
public abstract void populatePromotionLevelSpecificDataFrom(java.util.Map h) throws ParameterNotFoundException
public abstract void populatePromotionSpecificDataFrom(java.util.Map h) throws ParameterNotFoundException
public void setDescription(java.lang.String newDesc)
public void setDescriptionLongNL(java.lang.String newDescriptionLongNL)
public void setDescriptionNL(java.lang.String newDescNL)
public void setName(java.lang.String newDiscountName)
public void setTargetSalesFigure(java.lang.String newTargetSalesFigure)
public void setAssignedSegments(java.util.Vector newAssignedSegments)
public void setCurrency(java.lang.String newCurrency)
public java.util.Vector getDaysInWeek()
public void setDaysInWeek(java.util.Vector newDaysInWeek)
public void setEndTimeStamp(java.sql.Timestamp newEndTimeStamp)
public void setPriority(int newPriority)
public void setRLPromotionType(java.lang.String newRlPromotionType)
public void setStartTimeStamp(java.sql.Timestamp newStartTimeStamp)
public void setStatus(int newStatus)
public java.lang.String getStoreId()
public void setStoreId(java.lang.String newStoreId)
public java.lang.String getLanguageId()
public void setLanguageId(java.lang.String newLanguageId)
public int getVersion()
public void setVersion(int newVersion)
public int getRevision()
public void setRevision(int newRevision)
public java.lang.String getGroupName()
public void setGroupName(java.lang.String newGroupName)
public 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)
public int getPerOrderLimit()
public void setPerOrderLimit(int newPerOrderLimit)
public int getPerShopperLimit()
public void setPerShopperLimit(int newPerShopperLimit)
public int getTotalLimit()
public void setTotalLimit(int newTotalLimit)
public java.lang.String getPromotionCode()
public void setPromotionCode(java.lang.String newPromotionCode)
public boolean getCodeRequired()
public void setCodeRequired(boolean newCodeRequired)
public java.lang.String getLastUpdateUserId()
public void setLastUpdateUserId(java.lang.String newLastUpdateUserId)
public java.sql.Timestamp getLastUpdate()
public void setLastUpdate(java.sql.Timestamp newLastUpdate)
public boolean getIsCoupon()
public void setIsCoupon(boolean newIsCoupon)
public int getCouponEffectiveDays()
public void setCouponEffectiveDays(int newCouponEffectiveDays)
public int getCouponExpirationDays()
public void setCouponExpirationDays(int newCouponExpirationDays)
public boolean getAllowCouponTransfer()
public void setAllowCouponTransfer(boolean newAllowCouponTransfer)
public boolean getIsAdjustmentBasedOnStandardOfferPrice()
public java.util.Vector getAssignedSegmentIds()
public void setAssignedSegmentIds(java.util.Vector newAssignedSegmentIds)