com.konakartadmin.app
Class AdminSpecial

java.lang.Object
  extended by com.konakartadmin.app.AdminSpecial
All Implemented Interfaces:
AdminObjectIf

public class AdminSpecial
extends java.lang.Object
implements AdminObjectIf

When linked to an AdminProduct, it defines a special price for that product.


Field Summary
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  byte status
          status
private  java.util.Date statusChangeDate
          statusChangeDate
 
Constructor Summary
AdminSpecial()
          Constructor
AdminSpecial(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Review object from a Record object
 
Method Summary
 java.util.Date getDateAdded()
           
 java.util.Date getExpirationDate()
           
 java.lang.String getFormattedNewPrice()
           
 int getId()
           
 java.util.Date getLastModified()
           
 java.math.BigDecimal getNewPrice()
           
 int getProductId()
           
 byte getStatus()
           
 java.util.Date getStatusChangeDate()
           
 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 setStatus(byte status)
           
 void setStatusChangeDate(java.util.Date statusChangeDate)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private int id
id


productId

private int productId
productId


newPrice

private java.math.BigDecimal newPrice
newPrice


formattedNewPrice

private java.lang.String formattedNewPrice
Formatted price for use in UI


dateAdded

private java.util.Date dateAdded
dateAdded


lastModified

private java.util.Date lastModified
lastModified


expirationDate

private java.util.Date expirationDate
expirationDate


statusChangeDate

private java.util.Date statusChangeDate
statusChangeDate


status

private byte status
status

Constructor Detail

AdminSpecial

public AdminSpecial()
Constructor


AdminSpecial

public AdminSpecial(com.workingdogs.village.Record vr,
                    org.apache.torque.util.Criteria c)
             throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Review 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()
Specified by:
toString in interface AdminObjectIf
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Review object

getDateAdded

public java.util.Date getDateAdded()
Returns:
Returns the dateAdded.

setDateAdded

public void setDateAdded(java.util.Date dateAdded)
Parameters:
dateAdded - The dateAdded to set.

getExpirationDate

public java.util.Date getExpirationDate()
Returns:
Returns the expirationDate.

setExpirationDate

public void setExpirationDate(java.util.Date expirationDate)
Parameters:
expirationDate - The expirationDate to set.

getId

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

setId

public void setId(int id)
Specified by:
setId in interface AdminObjectIf
Parameters:
id - The id to set.

getLastModified

public java.util.Date getLastModified()
Returns:
Returns the lastModified.

setLastModified

public void setLastModified(java.util.Date lastModified)
Parameters:
lastModified - The lastModified to set.

getNewPrice

public java.math.BigDecimal getNewPrice()
Returns:
Returns the newPrice.

setNewPrice

public void setNewPrice(java.math.BigDecimal newPrice)
Parameters:
newPrice - The newPrice to set.

getProductId

public int getProductId()
Returns:
Returns the productId.

setProductId

public void setProductId(int productId)
Parameters:
productId - The productId to set.

getStatus

public byte getStatus()
Returns:
Returns the status.

setStatus

public void setStatus(byte status)
Parameters:
status - The status to set.

getStatusChangeDate

public java.util.Date getStatusChangeDate()
Returns:
Returns the statusChangeDate.

setStatusChangeDate

public void setStatusChangeDate(java.util.Date statusChangeDate)
Parameters:
statusChangeDate - The statusChangeDate to set.

getFormattedNewPrice

public java.lang.String getFormattedNewPrice()
Returns:
Returns the formattedNewPrice.

setFormattedNewPrice

public void setFormattedNewPrice(java.lang.String formattedNewPrice)
Parameters:
formattedNewPrice - The formattedNewPrice to set.


Copyright © 2006 DS Data Systems UK Ltd.