0% found this document useful (0 votes)
4 views5 pages

Final Class Specification ReportRevenue

Uploaded by

dangchibangcmu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Final Class Specification ReportRevenue

Uploaded by

dangchibangcmu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Class Specification with Tables

DBConnection
No Method Description
01 getConnection(): Establishes a connection to
Connection the database.

ProductReportController
No Method Description
01 doGet(request: Handles GET requests.
HttpServletRequest,
response:
HttpServletResponse): void
02 doPost(request: Handles POST requests.
HttpServletRequest,
response:
HttpServletResponse): void

ProductDao
No Method Description
01 getProductSalesReport(): Retrieves the sales report
List<Product> for products.

Product

Attributes:
- product_id (int): Unique identifier for the product.

- product_name (String): Name of the product.

- product_description (String): Description of the product.

- product_price (double): Price of the product.

- product_image (String): URL to the product's image.

- category_id (int): Identifier for the category.

- is_hidden (int): Visibility status of the product (0 for visible, 1 for hidden).

- options (List<Option>): List of product options.

- category_name (String): Name of the product category.

- promotion_discount (int): Discount percentage for promotions.


Methods:
- getPromotion_discount(): int

- setPromotion_discount(promotion_discount: int): void

- getCategory_name(): String

- setCategory_name(category_name: String): void

- getOptions(): List<Option>

- setOptions(options: List<Option>): void

- getProduct_id(): int

- setProduct_id(product_id: int): void

- getProduct_name(): String

- setProduct_name(product_name: String): void

- getProduct_description(): String

- setProduct_description(product_description: String): void

- getProduct_price(): double

- setProduct_price(product_price: double): void

- getProduct_image(): String

- setProduct_image(product_image: String): void

- getCategory_id(): int

- setCategory_id(category_id: int): void

- getIs_hidden(): int

- setIs_hidden(is_hidden: int): void

Product
No Method Description
01 getPromotion_discount(): Gets the promotion
int discount value.
02 setPromotion_discount(pro Sets the promotion discount
motion_discount: int): void value.
03 getCategory_name(): String Gets the category name.
04 setCategory_name(category Sets the category name.
_name: String): void
05 getOptions(): List<Option> Gets the list of options.
06 setOptions(options: Sets the list of options.
List<Option>): void
07 getProduct_id(): int Gets the product ID.
08 setProduct_id(product_id: Sets the product ID.
int): void
09 getProduct_name(): String Gets the product name.
10 setProduct_name(product_n Sets the product name.
ame: String): void
11 getProduct_description(): Gets the product
String description.
12 setProduct_description(pro Sets the product
duct_description: String): description.
void
13 getProduct_price(): double Gets the product price.
14 setProduct_price(product_p Sets the product price.
rice: double): void
15 getProduct_image(): String Gets the product image URL.
16 setProduct_image(product_i Sets the product image URL.
mage: String): void
17 getCategory_id(): int Gets the category ID.
18 setCategory_id(category_id: Sets the category ID.
int): void
19 getIs_hidden(): int Gets the visibility status.
20 setIs_hidden(is_hidden: Sets the visibility status.
int): void

DBConnection
No Method Description
01 getConnection(): Establishes a connection to
Connection the database.

RatingController
No Method Description
01 doGet(request: Handles GET requests.
HttpServletRequest,
response:
HttpServletResponse): void
02 doPost(request: Handles POST requests.
HttpServletRequest,
response:
HttpServletResponse): void

RatingsDAO
No Method Description
01 getAllRatings(): Retrieves all ratings as a list
List<Order> of orders.
Order
No Method Description
01 getPayment_status(): int Gets the payment status.
02 setPayment_status(int Sets the payment status.
payment_status): void
03 getOrder_date(): date Gets the order date.
04 setOrder_date(Date Sets the order date.
order_date): void
05 getUser_id(): String Gets the user ID.
06 setUser_id(int user_id): void Sets the user ID.
07 getOrder_id(): int Gets the order ID.
08 setOrder_id(int order_id): Sets the order ID.
void
09 getOrder_status(): String Gets the order status.
10 setOrder_status(String Sets the order status.
order_status): void

DBConnection
No Method Description
01 getConnection(): Establishes a connection to
Connection the database.

ReportRevenueController
No Method Description
01 doGet(request: Handles GET requests.
HttpServletRequest,
response:
HttpServletResponse): void
02 doPost(request: Handles POST requests.
HttpServletRequest,
response:
HttpServletResponse): void

ReportRevenueDAO
No Method Description
01 getRevenueByDateRange(St Retrieves revenue data
ring startDate, String within the specified date
endDate): List<Order> range as a list of orders.

Order
No Method Description
01 getPayment_status(): int Gets the payment status.
02 setPayment_status(int Sets the payment status.
payment_status): void
03 getOrder_date(): date Gets the order date.
04 setOrder_date(Date Sets the order date.
order_date): void
05 getUser_id(): String Gets the user ID.
06 setUser_id(int user_id): void Sets the user ID.
07 getOrder_id(): int Gets the order ID.
08 setOrder_id(int order_id): Sets the order ID.
void
09 getOrder_status(): String Gets the order status.
10 setOrder_status(String Sets the order status.
order_status): void

You might also like