| Modifier and Type | Field and Description |
|---|---|
protected CustomerDao |
customerDao |
protected javax.persistence.EntityManager |
em |
protected EntityConfiguration |
entityConfiguration |
protected OrderDaoExtensionManager |
extensionManager |
protected StreamingTransactionCapableUtil |
transUtil |
| Constructor and Description |
|---|
OrderDaoImpl() |
| 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 salesOrder) |
protected Boolean |
getDatabaseOrderLockSessionAffinity() |
protected Long |
getDatabaseOrderLockTimeToLive() |
protected String |
getOrderLockKey() |
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 customerId) |
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) |
protected javax.persistence.EntityManager em
protected EntityConfiguration entityConfiguration
protected CustomerDao customerDao
protected OrderDaoExtensionManager extensionManager
protected StreamingTransactionCapableUtil transUtil
public Order readOrderById(Long orderId)
readOrderById in interface OrderDaopublic Order readOrderById(Long orderId, boolean refresh)
readOrderById in interface OrderDaopublic List<Order> readOrdersByIds(List<Long> orderIds)
readOrdersByIds in interface OrderDaopublic List<Order> readBatchOrders(int start, int pageSize, List<OrderStatus> statuses)
OrderDaoreadBatchOrders in interface OrderDaopublic List<Order> readOrdersForCustomer(Customer customer, OrderStatus orderStatus)
readOrdersForCustomer in interface OrderDaopublic List<Order> readOrdersForCustomer(Long customerId)
readOrdersForCustomer in interface OrderDaopublic Order readCartForCustomer(Customer customer)
readCartForCustomer in interface OrderDaopublic Order createNewCartForCustomer(Customer customer)
createNewCartForCustomer in interface OrderDaopublic Order submitOrder(Order cartOrder)
submitOrder in interface OrderDaopublic Order readNamedOrderForCustomer(Customer customer, String name)
readNamedOrderForCustomer in interface OrderDaopublic Order readOrderByOrderNumber(String orderNumber)
readOrderByOrderNumber in interface OrderDao@Transactional(value="blTransactionManager") public Order updatePrices(Order order)
updatePrices in interface OrderDaopublic boolean acquireLock(Order order)
OrderDaoOrderLock 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.acquireLock in interface OrderDaopublic boolean releaseLock(Order order)
OrderDaoreleaseLock in interface OrderDaoprotected String getOrderLockKey()
protected Boolean getDatabaseOrderLockSessionAffinity()
protected Long getDatabaseOrderLockTimeToLive()
Copyright © 2017. All rights reserved.