public interface ReviewMgrIf
| Modifier and Type | Method and Description |
|---|---|
void |
escapeReview(ReviewIf review)
Escape the Strings in the Review object using the rules defined in the properties file by the
property konakart.escape.chars .
|
Reviews |
getAllReviews(DataDescriptorIf dataDesc)
Calls the getReviewsPerProduct method with a negative productId value so that it is not
included in the Where clause of the query
|
Review |
getReview(int reviewId)
Returns a review for the given reviewId
|
Reviews |
getReviews(DataDescriptorIf dataDesc,
ReviewSearchIf search)
Returns an array of Reviews (within a Reviews object) that match the specified search
criteria in the ReviewSearch object.
|
Reviews |
getReviewsPerProduct(DataDescriptorIf dataDesc,
int productId)
Returns an array of reviews for the given productId
|
Reviews |
getReviewsPerVendor(DataDescriptorIf dataDesc,
int vendorId)
Returns an array of reviews for the given vendorId
|
Review |
getVendorReview(int reviewId)
Returns a vendor review for the given reviewId
|
Reviews |
getVendorReviews(DataDescriptorIf dataDesc,
ReviewSearchIf search)
Returns an array of Reviews (within a Reviews object) that match the specified search
criteria in the ReviewSearch object.
|
int |
writeReview(java.lang.String sessionId,
ReviewIf review)
A new customer review is added to the system.
|
Reviews getAllReviews(DataDescriptorIf dataDesc) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
dataDesc - the dataDescorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionReviews getReviewsPerProduct(DataDescriptorIf dataDesc, int productId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
dataDesc - the dataDescproductId - the productIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionReview getReview(int reviewId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
reviewId - the reviewIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionReviews getReviews(DataDescriptorIf dataDesc, ReviewSearchIf search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
The ReviewSearch object also allows you to specify that the return data contains:
dataDesc controls the following functionality:
dataDesc - The data descriptor object that defines the sort order, constraints on custom
fields and offset and limit for paging.search - The Review search object that defines the search criteriaorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionint writeReview(java.lang.String sessionId,
ReviewIf review)
throws java.lang.Exception
Alter table t Engine = InnoDB;. The standard engine seems to be MyIsam which
doesn't support transactions.sessionId - the sessionIdreview - the reviewjava.lang.Exception - an unexpected exceptionvoid escapeReview(ReviewIf review)
review - the reviewReviews getVendorReviews(DataDescriptorIf dataDesc, ReviewSearchIf search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
The ReviewSearch object also allows you to specify that the return data contains:
dataDesc controls the following functionality:
dataDesc - The data descriptor object that defines the sort order, constraints on custom
fields and offset and limit for paging.search - The Review search object that defines the search criteriaorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionReview getVendorReview(int reviewId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
reviewId - the reviewIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionReviews getReviewsPerVendor(DataDescriptorIf dataDesc, int vendorId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
dataDesc - the dataDescvendorId - the vendorIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)com.konakart.app.KKException - an unexpected KKException exceptionCopyright © 2018 DS Data Systems UK Ltd.