|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.app.AdminPromotion
public class AdminPromotion
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.
Field Summary | |
---|---|
private boolean |
active
Boolean that defines whether the promotion is active |
private AdminOrderProduct[] |
applicableProducts
An array of OrderProducts to which the promotion can be applied |
private int |
categoryRule
The rule for allowing products only from certain categories in the promotion. |
private AdminCoupon[] |
coupons
A valid coupon[] for the promotion |
private boolean |
cumulative
Boolean that defines whether the promotion is cumulative with other promotions. |
private java.lang.String |
custom1
Custom fields |
private java.lang.String |
custom10
|
private java.lang.String |
custom2
|
private java.lang.String |
custom3
|
private java.lang.String |
custom4
|
private java.lang.String |
custom5
|
private java.lang.String |
custom6
|
private java.lang.String |
custom7
|
private java.lang.String |
custom8
|
private java.lang.String |
custom9
|
private int |
customerGroupRule
The rule for allowing customers belonging to customer groups to use the promotion. |
private int |
customerRule
The rule for allowing customers to use the promotion. |
private java.util.Date |
dateAdded
The value for the dateAdded field |
private java.lang.String |
description
Description |
private java.util.Date |
endDate
The date the promotion ends |
private int |
id
The value for the promotionId field |
private java.util.Date |
lastModified
The value for the lastModified field |
private int |
manufacturerRule
The rule for allowing products only from certain manufacturers in the promotion. |
private int |
maxUse
The maximum number of times that the promotion can be used by a single customer |
private java.lang.String |
name
Name |
private int |
numCategories
Number of categories included or excluded |
private int |
numCoupons
Number of coupons included or excluded |
private int |
numCustomerGroups
Number of customer groups included or excluded |
private int |
numCustomers
Number of customers included or excluded |
private int |
numExpressions
Number of expressions included |
private int |
numManufacturers
Number of manufacturers included or excluded |
private int |
numProducts
Number of products included or excluded |
private java.lang.String |
orderTotalCode
The code of the Order Total module used to calculate the promotion |
private int |
productRule
The rule for allowing only certain products in the promotion. |
private boolean |
requiresCoupon
Promotion requires a coupon |
private java.util.Date |
startDate
The date the promotion starts |
Constructor Summary | |
---|---|
AdminPromotion()
Constructor |
|
AdminPromotion(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the Promotion object from a Record object |
Method Summary | |
---|---|
AdminOrderProduct[] |
getApplicableProducts()
|
int |
getCategoryRule()
|
AdminCoupon[] |
getCoupons()
|
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()
|
int |
getCustomerRule()
|
java.util.Date |
getDateAdded()
|
java.lang.String |
getDescription()
|
java.util.Date |
getEndDate()
|
int |
getId()
|
java.util.Date |
getLastModified()
|
int |
getManufacturerRule()
|
int |
getMaxUse()
|
java.lang.String |
getName()
|
int |
getNumCategories()
|
int |
getNumCoupons()
|
int |
getNumCustomerGroups()
|
int |
getNumCustomers()
|
int |
getNumExpressions()
|
int |
getNumManufacturers()
|
int |
getNumProducts()
|
java.lang.String |
getOrderTotalCode()
|
int |
getProductRule()
|
java.util.Date |
getStartDate()
|
boolean |
getStatus()
|
boolean |
isActive()
|
boolean |
isCumulative()
|
boolean |
isRequiresCoupon()
|
void |
setActive(boolean active)
|
void |
setApplicableProducts(AdminOrderProduct[] applicableProducts)
|
void |
setCategoryRule(int categoryRule)
|
void |
setCoupons(AdminCoupon[] coupons)
|
void |
setCumulative(boolean cumulative)
|
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)
|
void |
setCustomerRule(int customerRule)
|
void |
setDateAdded(java.util.Date dateAdded)
|
void |
setDescription(java.lang.String description)
|
void |
setEndDate(java.util.Date endDate)
|
void |
setId(int id)
|
void |
setLastModified(java.util.Date lastModified)
|
void |
setManufacturerRule(int manufacturerRule)
|
void |
setMaxUse(int maxUse)
|
void |
setName(java.lang.String name)
|
void |
setNumCategories(int numCategories)
|
void |
setNumCoupons(int numCoupons)
|
void |
setNumCustomerGroups(int numCustomerGroups)
|
void |
setNumCustomers(int numCustomers)
|
void |
setNumExpressions(int numExpressions)
|
void |
setNumManufacturers(int numManufacturers)
|
void |
setNumProducts(int numProducts)
|
void |
setOrderTotalCode(java.lang.String orderTotalCode)
|
void |
setProductRule(int productRule)
|
void |
setRequiresCoupon(boolean requiresCoupon)
|
void |
setStartDate(java.util.Date startDate)
|
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 |
Field Detail |
---|
private int id
private java.lang.String description
private java.lang.String name
private java.lang.String orderTotalCode
private boolean active
private boolean cumulative
private boolean requiresCoupon
private java.util.Date startDate
private java.util.Date endDate
private java.util.Date lastModified
private java.util.Date dateAdded
private int maxUse
private int customerRule
private int customerGroupRule
private int categoryRule
private int manufacturerRule
private int productRule
private java.lang.String custom1
private java.lang.String custom2
private java.lang.String custom3
private java.lang.String custom4
private java.lang.String custom5
private java.lang.String custom6
private java.lang.String custom7
private java.lang.String custom8
private java.lang.String custom9
private java.lang.String custom10
private AdminOrderProduct[] applicableProducts
private AdminCoupon[] coupons
private int numCustomers
private int numCustomerGroups
private int numProducts
private int numManufacturers
private int numCategories
private int numCoupons
private int numExpressions
Constructor Detail |
---|
public AdminPromotion()
public AdminPromotion(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 interface AdminObjectIf
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public boolean isActive()
public boolean getStatus()
public void setActive(boolean active)
active
- The active to set.public boolean isCumulative()
public void setCumulative(boolean cumulative)
cumulative
- The cumulative to set.public java.lang.String getCustom1()
public void setCustom1(java.lang.String custom1)
custom1
- The custom1 to set.public java.lang.String getCustom2()
public void setCustom2(java.lang.String custom2)
custom2
- The custom2 to set.public java.lang.String getCustom3()
public void setCustom3(java.lang.String custom3)
custom3
- The custom3 to set.public java.lang.String getCustom4()
public void setCustom4(java.lang.String custom4)
custom4
- The custom4 to set.public java.lang.String getCustom5()
public void setCustom5(java.lang.String custom5)
custom5
- The custom5 to set.public java.lang.String getCustom6()
public void setCustom6(java.lang.String custom6)
custom6
- The custom6 to set.public java.lang.String getCustom7()
public void setCustom7(java.lang.String custom7)
custom7
- The custom7 to set.public java.lang.String getCustom8()
public void setCustom8(java.lang.String custom8)
custom8
- The custom8 to set.public java.lang.String getCustom9()
public void setCustom9(java.lang.String custom9)
custom9
- The custom9 to set.public java.lang.String getCustom10()
public void setCustom10(java.lang.String custom10)
custom10
- The custom10 to set.public int getId()
getId
in interface AdminObjectIf
public void setId(int id)
setId
in interface AdminObjectIf
id
- The id to set.public java.lang.String getOrderTotalCode()
public void setOrderTotalCode(java.lang.String orderTotalCode)
orderTotalCode
- The orderTotalCode to set.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description to set.public boolean isRequiresCoupon()
public void setRequiresCoupon(boolean requiresCoupon)
requiresCoupon
- The requiresCoupon to set.public int getCategoryRule()
public void setCategoryRule(int categoryRule)
categoryRule
- The categoryRule to set.public int getCustomerRule()
public void setCustomerRule(int customerRule)
customerRule
- The customerRule to set.public int getManufacturerRule()
public void setManufacturerRule(int manufacturerRule)
manufacturerRule
- The manufacturerRule to set.public int getProductRule()
public void setProductRule(int productRule)
productRule
- The productRule to set.public AdminOrderProduct[] getApplicableProducts()
public void setApplicableProducts(AdminOrderProduct[] applicableProducts)
applicableProducts
- The applicableProducts to set.public java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- The dateAdded to set.public java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
endDate
- The endDate to set.public java.util.Date getLastModified()
public void setLastModified(java.util.Date lastModified)
lastModified
- The lastModified to set.public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate
- The startDate to set.public AdminCoupon[] getCoupons()
public void setCoupons(AdminCoupon[] coupons)
coupons
- The coupons to set.public int getNumCategories()
public void setNumCategories(int numCategories)
numCategories
- The numCategories to set.public int getNumCustomers()
public void setNumCustomers(int numCustomers)
numCustomers
- The numCustomers to set.public int getNumManufacturers()
public void setNumManufacturers(int numManufacturers)
numManufacturers
- The numManufacturers to set.public int getNumProducts()
public void setNumProducts(int numProducts)
numProducts
- The numProducts to set.public int getNumCoupons()
public void setNumCoupons(int numCoupons)
numCoupons
- The numCoupons to set.public int getCustomerGroupRule()
public void setCustomerGroupRule(int customerGroupRule)
customerGroupRule
- The customerGroupRule to set.public int getNumCustomerGroups()
public void setNumCustomerGroups(int numCustomerGroups)
numCustomerGroups
- The numCustomerGroups to set.public int getNumExpressions()
public void setNumExpressions(int numExpressions)
numExpressions
- the numExpressions to setpublic int getMaxUse()
public void setMaxUse(int maxUse)
maxUse
- the maxUse to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |