com.ibm.commerce.order.commands

Class CheckChildOrderCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckChildOrderCmd, 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 CheckChildOrderCmdImpl
    extends TaskCommandImpl
    implements CheckChildOrderCmd
    This command checks parameter needPayment, needRecalculate for an order.

    Behavior

    The command does the following:

    1. Check parameter needPayment. If no value transferred in, return true for recurring order
    2. and return false for subscription order
    3. Check parameter needRecalculate. If no value transferred in, return true for recurring
    4. order and return false for subscription order
    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

      • CheckChildOrderCmdImpl

        public CheckChildOrderCmdImpl()
    • Method Detail

      • getPaymentFlag

        public boolean getPaymentFlag()
        get String value 'Y' or 'N' for parameter 'needPayment' and return boolean value whether need payment or not
        Specified by:
        getPaymentFlag in interface CheckChildOrderCmd
        Returns:
        boolean needPayment
      • getRecalculateFlag

        public boolean getRecalculateFlag()
        get String value 'Y' or 'N' for parameter 'needRecalculate' and return boolean value whether need recalculate order. Hook of Fixpack
        Specified by:
        getRecalculateFlag in interface CheckChildOrderCmd
        Returns:
        boolean needRecalculate
      • needCalculateOrder

        public boolean needCalculateOrder()
        Check whether the order need to be calculated. Hook of Fixpack. Return default value: true.
        Specified by:
        needCalculateOrder in interface CheckChildOrderCmd
        Returns:
        boolean value