com.ibm.commerce.order.commands

Class UpdateShipInfoCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, UpdateShipInfoCmd, 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 UpdateShipInfoCmdImpl
    extends TaskCommandImpl
    implements UpdateShipInfoCmd
    This is the default implementation of the UpdateShipInfoCmd task command.

    Behaviour:

    Updates shipping information. If the data to be updated is of type shipping charge type/account number as opposed to shipping instructions. Then the address ID passed in is -1. If the data is not of that type, the address ID passed is that to store shipping instructions for.
    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

      • UpdateShipInfoCmdImpl

        public UpdateShipInfoCmdImpl()
        Default constructor
    • Method Detail

      • setOrderId

        public void setOrderId(java.lang.String anOrderId)
        The order ID of the SHIPINFO record to update.
        Specified by:
        setOrderId in interface UpdateShipInfoCmd
        Parameters:
        anOrderId - The order ID of the SHIPINFO info record to update or create.
      • setAddressId

        public void setAddressId(java.lang.String anAddressId)
        The address ID of the SHIPINFO record to update.
        Specified by:
        setAddressId in interface UpdateShipInfoCmd
        Parameters:
        anAddressId - The address ID of the SHIPINFO info record to update or create.
      • setShipModeId

        public void setShipModeId(java.lang.String aShipmodeId)
        The shipping mode ID of the SHIPINFO record to update.
        Specified by:
        setShipModeId in interface UpdateShipInfoCmd
        Parameters:
        aShipmodeId - The SHIPINFO ID of the SHIPINFO info record to update or create.
      • setShipInstructions

        public void setShipInstructions(java.lang.String aShipInstructions)
        The new or updated shipping instructions for the SHIPINFO record.
        Specified by:
        setShipInstructions in interface UpdateShipInfoCmd
        Parameters:
        aShipInstructions - The shipping instructions to insert or update the SHIPINFO table with.
      • setShipChargeTypeId

        public void setShipChargeTypeId(java.lang.String aShipChargeTypeId)
        The new shipping charge type for the SHIPINFO record.
        Specified by:
        setShipChargeTypeId in interface UpdateShipInfoCmd
        Parameters:
        aShipChargeTypeId - The new shipping charge type to insert or update the SHIPINFO table with.
      • setShipCarrAccntNum

        public void setShipCarrAccntNum(java.lang.String aShipCarrAccntNum)
        The new shipping account number for the SHIPINFO record.
        Specified by:
        setShipCarrAccntNum in interface UpdateShipInfoCmd
        Parameters:
        aShipCarrAccntNum - The new shipping account number to insert or update the SHIPINFO table with.
      • setUpdateRequired

        public void setUpdateRequired(java.lang.String theVerificationRequired)
        The type of update required to the SHIPINFO table. That is to say whether shipping instructions or shipping charge type/account number information is to be updated..
        Specified by:
        setUpdateRequired in interface UpdateShipInfoCmd
        Parameters:
        theVerificationRequired - Either ECConstants.EC_SHIPINFO_INSTRUCTS or ECConstants.EC_SHIPINFO_CARRACCNTS