com.ibm.commerce.price.commands

Class EntitledPriceDataBeanCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.DataBeanCommandImpl
            • com.ibm.commerce.price.commands.EntitledPriceDataBeanCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.DataBeanCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TargetableECCommand, EntitledPriceDataBeanCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.TargetableCommand


    public class EntitledPriceDataBeanCmdImpl
    extends com.ibm.commerce.command.DataBeanCommandImpl
    implements EntitledPriceDataBeanCmd

    This is the default implementation of EntitledPriceDataBeanCmddata bean command.

    It populates the data for the data bean EntitledPriceDataBean.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Long getCatEntryId()
      Gets the ID that represents the primary key for this catalog entry.
      java.lang.String getCurrency()
      Gets the monetary currency.
      java.math.BigDecimal getPrice()
      Gets the price amount that represents monetary price for this catalog entry.
      QuantityAmount getQuantity()
      Gets quantity that represents quantity for the catalog entry.
      void performExecute()
      This method executes the business logic of this command implementation.
      void reset()
      This method resets the command fields.
      void setCatEntryId(java.lang.Long aCatEntryId)
      Sets the ID that represents the primary key for this catalog entry.
      void setCurrency(java.lang.String aCurrency)
      Sets the monetary currency.
      void setQuantity(QuantityAmount aQuantity)
      Sets the product quantity for calculating the price.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.DataBeanCommandImpl

        getDataBean, populateDataBeanCommand, setDataBean, setRequestProperties
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.command.DataBeanCommand

        getDataBean, setDataBean, setRequestProperties
      • Methods inherited from interface com.ibm.commerce.command.TargetableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Constructor Detail

      • EntitledPriceDataBeanCmdImpl

        public EntitledPriceDataBeanCmdImpl()
    • Method Detail

      • getCatEntryId

        public java.lang.Long getCatEntryId()
        Gets the ID that represents the primary key for this catalog entry.
        Returns:
        The Long representing the catalog entry ID.
      • getCurrency

        public java.lang.String getCurrency()
        Gets the monetary currency.
        Returns:
        the String representing the monetary currency.
      • getPrice

        public java.math.BigDecimal getPrice()
        Gets the price amount that represents monetary price for this catalog entry.
        Returns:
        The BigDecimal representing the catalog entry price amount.
      • getQuantity

        public QuantityAmount getQuantity()
        Gets quantity that represents quantity for the catalog entry.
        Returns:
        The QuantityAmount representing the quantity for the catalog entry.
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        This method executes the business logic of this command implementation.
        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 - This exception is thrown if something fails while accessing external price service.
      • reset

        public void reset()

        This method resets the command fields.

        After this method is invoked, and proper attributes are set, the command can be executed again.

        Overrides:
        reset in class com.ibm.commerce.command.AbstractECTargetableCommand
      • setCatEntryId

        public void setCatEntryId(java.lang.Long aCatEntryId)
        Sets the ID that represents the primary key for this catalog entry.
        Parameters:
        aCatEntryId - The primary key.
      • setCurrency

        public void setCurrency(java.lang.String aCurrency)
        Sets the monetary currency.
        Parameters:
        aCurrency - The monetary currency.
      • setQuantity

        public void setQuantity(QuantityAmount aQuantity)
        Sets the product quantity for calculating the price.
        Parameters:
        aQuantity - The product quantity for calculating the price.