Package com.esprit.services.products
Class ShoppingCartService
java.lang.Object
com.esprit.services.products.ShoppingCartService
- All Implemented Interfaces:
IService<ShoppingCart>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
create
(ShoppingCart shoppingCart) void
delete
(ShoppingCart shoppingCart) read()
readUserShoppingCart
(Long userId) Performs readUserShoppingCart operation.void
update
(ShoppingCart shoppingCart)
-
Field Details
-
LOGGER
-
connection
-
-
Constructor Details
-
ShoppingCartService
public ShoppingCartService()Performs ShoppingCartService operation.
-
-
Method Details
-
create
- Specified by:
create
in interfaceIService<ShoppingCart>
-
read
- Specified by:
read
in interfaceIService<ShoppingCart>
-
readUserShoppingCart
Performs readUserShoppingCart operation.- Returns:
- the result of the operation
- Throws:
SQLException
-
update
- Specified by:
update
in interfaceIService<ShoppingCart>
-
delete
- Specified by:
delete
in interfaceIService<ShoppingCart>
-