Package de.hybris.platform.b2b.dao.impl
Class DefaultB2BOrderDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<OrderModel>
de.hybris.platform.b2b.dao.impl.DefaultB2BOrderDao
- All Implemented Interfaces:
B2BOrderDao,GenericDao<OrderModel>
Default implementation of the
B2BOrderDao- Spring Bean ID:
- b2bOrderDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindApprovedOrders(UserModel user) Find the orders with a status ofOrderStatus.APPROVEDfor a user.Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.findCartToOrderModel(String code) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0.<T extends OrderModel>
TfindOrderByCode(String code) Gets order for a give code.findOrdersApprovedByDateRange(UserModel user, Date startDate, Date endDate) Find orders with aOrderStatus.APPROVEDstatus within a date range for a user.findOrdersApprovedForDateRange(UserModel user, Date startDate, Date endDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4.findOrdersApprovedForDateRangeByCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency) Find orders with aOrderStatus.APPROVEDstatus for b2b unit based on date range and currency.findOrdersByStatus(UserModel user, OrderStatus status) Find orders having a particularOrderStatusvalue for a user.findOrdersByStatus(UserModel user, List<OrderStatus> status) Find order by given status for a user.findOrderTotalsByDateRangeAndCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency) Find order total for the b2b unit based on date range and converted into given currencyfindOrderTotalsForDateRangeByCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4.Find the orders with a status ofOrderStatus.PENDING_APPROVALfor a user.Find the orders with a status ofOrderStatus.PENDING_APPROVAL_FROM_MERCHANTfor a user.Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.Find the orders with a status ofOrderStatus.REJECTED_BY_MERCHANTfor a user.findRejectedOrders(UserModel user) Find the rejected orders with the status ofOrderStatus.REJECTEDfor auser.Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.protected TypeServicevoidsetBaseDao(BaseDao baseDao) voidsetTypeService(TypeService typeService) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultB2BOrderDao
public DefaultB2BOrderDao()DefaultGenericDao is only usable when typecode is set.
-
-
Method Details
-
findRejectedOrders
Description copied from interface:B2BOrderDaoFind the rejected orders with the status ofOrderStatus.REJECTEDfor auser.- Specified by:
findRejectedOrdersin interfaceB2BOrderDao- Parameters:
user- the user- Returns:
- the list of rejected orders
-
findApprovedOrders
Description copied from interface:B2BOrderDaoFind the orders with a status ofOrderStatus.APPROVEDfor a user.- Specified by:
findApprovedOrdersin interfaceB2BOrderDao- Parameters:
user- the user- Returns:
- the list of orders
-
findPendingApprovalOrders
Description copied from interface:B2BOrderDaoFind the orders with a status ofOrderStatus.PENDING_APPROVALfor a user.- Specified by:
findPendingApprovalOrdersin interfaceB2BOrderDao- Parameters:
user- the user- Returns:
- the list of orders
-
findOrderByCode
Description copied from interface:B2BOrderDaoGets order for a give code.- Specified by:
findOrderByCodein interfaceB2BOrderDao- Parameters:
code- A unque quote- Returns:
- An instace of AbstractOrderModel
-
findOrdersByStatus
Description copied from interface:B2BOrderDaoFind orders having a particularOrderStatusvalue for a user.- Specified by:
findOrdersByStatusin interfaceB2BOrderDao- Parameters:
user- the userstatus- the order's current status- Returns:
- the list of orders
-
findOrdersByStatus
Description copied from interface:B2BOrderDaoFind order by given status for a user.- Specified by:
findOrdersByStatusin interfaceB2BOrderDao- Parameters:
user- the userstatus- the status- Returns:
- orders
-
findOrdersApprovedForDateRange
@Deprecated(since="4.4", forRemoval=true) public List<OrderModel> findOrdersApprovedForDateRange(UserModel user, Date startDate, Date endDate) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4. UsefindOrdersApprovedByDateRange(UserModel,Date,Date)insteadDescription copied from interface:B2BOrderDaoFind orders approved for date range.- Specified by:
findOrdersApprovedForDateRangein interfaceB2BOrderDao- Parameters:
user- the userstartDate- the start dateendDate- the end date- Returns:
- the list
-
findOrdersApprovedByDateRange
Description copied from interface:B2BOrderDaoFind orders with aOrderStatus.APPROVEDstatus within a date range for a user.- Specified by:
findOrdersApprovedByDateRangein interfaceB2BOrderDao- Parameters:
user- the userstartDate- the start dateendDate- the end date- Returns:
- the list of orders
-
findOrdersApprovedForDateRangeByCurrency
public List<OrderModel> findOrdersApprovedForDateRangeByCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency) Description copied from interface:B2BOrderDaoFind orders with aOrderStatus.APPROVEDstatus for b2b unit based on date range and currency.- Specified by:
findOrdersApprovedForDateRangeByCurrencyin interfaceB2BOrderDao- Parameters:
unitModel- the b2b unitstartDate- the start date of the date rangeendDate- the end date of the date rangecurrency- the currency of the order- Returns:
- List of orders
-
findCartToOrderCronJobs
@Deprecated(since="6.0", forRemoval=true) public List<CartToOrderCronJobModel> findCartToOrderCronJobs(UserModel user) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0. UseDefaultCartToOrderCronJobModelDao.findCartToOrderCronJobs(UserModel)insteadFinds CartToOrderCronJob for a given user.- Specified by:
findCartToOrderCronJobsin interfaceB2BOrderDao- Parameters:
user- A user who had a cart scheduled for replenishment.- Returns:
- A list of cronjobs responsible for replenisment of users cart.
-
findCartToOrderModel
@Deprecated(since="6.0", forRemoval=true) public CartToOrderCronJobModel findCartToOrderModel(String code) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0. UseDefaultCartToOrderCronJobModelDao.findCartToOrderCronJob(String)insteadDescription copied from interface:B2BOrderDaoFind cart to order model with a particularcode.- Specified by:
findCartToOrderModelin interfaceB2BOrderDao- Parameters:
code- the code of the cron job- Returns:
- the cart to order cron job model
-
findRejectedByMerchantOrders
Description copied from interface:B2BOrderDaoFind the orders with a status ofOrderStatus.REJECTED_BY_MERCHANTfor a user.- Specified by:
findRejectedByMerchantOrdersin interfaceB2BOrderDao- Parameters:
user- the user- Returns:
- the list of rejected orders
-
findPendingApprovalOrdersFromMerchant
Description copied from interface:B2BOrderDaoFind the orders with a status ofOrderStatus.PENDING_APPROVAL_FROM_MERCHANTfor a user.- Specified by:
findPendingApprovalOrdersFromMerchantin interfaceB2BOrderDao- Parameters:
user- the user- Returns:
- the list of orders
-
findOrderTotalsForDateRangeByCurrency
@Deprecated(since="4.4", forRemoval=true) public Double findOrderTotalsForDateRangeByCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency) Deprecated, for removal: This API element is subject to removal in a future version.Since 4.4. UsefindOrderTotalsByDateRangeAndCurrency(B2BUnitModel,Date,Date,CurrencyModel)insteadDescription copied from interface:B2BOrderDaoFind order total for the unit based on date range and converted into given currency- Specified by:
findOrderTotalsForDateRangeByCurrencyin interfaceB2BOrderDao- Returns:
- List
-
findOrderTotalsByDateRangeAndCurrency
public Double findOrderTotalsByDateRangeAndCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency) Description copied from interface:B2BOrderDaoFind order total for the b2b unit based on date range and converted into given currency- Specified by:
findOrderTotalsByDateRangeAndCurrencyin interfaceB2BOrderDao- Parameters:
unitModel- the b2b unitstartDate- the start date of the date rangeendDate- the end date of the date rangecurrency- the currency type to be converted to- Returns:
- List of orders
-
findPendingQuoteOrders
@Deprecated(since="6.3", forRemoval=true) public List<OrderModel> findPendingQuoteOrders(UserModel user) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.- Specified by:
findPendingQuoteOrdersin interfaceB2BOrderDao- Parameters:
user- the user- Returns:
- List of orders
-
findApprovedQuoteOrders
@Deprecated(since="6.3", forRemoval=true) public List<OrderModel> findApprovedQuoteOrders(UserModel user) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.- Specified by:
findApprovedQuoteOrdersin interfaceB2BOrderDao- Parameters:
user- the user- Returns:
- List of orders
-
findRejectedQuoteOrders
@Deprecated(since="6.3", forRemoval=true) public List<OrderModel> findRejectedQuoteOrders(UserModel user) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.- Specified by:
findRejectedQuoteOrdersin interfaceB2BOrderDao- Parameters:
user- the user- Returns:
- List of orders
-
getBaseDao
-
setBaseDao
-
getTypeService
-
setTypeService
-