public class DefaultB2BOrderDao extends DefaultGenericDao<OrderModel> implements B2BOrderDao
B2BOrderDao| Constructor and Description |
|---|
DefaultB2BOrderDao()
DefaultGenericDao is only usable when typecode is set.
|
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchServicepublic DefaultB2BOrderDao()
public List<OrderModel> findRejectedOrders(UserModel user)
B2BOrderDaoOrderStatus.REJECTED for a user.findRejectedOrders in interface B2BOrderDaouser - the userpublic List<OrderModel> findApprovedOrders(UserModel user)
B2BOrderDaoOrderStatus.APPROVED for a user.findApprovedOrders in interface B2BOrderDaouser - the userpublic List<OrderModel> findPendingApprovalOrders(UserModel user)
B2BOrderDaoOrderStatus.PENDING_APPROVAL for a user.findPendingApprovalOrders in interface B2BOrderDaouser - the userpublic <T extends OrderModel> T findOrderByCode(String code)
B2BOrderDaofindOrderByCode in interface B2BOrderDaocode - A unque quotepublic List<OrderModel> findOrdersByStatus(UserModel user, OrderStatus status)
B2BOrderDaoOrderStatus value for a user.findOrdersByStatus in interface B2BOrderDaouser - the userstatus - the order's current statuspublic List<OrderModel> findOrdersByStatus(UserModel user, List<OrderStatus> status)
B2BOrderDaofindOrdersByStatus in interface B2BOrderDaouser - the userstatus - the status@Deprecated public List<OrderModel> findOrdersApprovedForDateRange(UserModel user, Date startDate, Date endDate)
findOrdersApprovedByDateRange(UserModel,Date,Date) insteadB2BOrderDaofindOrdersApprovedForDateRange in interface B2BOrderDaouser - the userstartDate - the start dateendDate - the end datepublic List<OrderModel> findOrdersApprovedByDateRange(UserModel user, Date startDate, Date endDate)
B2BOrderDaoOrderStatus.APPROVED status within a date range for a user.findOrdersApprovedByDateRange in interface B2BOrderDaouser - the userstartDate - the start dateendDate - the end datepublic List<OrderModel> findOrdersApprovedForDateRangeByCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency)
B2BOrderDaoOrderStatus.APPROVED status for b2b unit based on date range and currency.findOrdersApprovedForDateRangeByCurrency in interface B2BOrderDaounitModel - the b2b unitstartDate - the start date of the date rangeendDate - the end date of the date rangecurrency - the currency of the order@Deprecated public List<CartToOrderCronJobModel> findCartToOrderCronJobs(UserModel user)
DefaultCartToOrderCronJobModelDao.findCartToOrderCronJobs(UserModel) insteadfindCartToOrderCronJobs in interface B2BOrderDaouser - A user who had a cart scheduled for replenishment.@Deprecated public CartToOrderCronJobModel findCartToOrderModel(String code)
DefaultCartToOrderCronJobModelDao.findCartToOrderCronJob(String) insteadB2BOrderDaocode.findCartToOrderModel in interface B2BOrderDaocode - the code of the cron jobpublic List<OrderModel> findRejectedByMerchantOrders(UserModel user)
B2BOrderDaoOrderStatus.REJECTED_BY_MERCHANT for a user.findRejectedByMerchantOrders in interface B2BOrderDaouser - the userpublic List<OrderModel> findPendingApprovalOrdersFromMerchant(UserModel user)
B2BOrderDaoOrderStatus.PENDING_APPROVAL_FROM_MERCHANT for a user.findPendingApprovalOrdersFromMerchant in interface B2BOrderDaouser - the user@Deprecated public Double findOrderTotalsForDateRangeByCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency)
findOrderTotalsByDateRangeAndCurrency(B2BUnitModel,Date,Date,CurrencyModel) insteadB2BOrderDaofindOrderTotalsForDateRangeByCurrency in interface B2BOrderDaopublic Double findOrderTotalsByDateRangeAndCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency)
B2BOrderDaofindOrderTotalsByDateRangeAndCurrency in interface B2BOrderDaounitModel - the b2b unitstartDate - the start date of the date rangeendDate - the end date of the date rangecurrency - the currency type to be converted to@Deprecated public List<OrderModel> findPendingQuoteOrders(UserModel user)
findPendingQuoteOrders in interface B2BOrderDaouser - the user@Deprecated public List<OrderModel> findApprovedQuoteOrders(UserModel user)
findApprovedQuoteOrders in interface B2BOrderDaouser - the user@Deprecated public List<OrderModel> findRejectedQuoteOrders(UserModel user)
findRejectedQuoteOrders in interface B2BOrderDaouser - the userpublic BaseDao getBaseDao()
public void setBaseDao(BaseDao baseDao)
protected TypeService getTypeService()
public void setTypeService(TypeService typeService)
Copyright © 2017 SAP SE. All Rights Reserved.