com.ibm.commerce.utf.commands

Class ModifyRFQCatentryRelCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ModifyRFQCatentryRelCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ModifyRFQCatentryRelCmdImpl
    extends TaskCommandImpl
    implements ModifyRFQCatentryRelCmd
    Updates the relationship between a catalog entry and the RFQ.

    Behaviour

    1. Verifies that the mandatory parameters catentryId and offeringId are present.
    2. Updates the RFQ catalog entry relationship using the incoming values for price, quantity, currency and quantityunit.

    Exception conditions

    • If the catalog entry ID is not specified.
    • If the RFQ ID is not provided.
    This is the default implementation of the ModifyRFQCatentryRelCmd. This command uses the following AccessBeans:
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • rfqProdId

        public java.lang.Long rfqProdId
        RFQ Product Id.
      • offeringId

        public java.lang.Long offeringId
        RFQ Offering Id.
      • catentryId

        public java.lang.Long catentryId
        RFQ Catentry Id.
      • price

        public java.math.BigDecimal price
        Price.
      • quantity

        public java.lang.Double quantity
        Quantity.
      • currency

        public java.lang.String currency
        Currency.
      • qtyunit

        public java.lang.String qtyunit
        Quantity of Unit Measurement.
    • Constructor Detail

      • ModifyRFQCatentryRelCmdImpl

        public ModifyRFQCatentryRelCmdImpl()
        CreateRFQCmdImpl constructor comment.
    • Method Detail

      • reset

        public void reset()
        Reset the command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • getCatentryId

        public java.lang.Long getCatentryId()
        Retrieves the catalog entry ID.
        Returns:
        The catalog entry ID.
      • getCurrency

        public java.lang.String getCurrency()
        Retrieves the currency.
        Returns:
        The currency.
      • getOfferingId

        public java.lang.Long getOfferingId()
        Retrieves the RFQ ID.
        Returns:
        The RFQ ID.
      • getPrice

        public java.math.BigDecimal getPrice()
        Retrieves the quoted price for the catalog entry.
        Returns:
        The price of the catalog entry.
      • getQtyunit

        public java.lang.String getQtyunit()
        Retrieves the quantity unit.
        Returns:
        The quantity unit.
      • getQuantity

        public java.lang.Double getQuantity()
        Retrieves the quantity(number of instances) of the catalog entry that has been requested.
        Returns:
        The requested quantity of the catalog entry.
      • setCatentryId

        public void setCatentryId(java.lang.Long newCatentryId)
        Stores the catalog entry ID.
        Specified by:
        setCatentryId in interface ModifyRFQCatentryRelCmd
        Parameters:
        newCatentryId - The catalog entry ID.
      • setCurrency

        public void setCurrency(java.lang.String newCurrency)
        Stores the currency.
        Specified by:
        setCurrency in interface ModifyRFQCatentryRelCmd
        Parameters:
        newCurrency - The currency.
      • setOfferingId

        public void setOfferingId(java.lang.Long newOfferingId)
        Stores the RFQ ID.
        Specified by:
        setOfferingId in interface ModifyRFQCatentryRelCmd
        Parameters:
        newOfferingid - The ID of the RFQ.
      • setPrice

        public void setPrice(java.lang.String newPrice)
        Stores the price quoted for the catalog entry.
        Specified by:
        setPrice in interface ModifyRFQCatentryRelCmd
        Parameters:
        newPrice - The price of the catalog entry.
      • setPrice

        public void setPrice(java.math.BigDecimal newPrice)
        Stores the price quoted for the catalog entry.
        Parameters:
        newPrice - The price of the catalog entry.
      • setQtyunit

        public void setQtyunit(java.lang.String newQtyunit)
        Stores the quantity unit.
        Specified by:
        setQtyunit in interface ModifyRFQCatentryRelCmd
        Parameters:
        newQtyunit - The quantity unit.
      • setQuantity

        public void setQuantity(java.lang.Double newQuantity)
        Stores the requested quantity
        Parameters:
        newQuantity - The requested quantity.
      • setQuantity

        public void setQuantity(java.lang.String newQuantity)
        Stores the requested quantity
        Specified by:
        setQuantity in interface ModifyRFQCatentryRelCmd
        Parameters:
        newQuantity - The requested quantity.
      • validateParameters

        public void validateParameters()
                                throws ECException
        This method does the following:
        1. Verifies that an RFQ Id has been provided.
        2. Verifies that a catalog entry ID has been provided.
        3. Verifies that an RFQ with the provided ID exists.

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECApplicationException -
        • If the RFQ ID has not been provided.
        • If the catalog entry has not been provided.
        • If no RFQ exists with the provided ID.
        ECException
        See Also:
        ECCommand#validateParameters()
      • getRfqProdId

        public java.lang.Long getRfqProdId()
        Gets the rfqProdId
        Returns:
        Returns a java.lang.Long
      • setRfqProdId

        public void setRfqProdId(java.lang.Long rfqProdId)
        Sets the rfqProdId
        Parameters:
        rfqProdId - The rfqProdId to set