com.ibm.commerce.utf.utils
Class RFQProduct

java.lang.Object
  |
  +--com.ibm.commerce.utf.utils.RFQProduct

public class RFQProduct
extends java.lang.Object

Every instance of the RFQProduct class represents a catalog entry that has been associated with an RFQ.
Each instance of this class has the following information

provided by the buyer or seller for a catalog entry included in the RFQ or its response. The class RFQProduct includes methods for getting and setting the fields that comprise an rfq product.


Field Summary
 java.lang.Long catentry_id
           
 java.lang.String currency
           
 java.lang.String name
           
 java.math.BigDecimal price
           
 java.lang.String qtyunit
           
 java.lang.Double quantity
           
 java.lang.String shortdesc
           
 
Constructor Summary
RFQProduct()
          RFQProduct constructor.
RFQProduct(java.util.Hashtable h)
          Constructs an instance of the RFQProduct class using the incoming Hashtable.
 
Method Summary
 java.lang.Long getCatentry_id()
          Returns the catalog entry ID.
 java.lang.String getCurrency()
          Returns the currency.
 java.lang.String getName()
          Returns the name of the catalog entry.
 java.math.BigDecimal getPrice()
          Returns the item price.
 java.lang.String getQtyunit()
          Returns the quantity unit.
 java.lang.Double getQuantity()
          Returns the quantity requested.
 java.lang.String getShortdesc()
          Returns the short description for the catalog entry.
 void setCatentry_id(java.lang.Long newCatentry_id)
          Stores the incoming catalog entry ID in a member variable.
 void setCurrency(java.lang.String newCurrency)
          Stores the incoming currency in a member variable.
 void setName(java.lang.String newName)
          Stores the name of the catalog entry in a member variable.
 void setPrice(java.math.BigDecimal newPrice)
          Stores the incoming price in a member variable.
 void setQtyunit(java.lang.String newQtyunit)
          Stores the incoming quantity unit in a member variable.
 void setQuantity(java.lang.Double newQuantity)
          Stores the incoming quantity in a member variable.
 void setShortdesc(java.lang.String newShortdesc)
          Stores the incoming short description in a member variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

catentry_id

public java.lang.Long catentry_id

currency

public java.lang.String currency

name

public java.lang.String name

price

public java.math.BigDecimal price

qtyunit

public java.lang.String qtyunit

quantity

public java.lang.Double quantity

shortdesc

public java.lang.String shortdesc
Constructor Detail

RFQProduct

public RFQProduct()
RFQProduct constructor.

RFQProduct

public RFQProduct(java.util.Hashtable h)
Constructs an instance of the RFQProduct class using the incoming Hashtable.

Every RFQ product has the following fields:

  1. price: The price quoted by the buyer or the seller for the catalog entry
  2. quantity: Quantity requested by the buyer or promised by the seller.
  3. currency: The currency in which the price is quoted
  4. qtyunit: An optional unit of measure for the quantity - pounds, kilograms etc.
  5. name: Name of the catalog entry.
  6. shortdesc: Short description of the catalog entry.

Method Detail

getCatentry_id

public java.lang.Long getCatentry_id()
Returns the catalog entry ID.
Returns:
The catalog entry ID.

getCurrency

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

getName

public java.lang.String getName()
Returns the name of the catalog entry.
Returns:
The name of the catalog entry.

getPrice

public java.math.BigDecimal getPrice()
Returns the item price.
Returns:
The item price.

getQtyunit

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

getQuantity

public java.lang.Double getQuantity()
Returns the quantity requested.
Returns:
The requested quantity.

getShortdesc

public java.lang.String getShortdesc()
Returns the short description for the catalog entry.
Returns:
The short description for the catalog entry.

setCatentry_id

public void setCatentry_id(java.lang.Long newCatentry_id)
Stores the incoming catalog entry ID in a member variable.
Parameters:
newCatentry_id - The catalog entry ID.

setCurrency

public void setCurrency(java.lang.String newCurrency)
Stores the incoming currency in a member variable.
Parameters:
newCurrency - The currency.

setName

public void setName(java.lang.String newName)
Stores the name of the catalog entry in a member variable.
Parameters:
newName - The catalog entry name.

setPrice

public void setPrice(java.math.BigDecimal newPrice)
Stores the incoming price in a member variable.
Parameters:
newPrice - The price for the catalog entry.

setQtyunit

public void setQtyunit(java.lang.String newQtyunit)
Stores the incoming quantity unit in a member variable.
Parameters:
newQtyunit - The quantity unit.

setQuantity

public void setQuantity(java.lang.Double newQuantity)
Stores the incoming quantity in a member variable.
Parameters:
newQuantity - The quantity.

setShortdesc

public void setShortdesc(java.lang.String newShortdesc)
Stores the incoming short description in a member variable.
Parameters:
newShortdesc - The short description.