com.konakartadmin.blif
Interface AdminReviewMgrIf

All Known Implementing Classes:
AdminReviewMgr

public interface AdminReviewMgrIf

AdminReviewMgrIf


Method Summary
 void deleteReview(int reviewId)
          Delete the review referenced to by reviewId.
 void deleteReviewsPerProduct(int productId, java.sql.Connection connection)
          Delete the reviews for the product identified by productId.
 void editReview(AdminReview review)
          Edit a review
 AdminReviews getAllReviews(AdminDataDescriptor dataDesc)
          Calls the getReviewsPerProduct method with a negative productId value so that it is not included in the Where clause of the query
 AdminReview getReview(int reviewId)
          Returns a review for the given reviewId
 AdminReviews getReviews(AdminDataDescriptor dataDesc, AdminReviewSearch revSearch)
          Returns an array of reviews for the given search criteria.
 AdminReviews getReviewsPerProduct(AdminDataDescriptor dataDesc, int productId)
          Returns an array of reviews for the given productId
 int insertReview(AdminReview review)
          A new review is inserted
 

Method Detail

getAllReviews

AdminReviews getAllReviews(AdminDataDescriptor dataDesc)
                           throws org.apache.torque.TorqueException,
                                  com.workingdogs.village.DataSetException,
                                  KKAdminException
Calls the getReviewsPerProduct method with a negative productId value so that it is not included in the Where clause of the query

Parameters:
dataDesc -
Returns:
Returns all reviews
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException

getReviewsPerProduct

AdminReviews getReviewsPerProduct(AdminDataDescriptor dataDesc,
                                  int productId)
                                  throws org.apache.torque.TorqueException,
                                         com.workingdogs.village.DataSetException,
                                         KKAdminException
Returns an array of reviews for the given productId

Parameters:
dataDesc -
productId -
Returns:
Returns a Reviews object
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException

getReviews

AdminReviews getReviews(AdminDataDescriptor dataDesc,
                        AdminReviewSearch revSearch)
                        throws org.apache.torque.TorqueException,
                               com.workingdogs.village.DataSetException,
                               KKAdminException
Returns an array of reviews for the given search criteria.

Parameters:
dataDesc -
revSearch -
Returns:
Returns a Reviews object
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException

getReview

AdminReview getReview(int reviewId)
                      throws org.apache.torque.TorqueException,
                             com.workingdogs.village.DataSetException,
                             KKAdminException
Returns a review for the given reviewId

Parameters:
reviewId -
Returns:
Returns a Review object
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException

deleteReview

void deleteReview(int reviewId)
                  throws java.lang.Exception
Delete the review referenced to by reviewId.

Parameters:
reviewId -
Throws:
java.lang.Exception

deleteReviewsPerProduct

void deleteReviewsPerProduct(int productId,
                             java.sql.Connection connection)
                             throws java.lang.Exception
Delete the reviews for the product identified by productId. If connection is not equal to null, it is used so that this delete may be part of a transaction started somewhere else.

Parameters:
productId -
connection -
Throws:
java.lang.Exception

editReview

void editReview(AdminReview review)
                throws java.lang.Exception
Edit a review

Parameters:
review -
Throws:
java.lang.Exception

insertReview

int insertReview(AdminReview review)
                 throws java.lang.Exception
A new review is inserted

Parameters:
review -
Returns:
Review Primary Key
Throws:
java.lang.Exception


Copyright © 2011 DS Data Systems UK Ltd.