@Entity public class OfferCodeImpl extends Object implements OfferCode
| Modifier and Type | Field and Description |
|---|---|
protected Long |
id |
protected Integer |
maxUses |
protected Offer |
offer |
protected String |
offerCode |
protected Date |
offerCodeEndDate |
protected Date |
offerCodeStartDate |
protected List<Order> |
orders |
static long |
serialVersionUID |
protected int |
uses
Deprecated.
|
| Constructor and Description |
|---|
OfferCodeImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Date |
getEndDate() |
Long |
getId() |
int |
getMaxUses()
Returns the maximum number of times that this code can be used regardless of Order or Customer
0 indicates unlimited usage.
|
Offer |
getOffer() |
String |
getOfferCode() |
List<Order> |
getOrders() |
Date |
getStartDate() |
int |
getUses()
Deprecated.
|
int |
hashCode() |
boolean |
isLimitedUse()
Indicates that this code has a limit on how many times it can be used.
|
boolean |
isUnlimitedUse()
Indicates that this is an unlimited-use code.
|
void |
setEndDate(Date endDate) |
void |
setId(Long id) |
void |
setMaxUses(int maxUses)
Sets the maximum number of times that this code can be used regardless of Order or Customer
0 indicates unlimited usage.
|
void |
setOffer(Offer offer) |
void |
setOfferCode(String offerCode) |
void |
setOrders(List<Order> orders) |
void |
setStartDate(Date startDate) |
void |
setUses(int uses)
Deprecated.
|
public static final long serialVersionUID
protected Long id
protected Offer offer
protected String offerCode
protected Date offerCodeStartDate
protected Date offerCodeEndDate
protected Integer maxUses
@Deprecated protected int uses
public String getOfferCode()
getOfferCode in interface OfferCodepublic void setOfferCode(String offerCode)
setOfferCode in interface OfferCodepublic int getMaxUses()
OfferCodegetMaxUses in interface OfferCodepublic void setMaxUses(int maxUses)
OfferCodesetMaxUses in interface OfferCodepublic boolean isUnlimitedUse()
OfferCodeOfferCode.getMaxUses() == 0isUnlimitedUse in interface OfferCodepublic boolean isLimitedUse()
OfferCodeOfferCode.getMaxUses() > 0isLimitedUse in interface OfferCode@Deprecated public int getUses()
@Deprecated public void setUses(int uses)
public Date getStartDate()
getStartDate in interface OfferCodepublic void setStartDate(Date startDate)
setStartDate in interface OfferCodepublic Date getEndDate()
getEndDate in interface OfferCodepublic void setEndDate(Date endDate)
setEndDate in interface OfferCodeCopyright © 2014. All Rights Reserved.