com.ibm.commerce.orderitems.commands

Interface RetrieveTradingsTaskCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    RetrieveTradingsTaskCmdImpl


    public interface RetrieveTradingsTaskCmd
    extends TaskCommand
    This task command is used to retrieve trading agreements for an order item based on the price refresh flag. The default implementation of this command is RetrieveTradingsTaskCmdImpl.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The IBM Copyright notice field.
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation of this command.
        See Also:
        Constant Field Values
    • Method Detail

      • setOrderItem

        void setOrderItem(OrderItemAccessBean abOrderItem)
        This method sets the order item to retrieve trading agreements for.
        Parameters:
        abOrderItem - the order item access bean.
      • setPriceRefreshFlag

        void setPriceRefreshFlag(java.lang.Integer anRefreshFlag)
        This method sets the price refresh flag. Below is the usage of the flag STORE.PRICEREFFLAGS:
         0: Default, same as 1 except that it will not save the trading agreement id.
         1: This means useCurrentOnly. This uses the price directly referenced by the order items. 
            It fails if they can no longer be used. 
         2: This means useCurrentOrSearchAgain. This is the same as useCurrentOnly.
            But instead of failing when they can no longer be used, it searches the ones that were 
            originally searched for the order items. These tradings are saved when the order items were created or updated with new 
            trading agreement id specified. 
         4: This means alwaysSearchAgain. This option always searches the price that was 
            originally searched when the order items were created or updated with new 
            trading agreement id specified.
         8: Before calling price command, sum the quantity for the order items with same catentry.
            It will get the best price and update the order item's trading agreement id. 
            It will not save the tradingId in the ORDITRD.
         
        Parameters:
        anRefreshFlag - the price refresh flag.
      • getTradingAgreements

        java.lang.Long[] getTradingAgreements()
        This method returns the array of trading agreement identifiers retrieved.
        Returns:
        the array of trading agreement identifiers.