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.Object
public java.lang.String toStringBrief()
public boolean isValid()
public java.lang.String getCouponCode()
CouponIf
getCouponCode
in interface CouponIf
public void setCouponCode(java.lang.String couponCode)
CouponIf
setCouponCode
in interface CouponIf
couponCode
- The couponCode to set.public java.lang.String getCustom1()
getCustom1
in interface CouponIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface CouponIf
custom1
- The custom1 to set.public java.lang.String getCustom2()
getCustom2
in interface CouponIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface CouponIf
custom2
- The custom2 to set.public java.lang.String getCustom3()
getCustom3
in interface CouponIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface CouponIf
custom3
- The custom3 to set.public java.lang.String getCustom4()
getCustom4
in interface CouponIf
public void setCustom4(java.lang.String custom4)
setCustom4
in interface CouponIf
custom4
- The custom4 to set.public java.lang.String getCustom5()
getCustom5
in interface CouponIf
public void setCustom5(java.lang.String custom5)
setCustom5
in interface CouponIf
custom5
- The custom5 to set.public java.lang.String getDescription()
getDescription
in interface CouponIf
public void setDescription(java.lang.String description)
setDescription
in interface CouponIf
description
- The description to set.public void setId(int id)
public int getMaxUse()
CouponIf
public void setMaxUse(int maxUse)
CouponIf
public java.lang.String getName()
public void setName(java.lang.String name)
public int getTimesUsed()
CouponIf
getTimesUsed
in interface CouponIf
public void setTimesUsed(int timesUsed)
CouponIf
setTimesUsed
in interface CouponIf
timesUsed
- The timesUsed to set.public java.util.Calendar getDateAdded()
getDateAdded
in interface CouponIf
public void setDateAdded(java.util.Calendar dateAdded)
setDateAdded
in interface CouponIf
dateAdded
- The dateAdded to set.public java.util.Calendar getLastModified()
getLastModified
in interface CouponIf
public void setLastModified(java.util.Calendar lastModified)
setLastModified
in interface CouponIf
lastModified
- The lastModified to set.Copyright © 2018 DS Data Systems UK Ltd.