public class AdminSpecial
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
dateAdded
dateAdded
|
private java.util.Date |
expirationDate
expirationDate
|
private java.lang.String |
formattedNewPrice
Formatted price for use in UI
|
private int |
id
id
|
private java.util.Date |
lastModified
lastModified
|
private java.math.BigDecimal |
newPrice
newPrice
|
private int |
productId
productId
|
private java.util.Date |
startDate
startDate
|
private byte |
status
status
|
private java.util.Date |
statusChangeDate
statusChangeDate
|
Constructor and Description |
---|
AdminSpecial()
Constructor
|
AdminSpecial(com.workingdogs.village.Record vr,
com.konakart.db.KKCriteria c)
Instantiates the attributes of the Review object from a Record object
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDateAdded() |
java.util.Date |
getExpirationDate() |
java.lang.String |
getFormattedNewPrice() |
int |
getId() |
java.util.Date |
getLastModified() |
java.math.BigDecimal |
getNewPrice() |
int |
getProductId() |
java.util.Date |
getStartDate() |
byte |
getStatus() |
java.util.Date |
getStatusChangeDate() |
boolean |
hasExpired()
Returns true if the special has expired
|
void |
setDateAdded(java.util.Date dateAdded) |
void |
setExpirationDate(java.util.Date expirationDate) |
void |
setFormattedNewPrice(java.lang.String formattedNewPrice) |
void |
setId(int id) |
void |
setLastModified(java.util.Date lastModified) |
void |
setNewPrice(java.math.BigDecimal newPrice) |
void |
setProductId(int productId) |
void |
setStartDate(java.util.Date startDate) |
void |
setStatus(byte status) |
void |
setStatusChangeDate(java.util.Date statusChangeDate) |
java.lang.String |
toString() |
boolean |
yetToStart()
Returns true if the special has yet to start
|
private int id
private int productId
private java.math.BigDecimal newPrice
private java.lang.String formattedNewPrice
private java.util.Date dateAdded
private java.util.Date lastModified
private java.util.Date expirationDate
private java.util.Date startDate
private java.util.Date statusChangeDate
private byte status
public AdminSpecial()
public AdminSpecial(com.workingdogs.village.Record vr, com.konakart.db.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 boolean hasExpired()
public boolean yetToStart()
public java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- The dateAdded to set.public java.util.Date getExpirationDate()
public void setExpirationDate(java.util.Date expirationDate)
expirationDate
- The expirationDate to set.public int getId()
public void setId(int id)
id
- The id to set.public java.util.Date getLastModified()
public void setLastModified(java.util.Date lastModified)
lastModified
- The lastModified to set.public java.math.BigDecimal getNewPrice()
public void setNewPrice(java.math.BigDecimal newPrice)
newPrice
- The newPrice to set.public int getProductId()
public void setProductId(int productId)
productId
- The productId to set.public byte getStatus()
public void setStatus(byte status)
status
- The status to set.public java.util.Date getStatusChangeDate()
public void setStatusChangeDate(java.util.Date statusChangeDate)
statusChangeDate
- The statusChangeDate to set.public java.lang.String getFormattedNewPrice()
public void setFormattedNewPrice(java.lang.String formattedNewPrice)
formattedNewPrice
- The formattedNewPrice to set.public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate
- the startDate to setCopyright © 2018 DS Data Systems UK Ltd.