Package org.mybatis.jpetstore.service
Class OrderService
java.lang.Object
org.mybatis.jpetstore.service.OrderService
The Class OrderService.
- Author:
- Eduardo Macarron
-
Constructor Summary
ConstructorDescriptionOrderService
(ItemMapper itemMapper, OrderMapper orderMapper, SequenceMapper sequenceMapper, LineItemMapper lineItemMapper) -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the next id.getOrder
(int orderId) Gets the order.getOrdersByUsername
(String username) Gets the orders by username.void
insertOrder
(Order order) Insert order.
-
Constructor Details
-
OrderService
public OrderService(ItemMapper itemMapper, OrderMapper orderMapper, SequenceMapper sequenceMapper, LineItemMapper lineItemMapper)
-
-
Method Details
-
insertOrder
Insert order.- Parameters:
order
- the order
-
getOrder
Gets the order.- Parameters:
orderId
- the order id- Returns:
- the order
-
getOrdersByUsername
Gets the orders by username.- Parameters:
username
- the username- Returns:
- the orders by username
-
getNextId
Gets the next id.- Parameters:
name
- the name- Returns:
- the next id
-