com.ibm.commerce.price.commands

Class PriceRuleGetContractUnitPriceCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
    • Constructor Detail

      • PriceRuleGetContractUnitPriceCmdImpl

        public PriceRuleGetContractUnitPriceCmdImpl()
        Constructor for PriceRuleGetContractUnitPriceCmdImpl.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Uses the RuleEngineExecutePriceRuleCmd command to obtain the price. This command will first compose the input data for the service, execute the service, and interpret the results.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException - If there was an error composing the price for the service command or looking up data from the service command. This error will not be thrown if AbstractGetPriceCmdImpl.setErrorMode(boolean) was set to false.
      • setCustomData

        public void setCustomData(java.util.Map customData)
        Description copied from interface: GetCustomContractUnitPriceCmd
        Set custom data that is passed to the command.
        Specified by:
        setCustomData in interface GetCustomContractUnitPriceCmd
        Parameters:
        customData - The custom data to be used for calculating the price. This value may be null or empty.