public class PrepareOrderCmdImpl extends TaskCommandImpl implements PrepareOrderCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
PrepareOrderCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | calculateOrder(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility)
This method calculates the specified order without calculating free gifts.
|
protected void | calculateOrderForFreeGifts(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility)
This method calculates the free gifts for the specified order.
|
protected void | doProcess(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility)
This method calls OrderProcessingHelper to do price, calculation and inventory actions.
|
protected void | ensureAllOrderItemsAreBuyable(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility)
This method calls OrderProcessingHelper to ensure all order items are buyable.
|
java.util.Vector | getOrders()
This method gets the ids of the orders to be prepared.
|
protected boolean | isLockItemSpecInATP()
This method returns the configuration whether the record in ITEMSPC table of the products being processed would be locked.
|
protected boolean | needCalculateOrder()
Check whether the order need to be calculated.
|
void | performExecute()
This method contains the actual business logic of the command.
|
void | setOrder(OrderAccessBean abOrder)
This method sets the order to prepare.
|
void | setOrders(java.util.Vector newOrders)
This method sets the ids of the orders to be prepared.
|
protected void | updateOrderItemPrices(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility)
This method calls OrderProcessingHelper to update prices for order items.
|
public static final java.lang.String COPYRIGHT
protected void doProcess(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility) throws ECException, java.rmi.RemoteException, javax.ejb.RemoveException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
protected void ensureAllOrderItemsAreBuyable(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility) throws ECException
protected void updateOrderItemPrices(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility) throws ECException
protected void calculateOrder(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility) throws ECException
protected void calculateOrderForFreeGifts(com.ibm.commerce.order.commands.OrderProcessingHelper aOrderProcessingUtility) throws ECException
public java.util.Vector getOrders()
public void performExecute() throws ECException
public void setOrder(OrderAccessBean abOrder)
public void setOrders(java.util.Vector newOrders)
protected boolean needCalculateOrder() throws ECException
protected boolean isLockItemSpecInATP() throws ECException