com.ibm.commerce.utf.commands

Class CreateRFQCatentryRelCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CreateRFQCatentryRelCmd, 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 CreateRFQCatentryRelCmdImpl
    extends TaskCommandImpl
    implements CreateRFQCatentryRelCmd
    Creates the relationship between a catalog entry or a made to order item and the RFQ.

    Behaviour

    1. Verifies that the mandatory parameter offeringId is present.
    2. Creates 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 CreateRFQCatentryRelCmd. 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
      • offeringId

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

        public java.lang.Long catentryId
        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 Unit of Measurement.
      • priceAdjustment

        public java.lang.Double priceAdjustment
        Price Adjustment.
      • negotiationType

        public java.lang.Integer negotiationType
        Negotiation Type.
      • changeable

        public java.lang.Integer changeable
        Changeable integer.
      • customfield1

        public java.lang.Long customfield1
        Custom field1
      • customfield2

        public java.lang.Integer customfield2
        Custom field2
      • customfield3

        public java.lang.String customfield3
        Custom field3
      • customfield4

        public java.lang.String customfield4
        Custom field4
    • Constructor Detail

      • CreateRFQCatentryRelCmdImpl

        public CreateRFQCatentryRelCmdImpl()
        Default Constructor.
    • 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.
      • getPriceAdjustment

        public java.lang.Double getPriceAdjustment()
        Retrieves the price adjustment.
        Returns:
        The requested price adjustment of the catalog entry.
      • setCatentryId

        public void setCatentryId(java.lang.Long newCatentryId)
        Stores the catalog entry ID. If this is null, then a made to order RFQ product is created.
        Specified by:
        setCatentryId in interface CreateRFQCatentryRelCmd
        Parameters:
        newCatentryid - The catalog entry ID.
      • setCategoryId

        public void setCategoryId(java.lang.Long newCategoryid)
        Stores the category ID.
        Specified by:
        setCategoryId in interface CreateRFQCatentryRelCmd
        Parameters:
        newCategoryid - The category ID.
      • setCurrency

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

        public void setOfferingId(java.lang.Long newOfferingId)
        Stores the RFQ ID.
        Specified by:
        setOfferingId in interface CreateRFQCatentryRelCmd
        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 CreateRFQCatentryRelCmd
        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 CreateRFQCatentryRelCmd
        Parameters:
        newQtyunit - The quantity unit.
      • setQuantity

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

        public void setPriceAdjustment(java.lang.Double newPriceAdjustment)
        Stores the requested price adjustment
        Specified by:
        setPriceAdjustment in interface CreateRFQCatentryRelCmd
        Parameters:
        newPriceAdjustment - The requested price adjustment.
      • setQuantity

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

        public void setProductName(java.lang.String productName)
        Sets the product name.
        Specified by:
        setProductName in interface CreateRFQCatentryRelCmd
        Parameters:
        productName - The product name.
      • getChangeable

        public java.lang.Integer getChangeable()
        Returns the changeable.
        Returns:
        java.lang.Integer
      • setChangeable

        public void setChangeable(java.lang.Integer changeable)
        Sets the changeable.
        Specified by:
        setChangeable in interface CreateRFQCatentryRelCmd
        Parameters:
        changeable - The changeable to set
      • getNegotationType

        public java.lang.Integer getNegotationType()
        Returns the negotiation type.
        Returns:
        java.lang.Integer
      • setNegotiationType

        public void setNegotiationType(java.lang.Integer negotiationType)
        Sets the negotiation type.
        Specified by:
        setNegotiationType in interface CreateRFQCatentryRelCmd
        Parameters:
        negotiationType - The negotiationType to set
      • setCustomField1

        public void setCustomField1(java.lang.Long newCustomField1)
        Stores the incoming custom field1 value.
        Specified by:
        setCustomField1 in interface CreateRFQCatentryRelCmd
        Parameters:
        newCustomField1 - The custom field1 value.
      • setCustomField2

        public void setCustomField2(java.lang.Integer newCustomField2)
        Stores the incoming custom field2 value.
        Specified by:
        setCustomField2 in interface CreateRFQCatentryRelCmd
        Parameters:
        newCustomField2 - The custom field2 value.
      • setCustomField3

        public void setCustomField3(java.lang.String newCustomField3)
        Stores the incoming custom field3 value.
        Specified by:
        setCustomField3 in interface CreateRFQCatentryRelCmd
        Parameters:
        newCustomField3 - The custom field3 value.
      • setCustomField4

        public void setCustomField4(java.lang.String newCustomField4)
        Stores the incoming custom field4 value.
        Specified by:
        setCustomField4 in interface CreateRFQCatentryRelCmd
        Parameters:
        newCustomField4 - The custom field4 value.
      • getCustomField1

        public java.lang.Long getCustomField1()
        Returns the custom field1 value.
        Returns:
        The custom field1 value.
      • getCustomField2

        public java.lang.Integer getCustomField2()
        Returns the custom field2 value.
        Returns:
        The custom field2 value.
      • getCustomField3

        public java.lang.String getCustomField3()
        Returns the custom field3 value.
        Returns:
        The custom field3 value.
      • getCustomField4

        public java.lang.String getCustomField4()
        Returns the custom field4 value.
        Returns:
        The custom field4 value.