|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.bl.BaseMgr
com.konakart.bl.ReviewMgr
public class ReviewMgr
Reviews Manager
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
Log |
| Fields inherited from class com.konakart.bl.BaseMgr |
|---|
templateBaseDir |
| Constructor Summary | |
|---|---|
ReviewMgr(KKEngIf eng)
Constructor |
|
| 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 |
protected int |
getCount(org.apache.torque.util.Criteria c)
This method is mainly used for paging. |
Review |
getReview(int reviewId)
Returns a review for the given reviewId |
protected Reviews |
getReviews(DataDescriptorIf dataDesc,
int productId,
int reviewId)
Returns an array of reviews for the given productId if reviewId is set to a negative number. |
Reviews |
getReviewsPerProduct(DataDescriptorIf dataDesc,
int productId)
Returns an array of reviews for the given productId |
protected void |
manageDataDescriptor(DataDescriptorIf dataDesc,
org.apache.torque.util.Criteria c)
Provides common code to deal with the management of the DataDescriptor |
int |
writeReview(java.lang.String sessionId,
ReviewIf review)
A new customer review is added to the system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public ReviewMgr(KKEngIf eng)
throws java.lang.Exception
eng -
java.lang.Exception| Method Detail |
|---|
public Reviews getAllReviews(DataDescriptorIf dataDesc)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
getAllReviews in interface ReviewMgrIfdataDesc -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
public Review getReview(int reviewId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
getReview in interface ReviewMgrIfreviewId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
public Reviews getReviewsPerProduct(DataDescriptorIf dataDesc,
int productId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
getReviewsPerProduct in interface ReviewMgrIfdataDesc - productId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
protected Reviews getReviews(DataDescriptorIf dataDesc,
int productId,
int reviewId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
dataDesc - productId - reviewId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
protected void manageDataDescriptor(DataDescriptorIf dataDesc,
org.apache.torque.util.Criteria c)
dataDesc - c -
public 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.
writeReview in interface ReviewMgrIfsessionId - review -
java.lang.Exception
protected int getCount(org.apache.torque.util.Criteria c)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
c -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||