Package de.hybris.platform.b2b.dao
Interface B2BOrderDao
- All Known Implementing Classes:
DefaultB2BOrderDao
public interface B2BOrderDao
A data access to
OrderModel- Spring Bean ID:
- b2bOrderDao
-
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.
-
Method Details
-
findRejectedOrders
Find the rejected orders with the status ofOrderStatus.REJECTEDfor auser.- Parameters:
user- the user- Returns:
- the list of rejected orders
-
findRejectedByMerchantOrders
Find the orders with a status ofOrderStatus.REJECTED_BY_MERCHANTfor a user.- Parameters:
user- the user- Returns:
- the list of rejected orders
-
findPendingQuoteOrders
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3. Please see quote functionality from commerce. Find the orders with a status ofOrderStatus.PENDING_QUOTEfor a user.- Parameters:
user- the user- Returns:
- List of orders
-
findApprovedQuoteOrders
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3. Please see quote functionality from commerce. Find the orders with a status ofOrderStatus.APPROVED_QUOTEfor a user.- Parameters:
user- the user- Returns:
- List of orders
-
findRejectedQuoteOrders
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3. Please see quote functionality from commerce. Find the orders with a status ofOrderStatus.REJECTED_QUOTEfor a user.- Parameters:
user- the user- Returns:
- List of orders
-
findApprovedOrders
Find the orders with a status ofOrderStatus.APPROVEDfor a user.- Parameters:
user- the user- Returns:
- the list of orders
-
findPendingApprovalOrders
Find the orders with a status ofOrderStatus.PENDING_APPROVALfor a user.- Parameters:
user- the user- Returns:
- the list of orders
-
findPendingApprovalOrdersFromMerchant
Find the orders with a status ofOrderStatus.PENDING_APPROVAL_FROM_MERCHANTfor a user.- Parameters:
user- the user- Returns:
- the list of orders
-
findOrdersByStatus
Find orders having a particularOrderStatusvalue for a user.- Parameters:
user- the userstatus- the order's current status- Returns:
- the list of orders
-
findOrdersApprovedForDateRange
@Deprecated(since="4.4", forRemoval=true) 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)insteadFind orders approved for date range.- Parameters:
user- the userstartDate- the start dateendDate- the end date- Returns:
- the list
-
findOrdersApprovedByDateRange
Find orders with aOrderStatus.APPROVEDstatus within a date range for a user.- Parameters:
user- the userstartDate- the start dateendDate- the end date- Returns:
- the list of orders
-
findCartToOrderCronJobs
@Deprecated(since="6.0", forRemoval=true) 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.- Parameters:
user- A user who had a cart scheduled for replenishment.- Returns:
- A list of cronjobs responsible for replenisment of users cart.
-
findCartToOrderModel
Deprecated, for removal: This API element is subject to removal in a future version.Since 6.0. UseDefaultCartToOrderCronJobModelDao.findCartToOrderCronJob(String)insteadFind cart to order model with a particularcode.- Parameters:
code- the code of the cron job- Returns:
- the cart to order cron job model
-
findOrdersByStatus
Find order by given status for a user.- Parameters:
user- the userstatus- the status- Returns:
- orders
-
findOrdersApprovedForDateRangeByCurrency
List<OrderModel> findOrdersApprovedForDateRangeByCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency) Find orders with aOrderStatus.APPROVEDstatus for b2b unit based on date range and currency.- 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
-
findOrderTotalsForDateRangeByCurrency
@Deprecated(since="4.4", forRemoval=true) 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)insteadFind order total for the unit based on date range and converted into given currency- Parameters:
unitModel-startDate-endDate-currency-- Returns:
- List
-
findOrderTotalsByDateRangeAndCurrency
Double findOrderTotalsByDateRangeAndCurrency(B2BUnitModel unitModel, Date startDate, Date endDate, CurrencyModel currency) Find order total for the b2b unit based on date range and converted into given currency- 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
-
findOrderByCode
Gets order for a give code.- Parameters:
code- A unque quote- Returns:
- An instace of AbstractOrderModel
-