| Constructor and Description |
|---|
Review()
Constructor
|
Review(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Review object from a Record object
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
getVendorId() |
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.
|
void |
setVendorId(int vendorId) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public Review()
public Review(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.Objectpublic java.lang.String toStringBrief()
public int getCustomerId()
getCustomerId in interface ReviewIfpublic void setCustomerId(int customerId)
setCustomerId in interface ReviewIfcustomerId - The customerId to set.public java.lang.String getCustomerName()
getCustomerName in interface ReviewIfpublic void setCustomerName(java.lang.String customerName)
setCustomerName in interface ReviewIfcustomerName - The customerName to set.public void setId(int id)
public int getLanguageId()
getLanguageId in interface ReviewIfpublic void setLanguageId(int languageId)
setLanguageId in interface ReviewIflanguageId - The languageId to set.public java.lang.String getLanguageName()
getLanguageName in interface ReviewIfpublic void setLanguageName(java.lang.String languageName)
setLanguageName in interface ReviewIflanguageName - The languageName to set.public int getProductId()
getProductId in interface ReviewIfpublic void setProductId(int productId)
setProductId in interface ReviewIfproductId - The productId to set.public int getRating()
ReviewIfpublic void setRating(int rating)
ReviewIfpublic java.math.BigDecimal getAverageRating()
ReviewIfgetAverageRating in interface ReviewIfpublic void setAverageRating(java.math.BigDecimal averageRating)
ReviewIfsetAverageRating in interface ReviewIfaverageRating - The averageRating to set.public java.lang.String getReviewText()
getReviewText in interface ReviewIfpublic void setReviewText(java.lang.String reviewText)
setReviewText in interface ReviewIfreviewText - The reviewText to set.public int getTimesRead()
ReviewIfgetTimesRead in interface ReviewIfpublic void setTimesRead(int timesRead)
ReviewIfsetTimesRead in interface ReviewIftimesRead - The timesRead to set.public java.util.Calendar getDateAdded()
getDateAdded in interface ReviewIfpublic void setDateAdded(java.util.Calendar dateAdded)
setDateAdded in interface ReviewIfdateAdded - The dateAdded to set.public ProductIf getProduct()
getProduct in interface ReviewIfpublic void setProduct(ProductIf product)
setProduct in interface ReviewIfproduct - The product to set.public java.lang.String getCustom1()
getCustom1 in interface ReviewIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface ReviewIfcustom1 - The custom1 to set.public java.lang.String getCustom2()
getCustom2 in interface ReviewIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface ReviewIfcustom2 - The custom2 to set.public java.lang.String getCustom3()
getCustom3 in interface ReviewIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface ReviewIfcustom3 - The custom3 to set.public int getVendorId()
getVendorId in interface ReviewIfpublic void setVendorId(int vendorId)
setVendorId in interface ReviewIfvendorId - the vendorId to setCopyright © 2018 DS Data Systems UK Ltd.