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.Object
public java.lang.String toStringBrief()
public int getCustomerId()
getCustomerId
in interface ReviewIf
public void setCustomerId(int customerId)
setCustomerId
in interface ReviewIf
customerId
- The customerId to set.public java.lang.String getCustomerName()
getCustomerName
in interface ReviewIf
public void setCustomerName(java.lang.String customerName)
setCustomerName
in interface ReviewIf
customerName
- The customerName to set.public void setId(int id)
public int getLanguageId()
getLanguageId
in interface ReviewIf
public void setLanguageId(int languageId)
setLanguageId
in interface ReviewIf
languageId
- The languageId to set.public java.lang.String getLanguageName()
getLanguageName
in interface ReviewIf
public void setLanguageName(java.lang.String languageName)
setLanguageName
in interface ReviewIf
languageName
- The languageName to set.public int getProductId()
getProductId
in interface ReviewIf
public void setProductId(int productId)
setProductId
in interface ReviewIf
productId
- The productId to set.public int getRating()
ReviewIf
public void setRating(int rating)
ReviewIf
public java.math.BigDecimal getAverageRating()
ReviewIf
getAverageRating
in interface ReviewIf
public void setAverageRating(java.math.BigDecimal averageRating)
ReviewIf
setAverageRating
in interface ReviewIf
averageRating
- The averageRating to set.public java.lang.String getReviewText()
getReviewText
in interface ReviewIf
public void setReviewText(java.lang.String reviewText)
setReviewText
in interface ReviewIf
reviewText
- The reviewText to set.public int getTimesRead()
ReviewIf
getTimesRead
in interface ReviewIf
public void setTimesRead(int timesRead)
ReviewIf
setTimesRead
in interface ReviewIf
timesRead
- The timesRead to set.public java.util.Calendar getDateAdded()
getDateAdded
in interface ReviewIf
public void setDateAdded(java.util.Calendar dateAdded)
setDateAdded
in interface ReviewIf
dateAdded
- The dateAdded to set.public ProductIf getProduct()
getProduct
in interface ReviewIf
public void setProduct(ProductIf product)
setProduct
in interface ReviewIf
product
- The product to set.public java.lang.String getCustom1()
getCustom1
in interface ReviewIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface ReviewIf
custom1
- The custom1 to set.public java.lang.String getCustom2()
getCustom2
in interface ReviewIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface ReviewIf
custom2
- The custom2 to set.public java.lang.String getCustom3()
getCustom3
in interface ReviewIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface ReviewIf
custom3
- The custom3 to set.public int getVendorId()
getVendorId
in interface ReviewIf
public void setVendorId(int vendorId)
setVendorId
in interface ReviewIf
vendorId
- the vendorId to setCopyright © 2018 DS Data Systems UK Ltd.