1 /*
2 * Copyright 2010-2026 the original author or authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.mybatis.jpetstore.mapper;
17
18 import java.util.List;
19 import java.util.Map;
20
21 import org.mybatis.jpetstore.domain.Item;
22
23 /**
24 * The Interface ItemMapper.
25 */
26 public interface ItemMapper {
27
28 /**
29 * Update inventory quantity.
30 *
31 * @param param
32 * the param
33 */
34 void updateInventoryQuantity(Map<String, Object> param);
35
36 /**
37 * Get inventory quantity.
38 *
39 * @param itemId
40 * the item id
41 *
42 * @return the int
43 */
44 int getInventoryQuantity(String itemId);
45
46 /**
47 * Get item list by product.
48 *
49 * @param productId
50 * the product id
51 *
52 * @return the list
53 */
54 List<Item> getItemListByProduct(String productId);
55
56 /**
57 * Get item.
58 *
59 * @param itemId
60 * the item id
61 *
62 * @return the item
63 */
64 Item getItem(String itemId);
65
66 }