|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.Promotion
public class Promotion
This is the Promotion class - it contains information about the promotion; links it to the Order Total module that is used to calculate the promotion, and identifies to what products and customers the promotion applies.
| Constructor Summary | |
|---|---|
Promotion()
Constructor |
|
Promotion(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the Promotion object from a Record object |
|
| Method Summary | |
|---|---|
OrderProductIf[] |
getApplicableProducts()
Contains an array of OrderProduct objects to which the promotion can be applied. |
int |
getCategoryRule()
This is the rule linking categories to the promotion. |
CouponIf |
getCoupon()
There may be a coupon associated with the promotion. |
java.lang.String |
getCustom1()
|
java.lang.String |
getCustom10()
|
java.lang.String |
getCustom2()
|
java.lang.String |
getCustom3()
|
java.lang.String |
getCustom4()
|
java.lang.String |
getCustom5()
|
java.lang.String |
getCustom6()
|
java.lang.String |
getCustom7()
|
java.lang.String |
getCustom8()
|
java.lang.String |
getCustom9()
|
int |
getCustomerGroupRule()
This is the rule linking customer groups to the promotion. |
int |
getCustomerRule()
This is the rule linking customers to the promotion. |
java.util.Calendar |
getDateAdded()
|
java.lang.String |
getDescription()
A description of the promotion. |
java.util.Calendar |
getEndDate()
After this date the promotion is no longer active. |
int |
getId()
|
java.util.Calendar |
getLastModified()
|
int |
getManufacturerRule()
This is the rule linking manufacturers to the promotion. |
int |
getMaxUse()
The maximum number of times that the promotion can be used by a single customer |
java.lang.String |
getName()
The promotion name. |
java.lang.String |
getOrderTotalCode()
The code of the order total module used to calculate the promotion. |
int |
getProductRule()
This is the rule linking products to the promotion. |
java.util.Calendar |
getStartDate()
Before this date the promotion is not active. |
boolean |
isActive()
Set to true if the promotion is active. |
boolean |
isCumulative()
Set to true if the promotion is cumulative with other promotions. |
boolean |
isRequiresCoupon()
Does the promotion require a coupon |
void |
setActive(boolean active)
Set to true if the promotion is active. |
void |
setApplicableProducts(OrderProductIf[] applicableProducts)
Contains an array of OrderProduct objects to which the promotion can be applied. |
void |
setCategoryRule(int categoryRule)
This is the rule linking categories to the promotion. |
void |
setCoupon(CouponIf coupon)
There may be a coupon associated with the promotion. |
void |
setCumulative(boolean cumulative)
Set to true if the promotion is cumulative with other promotions. |
void |
setCustom1(java.lang.String custom1)
|
void |
setCustom10(java.lang.String custom10)
|
void |
setCustom2(java.lang.String custom2)
|
void |
setCustom3(java.lang.String custom3)
|
void |
setCustom4(java.lang.String custom4)
|
void |
setCustom5(java.lang.String custom5)
|
void |
setCustom6(java.lang.String custom6)
|
void |
setCustom7(java.lang.String custom7)
|
void |
setCustom8(java.lang.String custom8)
|
void |
setCustom9(java.lang.String custom9)
|
void |
setCustomerGroupRule(int customerGroupRule)
This is the rule linking customer groups to the promotion. |
void |
setCustomerRule(int customerRule)
This is the rule linking customers to the promotion. |
void |
setDateAdded(java.util.Calendar dateAdded)
|
void |
setDescription(java.lang.String description)
A description of the promotion. |
void |
setEndDate(java.util.Calendar endDate)
After this date the promotion is no longer active. |
void |
setId(int id)
|
void |
setLastModified(java.util.Calendar lastModified)
|
void |
setManufacturerRule(int manufacturerRule)
This is the rule linking manufacturers to the promotion. |
void |
setMaxUse(int maxUse)
The maximum number of times that the promotion can be used by a single customer |
void |
setName(java.lang.String name)
The promotion name. |
void |
setOrderTotalCode(java.lang.String orderTotalCode)
The code of the order total module used to calculate the promotion. |
void |
setProductRule(int productRule)
This is the rule linking products to the promotion. |
void |
setRequiresCoupon(boolean requiresCoupon)
Does the promotion require a coupon |
void |
setStartDate(java.util.Calendar startDate)
Before this date the promotion is not active. |
java.lang.String |
toString()
|
java.lang.String |
toStringBrief()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Promotion()
public Promotion(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column names
com.workingdogs.village.DataSetException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringBrief()
public boolean isActive()
PromotionIf
isActive in interface PromotionIfpublic void setActive(boolean active)
PromotionIf
setActive in interface PromotionIfactive - The active to set.public boolean isCumulative()
PromotionIf
isCumulative in interface PromotionIfpublic void setCumulative(boolean cumulative)
PromotionIf
setCumulative in interface PromotionIfcumulative - The cumulative to set.public java.lang.String getCustom1()
getCustom1 in interface PromotionIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface PromotionIfcustom1 - The custom1 to set.public java.lang.String getCustom2()
getCustom2 in interface PromotionIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface PromotionIfcustom2 - The custom2 to set.public java.lang.String getCustom3()
getCustom3 in interface PromotionIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface PromotionIfcustom3 - The custom3 to set.public java.lang.String getCustom4()
getCustom4 in interface PromotionIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface PromotionIfcustom4 - The custom4 to set.public java.lang.String getCustom5()
getCustom5 in interface PromotionIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface PromotionIfcustom5 - The custom5 to set.public java.lang.String getCustom6()
getCustom6 in interface PromotionIfpublic void setCustom6(java.lang.String custom6)
setCustom6 in interface PromotionIfcustom6 - The custom6 to set.public java.lang.String getCustom7()
getCustom7 in interface PromotionIfpublic void setCustom7(java.lang.String custom7)
setCustom7 in interface PromotionIfcustom7 - The custom7 to set.public java.lang.String getCustom8()
getCustom8 in interface PromotionIfpublic void setCustom8(java.lang.String custom8)
setCustom8 in interface PromotionIfcustom8 - The custom8 to set.public java.lang.String getCustom9()
getCustom9 in interface PromotionIfpublic void setCustom9(java.lang.String custom9)
setCustom9 in interface PromotionIfcustom9 - The custom9 to set.public java.lang.String getCustom10()
getCustom10 in interface PromotionIfpublic void setCustom10(java.lang.String custom10)
setCustom10 in interface PromotionIfcustom10 - The custom10 to set.public int getId()
getId in interface PromotionIfpublic void setId(int id)
setId in interface PromotionIfid - The id to set.public java.lang.String getOrderTotalCode()
PromotionIf
getOrderTotalCode in interface PromotionIfpublic void setOrderTotalCode(java.lang.String orderTotalCode)
PromotionIf
setOrderTotalCode in interface PromotionIforderTotalCode - The orderTotalCode to set.public java.lang.String getName()
PromotionIf
getName in interface PromotionIfpublic void setName(java.lang.String name)
PromotionIf
setName in interface PromotionIfname - The name to set.public java.lang.String getDescription()
PromotionIf
getDescription in interface PromotionIfpublic void setDescription(java.lang.String description)
PromotionIf
setDescription in interface PromotionIfdescription - The description to set.public boolean isRequiresCoupon()
PromotionIf
isRequiresCoupon in interface PromotionIfpublic void setRequiresCoupon(boolean requiresCoupon)
PromotionIf
setRequiresCoupon in interface PromotionIfrequiresCoupon - The requiresCoupon to set.public int getCategoryRule()
PromotionIf
getCategoryRule in interface PromotionIfpublic void setCategoryRule(int categoryRule)
PromotionIf
setCategoryRule in interface PromotionIfcategoryRule - The categoryRule to set.public int getCustomerRule()
PromotionIf
getCustomerRule in interface PromotionIfpublic void setCustomerRule(int customerRule)
PromotionIf
setCustomerRule in interface PromotionIfcustomerRule - The customerRule to set.public int getManufacturerRule()
PromotionIf
getManufacturerRule in interface PromotionIfpublic void setManufacturerRule(int manufacturerRule)
PromotionIf
setManufacturerRule in interface PromotionIfmanufacturerRule - The manufacturerRule to set.public int getProductRule()
PromotionIf
getProductRule in interface PromotionIfpublic void setProductRule(int productRule)
PromotionIf
setProductRule in interface PromotionIfproductRule - The productRule to set.public OrderProductIf[] getApplicableProducts()
PromotionIf
getApplicableProducts in interface PromotionIfpublic void setApplicableProducts(OrderProductIf[] applicableProducts)
PromotionIf
setApplicableProducts in interface PromotionIfapplicableProducts - The applicableProducts to set.public java.util.Calendar getDateAdded()
getDateAdded in interface PromotionIfpublic void setDateAdded(java.util.Calendar dateAdded)
setDateAdded in interface PromotionIfdateAdded - The dateAdded to set.public java.util.Calendar getEndDate()
PromotionIf
getEndDate in interface PromotionIfpublic void setEndDate(java.util.Calendar endDate)
PromotionIf
setEndDate in interface PromotionIfendDate - The endDate to set.public java.util.Calendar getLastModified()
getLastModified in interface PromotionIfpublic void setLastModified(java.util.Calendar lastModified)
setLastModified in interface PromotionIflastModified - The lastModified to set.public java.util.Calendar getStartDate()
PromotionIf
getStartDate in interface PromotionIfpublic void setStartDate(java.util.Calendar startDate)
PromotionIf
setStartDate in interface PromotionIfstartDate - The startDate to set.public CouponIf getCoupon()
PromotionIf
getCoupon in interface PromotionIfpublic void setCoupon(CouponIf coupon)
PromotionIf
setCoupon in interface PromotionIfcoupon - The coupon to set.public int getCustomerGroupRule()
PromotionIf
getCustomerGroupRule in interface PromotionIfpublic void setCustomerGroupRule(int customerGroupRule)
PromotionIf
setCustomerGroupRule in interface PromotionIfcustomerGroupRule - The customerGroupRule to set.public int getMaxUse()
PromotionIf
getMaxUse in interface PromotionIfpublic void setMaxUse(int maxUse)
PromotionIf
setMaxUse in interface PromotionIfmaxUse - the maxUse to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||