com.ibm.commerce.order.commands

Class CancelPONumberCmdImpl

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

    Behaviour:

    • It cancels a purchase order number.

    Task commands called:

    None
    See Also:
    Serialized Form
    • Constructor Detail

      • CancelPONumberCmdImpl

        public CancelPONumberCmdImpl()
    • Method Detail

      • getOrder

        public OrderAccessBean getOrder()
        This method returns the order whose relative purchase order number will be canceled.
        Specified by:
        getOrder in interface CancelPONumberCmd
        Returns:
        An OrderAccessBean that represents the order to get.
      • setOrder

        public void setOrder(OrderAccessBean anOrder)
        This method sets the order whose relative purchase order number will be canceled.
        Specified by:
        setOrder in interface CancelPONumberCmd
        Parameters:
        anOrder - An OrderAccessBean that represents the order to set.
      • reset

        public void reset()
        This method resets the instance variables of the command. The reset() method will reset all instance variables. The command includes some output values that are accessible via getters. Make sure those values are no longer needed before calling this method to reset the instance variables of the command.

        This is useful if the command instance is to be called multiple times with different command parameters.

        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setPurge

        public void setPurge(java.lang.String sPurge)
        This method sets the purge property of the command.
        Specified by:
        setPurge in interface CancelPONumberCmd
        Parameters:
        sPurge - A String indicating if purge is needed. If it's set to "1", it will remove the field BUYERPO_ID from the tables orders for the canceled PO number. Otherwise, the field BUYERPO_ID for the order is left intact.