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.Object
public boolean hasExpired()
public int getCustomerId()
getCustomerId
in interface DigitalDownloadIf
public void setCustomerId(int customerId)
setCustomerId
in interface DigitalDownloadIf
customerId
- The customerId to set.public java.util.Calendar getDateAdded()
getDateAdded
in interface DigitalDownloadIf
public void setDateAdded(java.util.Calendar dateAdded)
setDateAdded
in interface DigitalDownloadIf
dateAdded
- The dateAdded to set.public java.util.Calendar getExpirationDate()
DigitalDownloadIf
getExpirationDate
in interface DigitalDownloadIf
public void setExpirationDate(java.util.Calendar expirationDate)
DigitalDownloadIf
setExpirationDate
in interface DigitalDownloadIf
expirationDate
- The expirationDate to set.public java.util.Calendar getLastModified()
getLastModified
in interface DigitalDownloadIf
public void setLastModified(java.util.Calendar lastModified)
setLastModified
in interface DigitalDownloadIf
lastModified
- The lastModified to set.public int getMaxDownloads()
DigitalDownloadIf
getMaxDownloads
in interface DigitalDownloadIf
public void setMaxDownloads(int maxDownloads)
DigitalDownloadIf
setMaxDownloads
in interface DigitalDownloadIf
maxDownloads
- The maxDownloads to set.public int getProductId()
DigitalDownloadIf
getProductId
in interface DigitalDownloadIf
public void setProductId(int productId)
DigitalDownloadIf
setProductId
in interface DigitalDownloadIf
productId
- The productId to set.public int getTimesDownloaded()
DigitalDownloadIf
getTimesDownloaded
in interface DigitalDownloadIf
public void setTimesDownloaded(int timesDownloaded)
DigitalDownloadIf
setTimesDownloaded
in interface DigitalDownloadIf
timesDownloaded
- The timesDownloaded to set.public ProductIf getProduct()
getProduct
in interface DigitalDownloadIf
public void setProduct(ProductIf product)
setProduct
in interface DigitalDownloadIf
product
- The product to set.public java.lang.String getFilePath()
DigitalDownloadIf
getFilePath
in interface DigitalDownloadIf
public void setFilePath(java.lang.String filePath)
DigitalDownloadIf
setFilePath
in interface DigitalDownloadIf
filePath
- the filePath to setpublic int getId()
getId
in interface DigitalDownloadIf
public void setId(int id)
setId
in interface DigitalDownloadIf
id
- the id to setpublic java.lang.String getCustom1()
getCustom1
in interface DigitalDownloadIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface DigitalDownloadIf
custom1
- the custom1 to setpublic java.lang.String getCustom2()
getCustom2
in interface DigitalDownloadIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface DigitalDownloadIf
custom2
- the custom2 to setpublic java.lang.String getCustom3()
getCustom3
in interface DigitalDownloadIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface DigitalDownloadIf
custom3
- the custom3 to setCopyright © 2018 DS Data Systems UK Ltd.