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) |
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> |
readOrdersForCustomer(Customer customer,
OrderStatus orderStatus) |
List<Order> |
readOrdersForCustomer(Long id) |
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> readOrdersForCustomer(Customer customer, OrderStatus orderStatus)
void delete(Order order)
Order create()
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 © 2015. All Rights Reserved.