com.konakart.app
Class DigitalDownload

java.lang.Object
  extended by com.konakart.app.DigitalDownload
All Implemented Interfaces:
DigitalDownloadIf

public class DigitalDownload
extends java.lang.Object
implements DigitalDownloadIf

The Digital Download class contains information about which users have products to download.


Constructor Summary
DigitalDownload()
          Constructor
DigitalDownload(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Promotion object from a Record object
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DigitalDownload

public DigitalDownload()
Constructor


DigitalDownload

public DigitalDownload(com.workingdogs.village.Record vr,
                       org.apache.torque.util.Criteria c)
                throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Promotion object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Digital Download object.

hasExpired

public boolean hasExpired()
Determine whether the digital download has expired

Returns:
Returns true if the digital download has expired

getCustomerId

public int getCustomerId()
Specified by:
getCustomerId in interface DigitalDownloadIf
Returns:
Returns the customerId.

setCustomerId

public void setCustomerId(int customerId)
Specified by:
setCustomerId in interface DigitalDownloadIf
Parameters:
customerId - The customerId to set.

getDateAdded

public java.util.Calendar getDateAdded()
Specified by:
getDateAdded in interface DigitalDownloadIf
Returns:
Returns the dateAdded.

setDateAdded

public void setDateAdded(java.util.Calendar dateAdded)
Specified by:
setDateAdded in interface DigitalDownloadIf
Parameters:
dateAdded - The dateAdded to set.

getExpirationDate

public java.util.Calendar getExpirationDate()
Description copied from interface: DigitalDownloadIf
The date at which the download expires and the link will be removed from the UI.

Specified by:
getExpirationDate in interface DigitalDownloadIf
Returns:
Returns the expirationDate.

setExpirationDate

public void setExpirationDate(java.util.Calendar expirationDate)
Description copied from interface: DigitalDownloadIf
The date at which the download expires and the link will be removed from the UI.

Specified by:
setExpirationDate in interface DigitalDownloadIf
Parameters:
expirationDate - The expirationDate to set.

getLastModified

public java.util.Calendar getLastModified()
Specified by:
getLastModified in interface DigitalDownloadIf
Returns:
Returns the lastModified.

setLastModified

public void setLastModified(java.util.Calendar lastModified)
Specified by:
setLastModified in interface DigitalDownloadIf
Parameters:
lastModified - The lastModified to set.

getMaxDownloads

public int getMaxDownloads()
Description copied from interface: DigitalDownloadIf
The maximum number of downloads that may be performed from a link, after which the link is removed.

Specified by:
getMaxDownloads in interface DigitalDownloadIf
Returns:
Returns the maxDownloads.

setMaxDownloads

public void setMaxDownloads(int maxDownloads)
Description copied from interface: DigitalDownloadIf
The maximum number of downloads that may be performed from a link, after which the link is removed.

Specified by:
setMaxDownloads in interface DigitalDownloadIf
Parameters:
maxDownloads - The maxDownloads to set.

getProductId

public int getProductId()
Description copied from interface: DigitalDownloadIf
The id of the digital download product.

Specified by:
getProductId in interface DigitalDownloadIf
Returns:
Returns the productId.

setProductId

public void setProductId(int productId)
Description copied from interface: DigitalDownloadIf
The id of the digital download product.

Specified by:
setProductId in interface DigitalDownloadIf
Parameters:
productId - The productId to set.

getTimesDownloaded

public int getTimesDownloaded()
Description copied from interface: DigitalDownloadIf
The number of times that the product has been downloaded.

Specified by:
getTimesDownloaded in interface DigitalDownloadIf
Returns:
Returns the timesDownloaded.

setTimesDownloaded

public void setTimesDownloaded(int timesDownloaded)
Description copied from interface: DigitalDownloadIf
The number of times that the product has been downloaded.

Specified by:
setTimesDownloaded in interface DigitalDownloadIf
Parameters:
timesDownloaded - The timesDownloaded to set.

getProduct

public ProductIf getProduct()
Specified by:
getProduct in interface DigitalDownloadIf
Returns:
Returns the product.

setProduct

public void setProduct(ProductIf product)
Specified by:
setProduct in interface DigitalDownloadIf
Parameters:
product - The product to set.

getFilePath

public java.lang.String getFilePath()
Description copied from interface: DigitalDownloadIf
The path of the file which will override the filePath defined in the product object

Specified by:
getFilePath in interface DigitalDownloadIf
Returns:
the filePath

setFilePath

public void setFilePath(java.lang.String filePath)
Description copied from interface: DigitalDownloadIf
The path of the file which will override the filePath defined in the product object

Specified by:
setFilePath in interface DigitalDownloadIf
Parameters:
filePath - the filePath to set

getId

public int getId()
Specified by:
getId in interface DigitalDownloadIf
Returns:
the id

setId

public void setId(int id)
Specified by:
setId in interface DigitalDownloadIf
Parameters:
id - the id to set

getCustom1

public java.lang.String getCustom1()
Specified by:
getCustom1 in interface DigitalDownloadIf
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Specified by:
setCustom1 in interface DigitalDownloadIf
Parameters:
custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Specified by:
getCustom2 in interface DigitalDownloadIf
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Specified by:
setCustom2 in interface DigitalDownloadIf
Parameters:
custom2 - the custom2 to set

getCustom3

public java.lang.String getCustom3()
Specified by:
getCustom3 in interface DigitalDownloadIf
Returns:
the custom3

setCustom3

public void setCustom3(java.lang.String custom3)
Specified by:
setCustom3 in interface DigitalDownloadIf
Parameters:
custom3 - the custom3 to set


Copyright © 2011 DS Data Systems UK Ltd.