Package org.mybatis.jpetstore.service
Class CatalogService
java.lang.Object
org.mybatis.jpetstore.service.CatalogService
The Class CatalogService.
- Author:
- Eduardo Macarron
-
Constructor Summary
ConstructorDescriptionCatalogService
(CategoryMapper categoryMapper, ItemMapper itemMapper, ProductMapper productMapper) -
Method Summary
Modifier and TypeMethodDescriptiongetCategory
(String categoryId) getItemListByProduct
(String productId) getProduct
(String productId) getProductListByCategory
(String categoryId) boolean
isItemInStock
(String itemId) searchProductList
(String keywords) Search product list.
-
Constructor Details
-
CatalogService
public CatalogService(CategoryMapper categoryMapper, ItemMapper itemMapper, ProductMapper productMapper)
-
-
Method Details
-
getCategoryList
-
getCategory
-
getProduct
-
getProductListByCategory
-
searchProductList
Search product list.- Parameters:
keywords
- the keywords- Returns:
- the list
-
getItemListByProduct
-
getItem
-
isItemInStock
-