Package com.esprit.services.products
Class OrderService
java.lang.Object
com.esprit.services.products.OrderService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
createOrder
(Order order) Performs createOrder operation.void
getOrderById
(int orderId) Retrieves the OrderById value.Retrieves the PaidOrders value.Retrieves the Top3PurchasedProducts value.read()
Performs readClientOrders operation.void
-
Field Details
-
LOGGER
-
connection
-
-
Constructor Details
-
OrderService
public OrderService()Performs OrderService operation.
-
-
Method Details
-
create
-
createOrder
Performs createOrder operation.- Returns:
- the result of the operation
- Throws:
SQLException
-
read
-
readClientOrders
Performs readClientOrders operation.- Returns:
- the result of the operation
-
update
-
delete
-
getOrderById
Retrieves the OrderById value.- Returns:
- the OrderById value
- Throws:
SQLException
-
getPaidOrders
Retrieves the PaidOrders value.- Returns:
- the PaidOrders value
-
getTop3PurchasedProducts
Retrieves the Top3PurchasedProducts value.- Returns:
- the Top3PurchasedProducts value
-