com.ibm.commerce.price.commands

Class GetCachedEntitledPriceCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, GetContractSpecialPriceCmd, GetContractUnitPriceCmd, GetEntitledPriceCmd, GetProductContractUnitPriceCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class GetCachedEntitledPriceCmdImpl
    extends AbstractGetEntitledPriceCmdImpl
    It retrieves the best contract price for catalog entry from price memory cache.

    If the command is successfully getting the price, it will return the best price.

    If unsuccessful with any exceptions, the command throws the ECApplicationException specifying an Error Message (ERR_RETRIEVE_PRICE).

    If failed to retrieve price from price memory cache, it returns null value price.

    Behaviour

    • Obtain the best offer price for the input catalog entry, default currency, default quantity, if currency and quantity aren't present.
    • Obtain the best offer price for the input catalog entry, currency, default quantity, if quantity isn't present.
    • Obtain the best offer price for the input catalog entry, quantity, default currency, if currency isn't present.
    • Obtain the best offer price for the input catalog entry, currency, quantity.
    This command accepts the following inputs:

    A catalog entry ID is required, and also the c could provide quantity or currency.

    Exception Conditions

    • If failed to get default currency or quantity, the command throws the ECSystemException specifying an Error Message (ERR_RETRIEVE_PRICE).
    • If ErrorMode is false, these errors will be ignored and a null value price will be passed back to the caller.

    This command uses the following AccessBeans:
    • CatalogEntryAccessBean
    • Constructor Detail

      • GetCachedEntitledPriceCmdImpl

        public GetCachedEntitledPriceCmdImpl()