com.ibm.commerce.order.commands

Class PrepareOrderCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, PrepareOrderCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
    Direct Known Subclasses:
    ExternalPrepareOrderCmdImpl, PrepareProcurementOrderCmdImpl


    public class PrepareOrderCmdImpl
    extends TaskCommandImpl
    implements PrepareOrderCmd
    This command prepares an order by determining prices, discounts, shipping charges, and taxes for an order.

    Behavior

    • Delete generated order items (refer to the PREPAREFLAGS column in the ORDERITEMS table).
    • Check that all order items in the order are buyable (refer to the BUYABLE column in the CATENTRY table).
    • Call DoInventoryActionCmd to check the availability of the products with action CHECK_INVENTORY.
    • Obtain latest unit price for each order item, except those with manually overridden prices or are quotations. (refer to PREPAREFLAGS column of the ORDERITEMS table).
    • Re-calculate the amounts for the order.
    • Lock the order to indicate that it is ready for the OrderProcess command. The lock can be reset either by expiry, by changing the Order (for example, by using the OrderItemUpdate command), or explicitly by using the OrderUnlock command. The expiry period for a lock is stored in the QUOTEGOODFOR column of the STORE table.
    • Task commands called:

      AccessBeans used:

      Possible callers:

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PrepareOrderCmdImpl

        public PrepareOrderCmdImpl()
    • Method Detail

      • getOrders

        public java.util.Vector getOrders()
        This method gets the ids of the orders to be prepared.
        Returns:
        a vector of order access beans.
      • setOrder

        public void setOrder(OrderAccessBean abOrder)
        This method sets the order to prepare.
        Specified by:
        setOrder in interface PrepareOrderCmd
        Parameters:
        abOrder - order access bean
      • setOrders

        public void setOrders(java.util.Vector newOrders)
        This method sets the ids of the orders to be prepared.
        Specified by:
        setOrders in interface PrepareOrderCmd
        Parameters:
        newOrders - java.util.Vector order identifiers