public class DigitalDownload extends java.lang.Object implements DigitalDownloadIf
| Constructor and Description |
|---|
DigitalDownload()
Constructor
|
DigitalDownload(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 |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
int |
getCustomerId() |
java.util.Calendar |
getDateAdded() |
java.util.Calendar |
getExpirationDate()
The date at which the download expires and the link will be removed from the UI.
|
java.lang.String |
getFilePath()
The path of the file which will override the filePath defined in the product object
|
int |
getId() |
java.util.Calendar |
getLastModified() |
int |
getMaxDownloads()
The maximum number of downloads that may be performed from a link, after which the link is
removed.
|
ProductIf |
getProduct() |
int |
getProductId()
The id of the digital download product.
|
int |
getTimesDownloaded()
The number of times that the product has been downloaded.
|
boolean |
hasExpired()
Determine whether the digital download has expired
|
void |
setCustom1(java.lang.String custom1) |
void |
setCustom2(java.lang.String custom2) |
void |
setCustom3(java.lang.String custom3) |
void |
setCustomerId(int customerId) |
void |
setDateAdded(java.util.Calendar dateAdded) |
void |
setExpirationDate(java.util.Calendar expirationDate)
The date at which the download expires and the link will be removed from the UI.
|
void |
setFilePath(java.lang.String filePath)
The path of the file which will override the filePath defined in the product object
|
void |
setId(int id) |
void |
setLastModified(java.util.Calendar lastModified) |
void |
setMaxDownloads(int maxDownloads)
The maximum number of downloads that may be performed from a link, after which the link is
removed.
|
void |
setProduct(ProductIf product) |
void |
setProductId(int productId)
The id of the digital download product.
|
void |
setTimesDownloaded(int timesDownloaded)
The number of times that the product has been downloaded.
|
java.lang.String |
toString() |
public DigitalDownload()
public DigitalDownload(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 boolean hasExpired()
public int getCustomerId()
getCustomerId in interface DigitalDownloadIfpublic void setCustomerId(int customerId)
setCustomerId in interface DigitalDownloadIfcustomerId - The customerId to set.public java.util.Calendar getDateAdded()
getDateAdded in interface DigitalDownloadIfpublic void setDateAdded(java.util.Calendar dateAdded)
setDateAdded in interface DigitalDownloadIfdateAdded - The dateAdded to set.public java.util.Calendar getExpirationDate()
DigitalDownloadIfgetExpirationDate in interface DigitalDownloadIfpublic void setExpirationDate(java.util.Calendar expirationDate)
DigitalDownloadIfsetExpirationDate in interface DigitalDownloadIfexpirationDate - The expirationDate to set.public java.util.Calendar getLastModified()
getLastModified in interface DigitalDownloadIfpublic void setLastModified(java.util.Calendar lastModified)
setLastModified in interface DigitalDownloadIflastModified - The lastModified to set.public int getMaxDownloads()
DigitalDownloadIfgetMaxDownloads in interface DigitalDownloadIfpublic void setMaxDownloads(int maxDownloads)
DigitalDownloadIfsetMaxDownloads in interface DigitalDownloadIfmaxDownloads - The maxDownloads to set.public int getProductId()
DigitalDownloadIfgetProductId in interface DigitalDownloadIfpublic void setProductId(int productId)
DigitalDownloadIfsetProductId in interface DigitalDownloadIfproductId - The productId to set.public int getTimesDownloaded()
DigitalDownloadIfgetTimesDownloaded in interface DigitalDownloadIfpublic void setTimesDownloaded(int timesDownloaded)
DigitalDownloadIfsetTimesDownloaded in interface DigitalDownloadIftimesDownloaded - The timesDownloaded to set.public ProductIf getProduct()
getProduct in interface DigitalDownloadIfpublic void setProduct(ProductIf product)
setProduct in interface DigitalDownloadIfproduct - The product to set.public java.lang.String getFilePath()
DigitalDownloadIfgetFilePath in interface DigitalDownloadIfpublic void setFilePath(java.lang.String filePath)
DigitalDownloadIfsetFilePath in interface DigitalDownloadIffilePath - the filePath to setpublic int getId()
getId in interface DigitalDownloadIfpublic void setId(int id)
setId in interface DigitalDownloadIfid - the id to setpublic java.lang.String getCustom1()
getCustom1 in interface DigitalDownloadIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface DigitalDownloadIfcustom1 - the custom1 to setpublic java.lang.String getCustom2()
getCustom2 in interface DigitalDownloadIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface DigitalDownloadIfcustom2 - the custom2 to setpublic java.lang.String getCustom3()
getCustom3 in interface DigitalDownloadIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface DigitalDownloadIfcustom3 - the custom3 to setCopyright © 2018 DS Data Systems UK Ltd.