com.konakartadmin.app
Class AdminReview

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

public class AdminReview
extends java.lang.Object
implements AdminObjectIf

A review object for the Admin App


Field Summary
private  java.math.BigDecimal averageRating
          averageRating
private  java.lang.String custom1
          custom field
private  java.lang.String custom2
          custom field
private  java.lang.String custom3
          custom field
private  int customerId
          customerId
private  java.lang.String customerName
          customerName
private  java.util.Date dateAdded
          dateAdded
private  java.util.Date dateLastModified
          dateLastModified
private  int id
          id
private  int languageId
          languageId
private  java.lang.String languageName
          languageName
private  AdminProduct product
          product
private  int productId
          productId
private  int rating
          rating
private  java.lang.String reviewText
          reviewText
private  int status
          Status.
private  int timesRead
          timesRead
 
Constructor Summary
AdminReview()
          Constructor
AdminReview(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.math.BigDecimal getAverageRating()
           
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 int getCustomerId()
           
 java.lang.String getCustomerName()
           
 java.util.Date getDateAdded()
           
 java.util.Date getDateLastModified()
           
 int getId()
           
 int getLanguageId()
           
 java.lang.String getLanguageName()
           
 AdminProduct getProduct()
           
 int getProductId()
           
 int getRating()
           
 java.lang.String getReviewText()
           
 int getStatus()
          It can take the following values: com.konakartadmin.bl.KonakartAdminConstants.REVIEW_VISIBLE = The review can be seen by customers in the store-front application com.konakartadmin.bl.KonakartAdminConstants.REVIEW_INVISIBLE = The review cannot be seen by customers in the store-front application.
 int getTimesRead()
           
 void setAverageRating(java.math.BigDecimal averageRating)
           
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 void setCustom3(java.lang.String custom3)
           
 void setCustomerId(int customerId)
           
 void setCustomerName(java.lang.String customerName)
           
 void setDateAdded(java.util.Date dateAdded)
           
 void setDateLastModified(java.util.Date dateLastModified)
           
 void setId(int id)
           
 void setLanguageId(int languageId)
           
 void setLanguageName(java.lang.String languageName)
           
 void setProduct(AdminProduct product)
           
 void setProductId(int productId)
           
 void setRating(int rating)
           
 void setReviewText(java.lang.String reviewText)
           
 void setStatus(int status)
          It can take the following values: com.konakartadmin.bl.KonakartAdminConstants.REVIEW_VISIBLE = The review can be seen by customers in the store-front application com.konakartadmin.bl.KonakartAdminConstants.REVIEW_INVISIBLE = The review cannot be seen by customers in the store-front application.
 void setTimesRead(int timesRead)
           
 java.lang.String toString()
           
 java.lang.String toStringBrief()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

private int id
id


customerName

private java.lang.String customerName
customerName


rating

private int rating
rating


averageRating

private java.math.BigDecimal averageRating
averageRating


dateAdded

private java.util.Date dateAdded
dateAdded


dateLastModified

private java.util.Date dateLastModified
dateLastModified


timesRead

private int timesRead
timesRead


reviewText

private java.lang.String reviewText
reviewText


customerId

private int customerId
customerId


productId

private int productId
productId


status

private int status
Status. It can take the following values:


product

private AdminProduct product
product


languageName

private java.lang.String languageName
languageName


languageId

private int languageId
languageId


custom1

private java.lang.String custom1
custom field


custom2

private java.lang.String custom2
custom field


custom3

private java.lang.String custom3
custom field

Constructor Detail

AdminReview

public AdminReview()
Constructor


AdminReview

public AdminReview(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

toStringBrief

public java.lang.String toStringBrief()
Returns:
Returns a string containing selected attributes of the Review object

getCustomerId

public int getCustomerId()
Returns:
Returns the customerId.

setCustomerId

public void setCustomerId(int customerId)
Parameters:
customerId - The customerId to set.

getCustomerName

public java.lang.String getCustomerName()
Returns:
Returns the customerName.

setCustomerName

public void setCustomerName(java.lang.String customerName)
Parameters:
customerName - The customerName 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.

getLanguageId

public int getLanguageId()
Returns:
Returns the languageId.

setLanguageId

public void setLanguageId(int languageId)
Parameters:
languageId - The languageId to set.

getLanguageName

public java.lang.String getLanguageName()
Returns:
Returns the languageName.

setLanguageName

public void setLanguageName(java.lang.String languageName)
Parameters:
languageName - The languageName to set.

getProductId

public int getProductId()
Returns:
Returns the productId.

setProductId

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

getRating

public int getRating()
Returns:
Returns the rating.

setRating

public void setRating(int rating)
Parameters:
rating - The rating to set.

getAverageRating

public java.math.BigDecimal getAverageRating()
Returns:
Returns the averageRating.

setAverageRating

public void setAverageRating(java.math.BigDecimal averageRating)
Parameters:
averageRating - The averageRating to set.

getReviewText

public java.lang.String getReviewText()
Returns:
Returns the reviewText.

setReviewText

public void setReviewText(java.lang.String reviewText)
Parameters:
reviewText - The reviewText to set.

getTimesRead

public int getTimesRead()
Returns:
Returns the timesRead.

setTimesRead

public void setTimesRead(int timesRead)
Parameters:
timesRead - The timesRead to set.

getDateAdded

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

setDateAdded

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

getProduct

public AdminProduct getProduct()
Returns:
Returns the product.

setProduct

public void setProduct(AdminProduct product)
Parameters:
product - The product to set.

getCustom1

public java.lang.String getCustom1()
Returns:
Returns the custom1.

setCustom1

public void setCustom1(java.lang.String custom1)
Parameters:
custom1 - The custom1 to set.

getCustom2

public java.lang.String getCustom2()
Returns:
Returns the custom2.

setCustom2

public void setCustom2(java.lang.String custom2)
Parameters:
custom2 - The custom2 to set.

getCustom3

public java.lang.String getCustom3()
Returns:
Returns the custom3.

setCustom3

public void setCustom3(java.lang.String custom3)
Parameters:
custom3 - The custom3 to set.

getStatus

public int getStatus()
It can take the following values:

Returns:
the status

setStatus

public void setStatus(int status)
It can take the following values:

Parameters:
status - the status to set

getDateLastModified

public java.util.Date getDateLastModified()
Returns:
the dateLastModified

setDateLastModified

public void setDateLastModified(java.util.Date dateLastModified)
Parameters:
dateLastModified - the dateLastModified to set


Copyright © 2011 DS Data Systems UK Ltd.