com.ibm.commerce.order.commands

Class PrepareShipInfoCmdImpl

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

    Behaviour:

    Performs a verification between the SHIPINFO table and the ORDERITEMS table and checks for orphaned SHIPINFO records. Such records will be removed. An orphaned record is a SHIPINFO record which does not have a matching ORDERITEMS record. Such a circumstance can occur for example when users delete a shipping addresses for which they have already created SHIPINFO data.

    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

      • PrepareShipInfoCmdImpl

        public PrepareShipInfoCmdImpl()
        Default constructor
    • Method Detail

      • setOrderId

        public void setOrderId(java.lang.String anOrderId)
        The order ID we are performing the verification check for
        Specified by:
        setOrderId in interface PrepareShipInfoCmd
        Parameters:
        anOrderId - The order ID of the SHIPINFO info record to verify.
      • setVerificationRequired

        public void setVerificationRequired(java.lang.String aVerificationRequired)
        The type of verification required on the SHIPINFO table. Either the shipping instructions can be verified or the shipping charge data (charge type and account number) depending on the parameter.
        Specified by:
        setVerificationRequired in interface PrepareShipInfoCmd
        Parameters:
        aVerificationRequired - Type of verification required on the SHIPINFO table. ECConstants.EC_SHIPINFO_INSTRUCTS to verify instructions. ECConstants.EC_SHIPINFO_CARRACCNTS to verify account data.