public interface AdminReviewMgrIf
Modifier and Type | Method and Description |
---|---|
void |
deleteReview(int reviewId)
Delete the review referenced to by reviewId.
|
void |
deleteReviewsPerCustomer(int customerId)
Delete all the reviews written by a customer.
|
void |
deleteReviewsPerProduct(int productId,
java.sql.Connection connection)
Delete the reviews for the product identified by productId.
|
void |
deleteReviewsPerProducts(int[] productIds,
java.sql.Connection connection)
Delete the reviews for the products identified by the productIds array.
|
void |
deleteReviewsPerVendor(int vendorId,
java.sql.Connection connection)
Delete the reviews for the vendor identified by the vendorId.
|
void |
deleteVendorReview(int reviewId)
Delete the vendor review referenced to by reviewId.
|
void |
deleteVendorReviewsPerCustomer(int customerId)
Delete all the vendor reviews written by a customer.
|
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
|
AdminReviews |
getReviewsPerVendor(AdminDataDescriptor dataDesc,
int vendorId)
Returns an array of vendor reviews for the given vendorId
|
AdminReview |
getVendorReview(int reviewId)
Returns a vendor review for the given reviewId
|
AdminReviews |
getVendorReviews(AdminDataDescriptor dataDesc,
AdminReviewSearch revSearch)
Returns an array of vendor reviews for the given search criteria.
|
int |
insertReview(AdminReview review)
A new review is inserted.
|
AdminReviews getAllReviews(AdminDataDescriptor dataDesc) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
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)KKAdminException
- an unexpected exception in the KonaKart Admin engineAdminReviews getReviewsPerProduct(AdminDataDescriptor dataDesc, int productId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
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)KKAdminException
- an unexpected exception in the KonaKart Admin engineAdminReviews getReviews(AdminDataDescriptor dataDesc, AdminReviewSearch revSearch) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
dataDesc
- the dataDescrevSearch
- the revSearchorg.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)KKAdminException
- an unexpected exception in the KonaKart Admin engineAdminReview getReview(int reviewId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
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)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid deleteReview(int reviewId) throws java.lang.Exception
reviewId
- the reviewIdjava.lang.Exception
- an unexpected exceptionvoid deleteVendorReview(int reviewId) throws java.lang.Exception
reviewId
- the reviewIdjava.lang.Exception
- an unexpected exceptionvoid deleteReviewsPerProduct(int productId, java.sql.Connection connection) throws java.lang.Exception
productId
- the productIdconnection
- the connectionjava.lang.Exception
- an unexpected exceptionvoid deleteReviewsPerProducts(int[] productIds, java.sql.Connection connection) throws java.lang.Exception
productIds
- the productIdsconnection
- the connectionjava.lang.Exception
- an unexpected exceptionvoid editReview(AdminReview review) throws java.lang.Exception
review
- the reviewjava.lang.Exception
- an unexpected exceptionint insertReview(AdminReview review) throws java.lang.Exception
review
- the reviewjava.lang.Exception
- an unexpected exceptionvoid deleteReviewsPerVendor(int vendorId, java.sql.Connection connection) throws java.lang.Exception
vendorId
- the vendorIdconnection
- the connectionjava.lang.Exception
- an unexpected exceptionAdminReviews getReviewsPerVendor(AdminDataDescriptor dataDesc, int vendorId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
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)KKAdminException
- an unexpected exception in the KonaKart Admin engineAdminReviews getVendorReviews(AdminDataDescriptor dataDesc, AdminReviewSearch revSearch) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
dataDesc
- the dataDescrevSearch
- the revSearchorg.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)KKAdminException
- an unexpected exception in the KonaKart Admin engineAdminReview getVendorReview(int reviewId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
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)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid deleteReviewsPerCustomer(int customerId) throws java.lang.Exception
customerId
- the id of the customer that wrote the reviewsjava.lang.Exception
- an unexpected exceptionvoid deleteVendorReviewsPerCustomer(int customerId) throws java.lang.Exception
customerId
- the id of the customer that wrote the reviewsjava.lang.Exception
- an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.