com.ibm.commerce.fulfillment.commands

Class SynchronizeOnhandInventoryRecordTaskCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd, 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


    public class SynchronizeOnhandInventoryRecordTaskCmdImpl
    extends com.ibm.commerce.fulfillment.commands.SynchronizeInventoryBaseTaskCmdImpl
    implements com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
    This is the default implementation of the SynchronizeOnhandInventoryRecordTaskCmd task command.

    Input parameters:

    Name Description
    FulfillmentCenterId the id of fulfillment center that need synchronize inventory
    MemberId the owner of the inventory
    QuantityOnHand the request quantity of on hand inventory
    SKUNumber the request sku of on hand inventory
    Units the request Units of on hand inventory
    ActionCode the action to indicate add, update or delete

    Output parameters:

    None.

    Behaviour:

    • Synchronize the on hand inventory cache to make it represent the real on hand inventory of the external inventory system
    See Also:
    SynchronizeExpectedInventoryRecordTaskCmdImpl, Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • SynchronizeOnhandInventoryRecordTaskCmdImpl

        public SynchronizeOnhandInventoryRecordTaskCmdImpl()
    • Method Detail

      • getFulfillmentCenterId

        public java.lang.Integer getFulfillmentCenterId()
        This method gets the fulfillment center id
        Specified by:
        getFulfillmentCenterId in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Returns:
        Returns the iFulfillmentCenterId.
      • setFulfillmentCenterId

        public void setFulfillmentCenterId(java.lang.Integer fulfillmentCenterId)
        This method sets the fulfillment center id
        Specified by:
        setFulfillmentCenterId in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Parameters:
        fulfillmentCenterId - The iFulfillmentCenterId to set.
      • getMemberId

        public java.lang.Long getMemberId()
        This method gets the member id
        Specified by:
        getMemberId in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Returns:
        Returns the iMemberId.
      • setMemberId

        public void setMemberId(java.lang.Long memberId)
        This method sets the member id
        Specified by:
        setMemberId in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Parameters:
        memberId - The iMemberId to set.
      • getQuantityOnHand

        public java.lang.Double getQuantityOnHand()
        This method gets the on hand quantity
        Specified by:
        getQuantityOnHand in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Returns:
        Returns the iQuantityOnHand.
      • setQuantityOnHand

        public void setQuantityOnHand(java.lang.Double quantityOnHand)
        This method sets the on hand quantity
        Specified by:
        setQuantityOnHand in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Parameters:
        quantityOnHand - The iQuantityOnHand to set.
      • getSKUNumber

        public java.lang.String getSKUNumber()
        This method gets the sku
        Specified by:
        getSKUNumber in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Returns:
        Returns the iSKUNumber.
      • setSKUNumber

        public void setSKUNumber(java.lang.String number)
        This method sets the SKU
        Specified by:
        setSKUNumber in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Parameters:
        number - The iSKUNumber to set.
      • getStoreId

        public java.lang.Integer getStoreId()
        This method gets the store id
        Specified by:
        getStoreId in interface ECCommand
        Specified by:
        getStoreId in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Overrides:
        getStoreId in class AbstractECTargetableCommand
        Returns:
        Returns the iStoreId.
      • setStoreId

        public void setStoreId(java.lang.Integer storeId)
        This method sets the store id
        Specified by:
        setStoreId in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Parameters:
        storeId - The iStoreId to set.
      • reset

        public void reset()
        This method should be called after a command has been executed to reset its states variables.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class com.ibm.commerce.fulfillment.commands.SynchronizeInventoryBaseTaskCmdImpl
      • getUnits

        public java.lang.String getUnits()
        This method gets the unit
        Specified by:
        getUnits in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Returns:
        Returns the units.
      • setUnits

        public void setUnits(java.lang.String anUnits)
        This method sets the unit
        Specified by:
        setUnits in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Parameters:
        anUnits - The units to set.
      • getActionCode

        public java.lang.String getActionCode()
        This method gets the action code that indicates updating inventory or deleting inventory
        Specified by:
        getActionCode in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Returns:
        Returns the actionCode.
      • setActionCode

        public void setActionCode(java.lang.String argActionCode)
        This method sets the action code that indicates updating inventory or deleting inventory
        Specified by:
        setActionCode in interface com.ibm.commerce.fulfillment.commands.SynchronizeOnhandInventoryRecordTaskCmd
        Parameters:
        argActionCode - The actionCode to set.