| Constructor and Description |
|---|
Coupon()
Constructor
|
Coupon(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Promotion object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCouponCode()
The code of the coupon is the string used by a customer to activate it.
|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
java.util.Calendar |
getDateAdded() |
java.lang.String |
getDescription() |
int |
getId() |
java.util.Calendar |
getLastModified() |
int |
getMaxUse()
The maximum number of times that a coupon may be used.
|
java.lang.String |
getName() |
int |
getTimesUsed()
The number of times that a coupon has been used.
|
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)
The code of the coupon is the string used by a customer to activate it.
|
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.Calendar dateAdded) |
void |
setDescription(java.lang.String description) |
void |
setId(int id) |
void |
setLastModified(java.util.Calendar lastModified) |
void |
setMaxUse(int maxUse)
The maximum number of times that a coupon may be used.
|
void |
setName(java.lang.String name) |
void |
setTimesUsed(int timesUsed)
The number of times that a coupon has been used.
|
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public Coupon()
public Coupon(com.workingdogs.village.Record vr,
KKCriteria c)
throws com.workingdogs.village.DataSetException
vr - Record containing datac - Criteria containing column namescom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toStringBrief()
public boolean isValid()
public java.lang.String getCouponCode()
CouponIfgetCouponCode in interface CouponIfpublic void setCouponCode(java.lang.String couponCode)
CouponIfsetCouponCode in interface CouponIfcouponCode - The couponCode to set.public java.lang.String getCustom1()
getCustom1 in interface CouponIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface CouponIfcustom1 - The custom1 to set.public java.lang.String getCustom2()
getCustom2 in interface CouponIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface CouponIfcustom2 - The custom2 to set.public java.lang.String getCustom3()
getCustom3 in interface CouponIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface CouponIfcustom3 - The custom3 to set.public java.lang.String getCustom4()
getCustom4 in interface CouponIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface CouponIfcustom4 - The custom4 to set.public java.lang.String getCustom5()
getCustom5 in interface CouponIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface CouponIfcustom5 - The custom5 to set.public java.lang.String getDescription()
getDescription in interface CouponIfpublic void setDescription(java.lang.String description)
setDescription in interface CouponIfdescription - The description to set.public void setId(int id)
public int getMaxUse()
CouponIfpublic void setMaxUse(int maxUse)
CouponIfpublic java.lang.String getName()
public void setName(java.lang.String name)
public int getTimesUsed()
CouponIfgetTimesUsed in interface CouponIfpublic void setTimesUsed(int timesUsed)
CouponIfsetTimesUsed in interface CouponIftimesUsed - The timesUsed to set.public java.util.Calendar getDateAdded()
getDateAdded in interface CouponIfpublic void setDateAdded(java.util.Calendar dateAdded)
setDateAdded in interface CouponIfdateAdded - The dateAdded to set.public java.util.Calendar getLastModified()
getLastModified in interface CouponIfpublic void setLastModified(java.util.Calendar lastModified)
setLastModified in interface CouponIflastModified - The lastModified to set.Copyright © 2018 DS Data Systems UK Ltd.