com.ibm.commerce.order.calculation

Class CalculationCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • CalculationCmdImpl

        public CalculationCmdImpl()
        Constructor for CalculationCmdImpl.
    • Method Detail

      • getCurrency

        public java.lang.String getCurrency()
        Returns the currency to use during execution.
        Specified by:
        getCurrency in interface CalculationCmd
        Returns:
        the currency.
      • getCustomProperties

        public java.util.HashMap getCustomProperties()
        Returns the custom properties as a HashMap.
        Specified by:
        getCustomProperties in interface CalculationCmd
        Returns:
        the custom properties. Key: property name (class: String). Value: property value (class: Object).
      • getCustomProperty

        public java.lang.Object getCustomProperty(java.lang.String astrName)
        Returns the value of a custom property.
        Specified by:
        getCustomProperty in interface CalculationCmd
        Parameters:
        astrName - the property name.
        Returns:
        the property value.
      • getTimestamp

        public java.sql.Timestamp getTimestamp()
        Returns the timestamp to use during execution.
        Specified by:
        getTimestamp in interface CalculationCmd
        Returns:
        the timestamp.
      • getUsageId

        public java.lang.Integer getUsageId()
        Returns the calculation usage.
        Specified by:
        getUsageId in interface CalculationCmd
        Returns:
        the calculation usage ID.
      • reset

        public void reset()
        Description copied from class: AbstractECTargetableCommand
        This method is called after a command has been executed. It is used to reset its states variables. After the call to reset, the command should be able to be executed again.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
        See Also:
        Command.reset()
      • setCurrency

        public void setCurrency(java.lang.String astrCurrency)
        Sets the currency to use during execution.
        Specified by:
        setCurrency in interface CalculationCmd
        Parameters:
        astrCurrency - the currency.
      • setCustomProperties

        public void setCustomProperties(java.util.HashMap ahshCustomProperties)
        Sets the custom properties.
        Specified by:
        setCustomProperties in interface CalculationCmd
        Parameters:
        ahshCustomProperties - the custom properties. Key: property name (class: String). Value: property value (class: Object).
      • setCustomProperty

        public void setCustomProperty(java.lang.String astrName,
                                      java.lang.Object aValue)
        Sets the value of a custom property.
        Specified by:
        setCustomProperty in interface CalculationCmd
        Parameters:
        astrName - the property name.
        aValue - the property value.
      • setTimestamp

        public void setTimestamp(java.sql.Timestamp aTimestamp)
        Sets the timestamp to use during execution.
        Specified by:
        setTimestamp in interface CalculationCmd
        Parameters:
        aTimestamp - the timestamp.
      • setUsageId

        public void setUsageId(java.lang.Integer anUsageId)
        Sets the calculation usage.
        Specified by:
        setUsageId in interface CalculationCmd
        Parameters:
        anUsageId - the calculation usage ID.