| 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() |
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 readOrderByExternalId(String orderExternalId)
readOrderByExternalId in interface OrderDao@Transactional(value="blTransactionManager") public 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 OrderDaopublic List<Order> readOrdersByDateRange(Date startDate, Date endDate)
readOrdersByDateRange in interface OrderDaopublic List<Order> readOrdersForCustomersInDateRange(List<Long> customerIds, Date startDate, Date endDate)
readOrdersForCustomersInDateRange 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()
public List<Order> readOrdersByEmail(String email)
readOrdersByEmail in interface OrderDaoCopyright © 2018. All rights reserved.