|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReviewMgrIf
ReviewMgrIf Interface which an implementation of this manager must adhere to.
| Method Summary | |
|---|---|
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 |
getReviewsPerProduct(DataDescriptorIf dataDesc,
int productId)
Returns an array of reviews for the given productId |
int |
writeReview(java.lang.String sessionId,
ReviewIf review)
A new customer review is added to the system. |
| Method Detail |
|---|
Reviews getAllReviews(DataDescriptorIf dataDesc)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
dataDesc -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
Reviews getReviewsPerProduct(DataDescriptorIf dataDesc,
int productId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
dataDesc - productId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
Review getReview(int reviewId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
reviewId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
int 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 - review -
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||