October 7, 2002 - IBuySpy's ReviewsDB Component
October 7, 2002 IBuySpy's ReviewsDB Component Tips: October 2002
Yehuda Shiran, Ph.D.
|
ReviwsDB.js
handles the business logic of the IBuySpy Store reviews. In particular, it extracts reviews from the database, and adds new reviews to the database.
All IBuySpy components share the same IBuySpy
namespace. The ReviewsDB.js
component includes a single class: ReviewsDB
. The ReviewsDB
class includes the following method declarations:
public class ReviewsDB {
public function GetReviews(productID : int) : SqlDataReader {...}
public function AddReview(productID: int, customerName: String,
customerEmail: String, rating: int , comments: String ) : void {...}
}