Final Class Specification ReportRevenue
Final Class Specification ReportRevenue
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.
- is_hidden (int): Visibility status of the product (0 for visible, 1 for hidden).
- getCategory_name(): String
- getOptions(): List<Option>
- getProduct_id(): int
- getProduct_name(): String
- getProduct_description(): String
- getProduct_price(): double
- getProduct_image(): String
- getCategory_id(): int
- getIs_hidden(): int
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