com.konakart.app
Class Review

java.lang.Object
  extended by com.konakart.app.Review
All Implemented Interfaces:
ReviewIf

public class Review
extends java.lang.Object
implements ReviewIf


Constructor Summary
Review()
          Constructor
Review(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()
          The average rating for a product based on all of its reviews.
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 int getCustomerId()
           
 java.lang.String getCustomerName()
           
 java.util.Calendar getDateAdded()
           
 int getId()
           
 int getLanguageId()
           
 java.lang.String getLanguageName()
           
 ProductIf getProduct()
           
 int getProductId()
           
 int getRating()
          The rating is normally an integer in the range 1 to 5.
 java.lang.String getReviewText()
           
 int getTimesRead()
          How many times the review has been read.
 void setAverageRating(java.math.BigDecimal averageRating)
          The average rating for a product based on all of its reviews.
 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.Calendar dateAdded)
           
 void setId(int id)
           
 void setLanguageId(int languageId)
           
 void setLanguageName(java.lang.String languageName)
           
 void setProduct(ProductIf product)
           
 void setProductId(int productId)
           
 void setRating(int rating)
          The rating is normally an integer in the range 1 to 5.
 void setReviewText(java.lang.String reviewText)
           
 void setTimesRead(int timesRead)
          How many times the review has been read.
 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
 

Constructor Detail

Review

public Review()
Constructor


Review

public Review(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()
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()
Specified by:
getCustomerId in interface ReviewIf
Returns:
Returns the customerId.

setCustomerId

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

getCustomerName

public java.lang.String getCustomerName()
Specified by:
getCustomerName in interface ReviewIf
Returns:
Returns the customerName.

setCustomerName

public void setCustomerName(java.lang.String customerName)
Specified by:
setCustomerName in interface ReviewIf
Parameters:
customerName - The customerName to set.

getId

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

setId

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

getLanguageId

public int getLanguageId()
Specified by:
getLanguageId in interface ReviewIf
Returns:
Returns the languageId.

setLanguageId

public void setLanguageId(int languageId)
Specified by:
setLanguageId in interface ReviewIf
Parameters:
languageId - The languageId to set.

getLanguageName

public java.lang.String getLanguageName()
Specified by:
getLanguageName in interface ReviewIf
Returns:
Returns the languageName.

setLanguageName

public void setLanguageName(java.lang.String languageName)
Specified by:
setLanguageName in interface ReviewIf
Parameters:
languageName - The languageName to set.

getProductId

public int getProductId()
Specified by:
getProductId in interface ReviewIf
Returns:
Returns the productId.

setProductId

public void setProductId(int productId)
Specified by:
setProductId in interface ReviewIf
Parameters:
productId - The productId to set.

getRating

public int getRating()
Description copied from interface: ReviewIf
The rating is normally an integer in the range 1 to 5.

Specified by:
getRating in interface ReviewIf
Returns:
Returns the rating.

setRating

public void setRating(int rating)
Description copied from interface: ReviewIf
The rating is normally an integer in the range 1 to 5.

Specified by:
setRating in interface ReviewIf
Parameters:
rating - The rating to set.

getAverageRating

public java.math.BigDecimal getAverageRating()
Description copied from interface: ReviewIf
The average rating for a product based on all of its reviews.

Specified by:
getAverageRating in interface ReviewIf
Returns:
Returns the averageRating.

setAverageRating

public void setAverageRating(java.math.BigDecimal averageRating)
Description copied from interface: ReviewIf
The average rating for a product based on all of its reviews.

Specified by:
setAverageRating in interface ReviewIf
Parameters:
averageRating - The averageRating to set.

getReviewText

public java.lang.String getReviewText()
Specified by:
getReviewText in interface ReviewIf
Returns:
Returns the reviewText.

setReviewText

public void setReviewText(java.lang.String reviewText)
Specified by:
setReviewText in interface ReviewIf
Parameters:
reviewText - The reviewText to set.

getTimesRead

public int getTimesRead()
Description copied from interface: ReviewIf
How many times the review has been read.

Specified by:
getTimesRead in interface ReviewIf
Returns:
Returns the timesRead.

setTimesRead

public void setTimesRead(int timesRead)
Description copied from interface: ReviewIf
How many times the review has been read.

Specified by:
setTimesRead in interface ReviewIf
Parameters:
timesRead - The timesRead to set.

getDateAdded

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

setDateAdded

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

getProduct

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

setProduct

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

getCustom1

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

setCustom1

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

getCustom2

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

setCustom2

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

getCustom3

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

setCustom3

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


Copyright © 2011 DS Data Systems UK Ltd.