com.ibm.commerce.price.beans

Class EntitledPriceDataBean

  • java.lang.Object
    • com.ibm.commerce.price.beans.EntitledPriceDataBean
  • All Implemented Interfaces:
    com.ibm.commerce.beans.CommandDataBean, com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, java.io.Serializable


    public class EntitledPriceDataBean
    extends java.lang.Object
    implements com.ibm.commerce.beans.CommandDataBean
    This data bean gets monetary price from EntitledPriceDataBeanCmdfor a generic catalog entry.

    You can find more information about data beans in the WebSphere Commerce data beans topic in the Information Center.

    Mandatory Parameters:

    • catentry ID

    Some hints and tips for using this data bean are:

    • It is important to set the catentry ID value before activating the data bean

    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface com.ibm.commerce.beans.DataBean

        emptyString
    • 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 getCommandInterfaceName()
      This method gets the command interface name that populates this data bean.
      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.
      com.ibm.commerce.datatype.TypedProperty getRequestProperties()
      This method gets the parameters passed as part of the URL if any.
      void setCatEntryId(java.lang.Long aCatEntryId)
      Sets the ID that represents the primary key for this catalog entry.
      void setCommandInterfaceName(java.lang.String ifname)
      This method sets the command interface name.
      void setCurrency(java.lang.String aCurrency)
      Sets the monetary currency.
      void setPrice(java.math.BigDecimal aPrice)
      Sets the price that represents the monetary price for this catalog entry.
      void setQuantity(QuantityAmount aQuantity)
      Sets the product quantity for calculating the price.
      void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aTypedProp)
      Sets the request property and populates the parameters that are needed by the bean.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EntitledPriceDataBean

        public EntitledPriceDataBean()
    • 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.
      • getCommandInterfaceName

        public java.lang.String getCommandInterfaceName()
        This method gets the command interface name that populates this data bean. The default command interfaceName is EntitledPriceDataBeanCmd.
        Specified by:
        getCommandInterfaceName in interface com.ibm.commerce.beans.CommandDataBean
        Returns:
        A String that specifies the name of the command interface.
      • 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.
      • getRequestProperties

        public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
        This method gets the parameters passed as part of the URL if any.
        Specified by:
        getRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Returns:
        TypedProperty that specifies the parameters passed as part of the URL if any.
      • 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.
      • setCommandInterfaceName

        public void setCommandInterfaceName(java.lang.String ifname)
        This method sets the command interface name. The data can be got through the specified databean command.
        Specified by:
        setCommandInterfaceName in interface com.ibm.commerce.beans.CommandDataBean
        Parameters:
        ifname - A String that specifies the command interface name to be set.
      • setCurrency

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

        public void setPrice(java.math.BigDecimal aPrice)
        Sets the price that represents the monetary price for this catalog entry.
        Parameters:
        aPrice - The monetary amount price.
      • setQuantity

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

        public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty aTypedProp)
                                  throws java.lang.Exception
        Sets the request property and populates the parameters that are needed by the bean. The following values are set in this method: catentry ID.
        Specified by:
        setRequestProperties in interface com.ibm.commerce.beans.InputDataBean
        Parameters:
        aTypedProp - The request property as TypedProperty.
        Throws:
        java.lang.Exception - Thrown if there is a problem when setting the request properties. This particular method should not throw any exception because it just stores the request properties.