|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.Coupon
public class Coupon
The Coupon class contains information about the coupon which can be used to activate promotions on an order.
| Constructor Summary | |
|---|---|
Coupon()
Constructor |
|
Coupon(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()
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Coupon()
public Coupon(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 isValid()
public java.lang.String getCouponCode()
CouponIf
getCouponCode in interface CouponIfpublic void setCouponCode(java.lang.String couponCode)
CouponIf
setCouponCode 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 int getId()
getId in interface CouponIfpublic void setId(int id)
setId in interface CouponIfid - The id to set.public int getMaxUse()
CouponIf
getMaxUse in interface CouponIfpublic void setMaxUse(int maxUse)
CouponIf
setMaxUse in interface CouponIfmaxUse - The maxUse to set.public java.lang.String getName()
getName in interface CouponIfpublic void setName(java.lang.String name)
setName in interface CouponIfname - The name to set.public int getTimesUsed()
CouponIf
getTimesUsed in interface CouponIfpublic void setTimesUsed(int timesUsed)
CouponIf
setTimesUsed 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||