|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakartadmin.app.AdminCoupon
public class AdminCoupon
The Coupon class contains information about the coupon which can be used to activate promotions on an order.
Field Summary | |
---|---|
private java.lang.String |
couponCode
The value of the coupon code |
private java.lang.String |
custom1
Custom fields |
private java.lang.String |
custom2
|
private java.lang.String |
custom3
|
private java.lang.String |
custom4
|
private java.lang.String |
custom5
|
private java.util.Date |
dateAdded
The value for the dateAdded field |
private java.lang.String |
description
Description |
private int |
id
The value for the couponId field |
private java.util.Date |
lastModified
The value for the lastModified field |
private int |
maxUse
The maximum number of times that the coupon can be used |
private java.lang.String |
name
Name |
private AdminPromotion[] |
promotions
An array of promotions that the coupon is associated with |
private int |
timesUsed
The number of times that the coupon has been used |
Constructor Summary | |
---|---|
AdminCoupon()
Constructor |
|
AdminCoupon(com.workingdogs.village.Record vr,
org.apache.torque.util.Criteria c)
Instantiates the attributes of the Promotion object from a Record object |
Method Summary | |
---|---|
java.lang.String |
getCouponCode()
|
java.lang.String |
getCustom1()
|
java.lang.String |
getCustom2()
|
java.lang.String |
getCustom3()
|
java.lang.String |
getCustom4()
|
java.lang.String |
getCustom5()
|
java.util.Date |
getDateAdded()
|
java.lang.String |
getDescription()
|
int |
getId()
|
java.util.Date |
getLastModified()
|
int |
getMaxUse()
|
java.lang.String |
getName()
|
AdminPromotion[] |
getPromotions()
|
int |
getTimesUsed()
|
boolean |
isValid()
Determines whether the coupon is valid based on the number of times that it has been used. |
void |
setCouponCode(java.lang.String couponCode)
|
void |
setCustom1(java.lang.String custom1)
|
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 |
setDateAdded(java.util.Date dateAdded)
|
void |
setDescription(java.lang.String description)
|
void |
setId(int id)
|
void |
setLastModified(java.util.Date lastModified)
|
void |
setMaxUse(int maxUse)
|
void |
setName(java.lang.String name)
|
void |
setPromotions(AdminPromotion[] promotions)
|
void |
setTimesUsed(int timesUsed)
|
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 couponCode
private int maxUse
private int timesUsed
private java.util.Date lastModified
private java.util.Date dateAdded
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 AdminPromotion[] promotions
Constructor Detail |
---|
public AdminCoupon()
public AdminCoupon(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 isValid()
public java.lang.String getCouponCode()
public void setCouponCode(java.lang.String couponCode)
couponCode
- The couponCode 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 getDescription()
public void setDescription(java.lang.String description)
description
- The description to set.public int getId()
getId
in interface AdminObjectIf
public void setId(int id)
setId
in interface AdminObjectIf
id
- The id to set.public int getMaxUse()
public void setMaxUse(int maxUse)
maxUse
- The maxUse to set.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public int getTimesUsed()
public void setTimesUsed(int timesUsed)
timesUsed
- The timesUsed to set.public java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- The dateAdded to set.public java.util.Date getLastModified()
public void setLastModified(java.util.Date lastModified)
lastModified
- The lastModified to set.public AdminPromotion[] getPromotions()
public void setPromotions(AdminPromotion[] promotions)
promotions
- The promotions to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |