com.ibm.commerce.price.beans

Class FloorPriceDataBean

    • Constructor Detail

      • FloorPriceDataBean

        public FloorPriceDataBean()
        Floor Price Data Bean's default constructor
      • FloorPriceDataBean

        public FloorPriceDataBean(java.lang.Long aCatEntryID,
                                  java.lang.Long aTsrID,
                                  com.ibm.commerce.command.CommandContext cmdCtx)
        Floor Price Data Bean's constructor
        Parameters:
        aCatEntryID - a catalog entry ID
        aTsrID - a TSR ID
        cmdctx - an instance of CommandContext
      • FloorPriceDataBean

        public FloorPriceDataBean(MonetaryAmount aMonetaryAmount,
                                  com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
                                  java.lang.Integer aLanguageId)
        Floor Price data bean constructor.
        Parameters:
        aMonetaryAmount - monetary amount of the price.
        aStoreAccessBean - store under which the formatting is to occur.
        aLanguageId - language Id under which the formatting is to occur.
      • FloorPriceDataBean

        public FloorPriceDataBean(MonetaryAmount aMonetaryAmount,
                                  com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
                                  java.lang.Integer aLanguageId,
                                  java.lang.Long aCatEntryId,
                                  com.ibm.commerce.command.CommandContext aCommandContext)
        Floor Price data bean constructor.
        Parameters:
        aMonetaryAmount - monetary amount of the price.
        aStoreAccessBean - store under which the formatting is to occur.
        aLanguageId - language Id under which the formatting is to occur.
        aCatEntryId - the catalog entry id for the price.
        aCommandContext - the command context.
      • FloorPriceDataBean

        public FloorPriceDataBean(MonetaryAmount aMonetaryAmount,
                                  com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
                                  java.lang.Integer aLanguageId,
                                  java.lang.String aPartnumber,
                                  com.ibm.commerce.command.CommandContext aCommandContext)
        Floor Price data bean constructor.
        Parameters:
        aMonetaryAmount - monetary amount of the price.
        aStoreAccessBean - store under which the formatting is to occur.
        aLanguageId - language Id under which the formatting is to occur.
        aPartnumber - the custom partnumber.
        aCommandContext - the command context.
      • FloorPriceDataBean

        public FloorPriceDataBean(java.lang.String aPartnumber,
                                  java.lang.Long aTsrID,
                                  com.ibm.commerce.command.CommandContext cmdCtx)
        Floor Price Data Bean's constructor
        Parameters:
        aPartnumber - the custom partnumber.
        aTsrID - a TSR ID
        cmdctx - an instance of CommandContext
    • Method Detail

      • getCatEntryId

        public java.lang.Long getCatEntryId()
        Get the catalog entry id.
        Specified by:
        getCatEntryId in interface FloorPriceSmartDataBean
        Returns:
        the Long containing the catalog entry id.
      • getCustomPartnumber

        public java.lang.String getCustomPartnumber()
        Gets the custom partnumber.
        Specified by:
        getCustomPartnumber in interface FloorPriceSmartDataBean
        Returns:
        the String containing the custom partnumber.
      • getFloorPriceValue

        public java.math.BigDecimal getFloorPriceValue()
        Retrieve the floor price via FloorPriceLookupCmd
        Specified by:
        getFloorPriceValue in interface FloorPriceSmartDataBean
        Returns:
        BigDecimal the floor price
      • getQuantity

        public QuantityAmount getQuantity()
        Gets a quantity object of the catalog entry.
        Returns:
        QuantityAmount
      • getStoreId

        public java.lang.Integer getStoreId()
        Get the store id.
        Returns:
        the Integer containing the store id.
      • populate

        public void populate()
                      throws java.lang.Exception
        Populate the databean
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Overrides:
        populate in class FormattedMonetaryAmountDataBean
        Throws:
        EXception
        java.lang.Exception
      • setCatEntryId

        public void setCatEntryId(java.lang.Long aCatEntryId)
        Sets the catalog entry ID
        Specified by:
        setCatEntryId in interface FloorPriceInputDataBean
        Parameters:
        aCatEntryId - Long a catalog entry ID
      • setConfigurationId

        public void setConfigurationId(java.lang.String aConfigID)
        Sets the configuration ID, if this catalog entry is a DynamicKit. (Optional)
        Specified by:
        setConfigurationId in interface FloorPriceInputDataBean
        Parameters:
        aConfigID - A String of pre-configuration ID for a DynamicKit
      • setCustomPartnumber

        public void setCustomPartnumber(java.lang.String aPartnumber)
        Sets the custom partnumber.
        Specified by:
        setCustomPartnumber in interface FloorPriceInputDataBean
        Parameters:
        aPartnumber - String The custom partnumber.
      • setQuantity

        public void setQuantity(QuantityAmount aQuantityAmount)
        Sets the quantity amount of the input catalog entry that is to be priced (Optional).
        Specified by:
        setQuantity in interface FloorPriceInputDataBean
        Parameters:
        aQuantityAmount - The quantity amount of the catalog entry.
      • setStoreId

        public void setStoreId(java.lang.Integer aStoreId)
        Sets the store ID
        Specified by:
        setStoreId in interface FloorPriceInputDataBean
        Parameters:
        aStoreId - Integer A stores ID
      • setTSRId

        public void setTSRId(java.lang.Long aTSRId)
        Sets the TSR ID
        Specified by:
        setTSRId in interface FloorPriceInputDataBean
        Parameters:
        aTSRId - Long A TSR ID