Class CatalogService
java.lang.Object
org.mybatis.jpetstore.service.CatalogService
The Class CatalogService.
- Author:
- Eduardo Macarron
-
Constructor Summary
ConstructorsConstructorDescriptionCatalogService(CategoryMapper categoryMapper, ItemMapper itemMapper, ProductMapper productMapper) Instantiates a new catalog service. -
Method Summary
Modifier and TypeMethodDescriptiongetCategory(String categoryId) Get category.Gets the category list.Get item.getItemListByProduct(String productId) Get item list by product.getProduct(String productId) Get product.getProductListByCategory(String categoryId) Get product list by category.booleanisItemInStock(String itemId) Is item in stock.searchProductList(String keywords) Search product list.
-
Constructor Details
-
CatalogService
public CatalogService(CategoryMapper categoryMapper, ItemMapper itemMapper, ProductMapper productMapper) Instantiates a new catalog service.- Parameters:
categoryMapper- the category mapperitemMapper- the item mapperproductMapper- the product mapper
-
-
Method Details
-
getCategoryList
-
getCategory
-
getProduct
-
getProductListByCategory
-
searchProductList
-
getItemListByProduct
-
getItem
-
isItemInStock
Is item in stock.- Parameters:
itemId- the item id- Returns:
- true, if successful
-