public interface OrderDao
| Modifier and Type | Method and Description |
|---|---|
boolean |
acquireLock(Order order)
This method will attempt to update the
OrderLock object table for the given order to mark it as
locked, provided the OrderLock record for the given order was not already locked. |
Order |
create() |
Order |
createNewCartForCustomer(Customer customer) |
void |
delete(Order order) |
List<Order> |
readBatchOrders(int start,
int pageSize,
List<OrderStatus> statuses)
Reads a batch list of orders from the DB.
|
Order |
readCartForCustomer(Customer customer) |
Order |
readNamedOrderForCustomer(Customer customer,
String name) |
Order |
readOrderById(Long orderId) |
Order |
readOrderById(Long orderId,
boolean refresh) |
Order |
readOrderByOrderNumber(String orderNumber) |
List<Order> |
readOrdersByIds(List<Long> orderIds) |
List<Order> |
readOrdersForCustomer(Customer customer,
OrderStatus orderStatus) |
List<Order> |
readOrdersForCustomer(Long id) |
void |
refresh(Order order) |
boolean |
releaseLock(Order order)
Releases the lock for the given order.
|
Order |
save(Order order) |
Order |
submitOrder(Order cartOrder) |
Order |
updatePrices(Order order) |
List<Order> readBatchOrders(int start, int pageSize, List<OrderStatus> statuses)
start - pageSize - statuses - List<Order> readOrdersForCustomer(Customer customer, OrderStatus orderStatus)
void delete(Order order)
Order create()
void refresh(Order order)
boolean acquireLock(Order order)
OrderLock object table for the given order to mark it as
locked, provided the OrderLock record for the given order was not already locked. It will return true or
false depending on whether or not the lock was able to be acquired.order - boolean releaseLock(Order order)
order - Copyright © 2017. All rights reserved.