java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.rfq.commands.UpdateRFQCatentryRelCmdImpl
Adds the item to the RFQ.
This is the default implementation of the UpdateRFQCatentryRelCmd. This command uses the following AccessBeans:
RFQProdAccessBean
RFQAccessBean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT COPYRIGHT |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.rfq.commands. UpdateRFQCatentryRelCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
UpdateRFQCatentryRelCmdImpl() Constructs a new UpdateRFQCatentryRelCmdImpl class instance. |
Method Summary | |
---|---|
java.lang.Long |
getCategoryId() Retrieves the category ID. |
java.lang.Integer |
getChangeable() Gets the changeable |
java.lang.String |
getCurrency() Retrieves the currency. |
java.lang.Long |
getOfferingId() Retrieves the RFQ ID. |
java.math.BigDecimal |
getPrice() Retrieves the quoted price for the catalog entry. |
java.lang.String |
getProdName() Returns the prodName. |
java.lang.String |
getQtyunit() Retrieves the quantity unit. |
java.lang.Double |
getQuantity() Retrieves the quantity(number of instances) of the catalog entry that has been requested. |
java.lang.Long |
getRfqProdId() Gets the rfqProdId |
void |
performExecute()
Updates the RFQ catalog entry relationship. |
void |
reset() Reset the command |
void |
setCategoryId(java.lang.Long newCategoryId) Stores the category ID. |
void |
setChangeable(java.lang.Integer changeable) Sets the changeable |
void |
setCurrency(java.lang.String newCurrency) Stores the currency. |
void |
setOfferingId(java.lang.Long newOfferingId) Stores the RFQ ID. |
void |
setPrice(java.math.BigDecimal newPrice) Stores the price quoted for the catalog entry. |
void |
setPrice(java.lang.String newPrice) Stores the price quoted for the catalog entry. |
void |
setProdName(java.lang.String prodName) Sets the prodName. |
void |
setQtyunit(java.lang.String newQtyunit) Stores the quantity unit. |
void |
setQuantity(java.lang.Double newQuantity) Stores the requested quantity |
void |
setQuantity(java.lang.String newQuantity) Stores the requested quantity |
void |
setRfqProdId(java.lang.Long rfqProdId) Sets the rfqProdId |
void |
validateParameters()
This method does the following:
Verifies that an RFQ Id (offeringId) has been provided. Verifies that an RFQ
Product Id has been provided. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public UpdateRFQCatentryRelCmdImpl()
Method Detail |
---|
public void reset()
reset
in class
AbstractECTargetableCommand
public java.lang.Long getCategoryId()
public java.lang.String getCurrency()
public java.lang.Long getOfferingId()
public java.math.BigDecimal getPrice()
public java.lang.String getQtyunit()
public java.lang.Double getQuantity()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECSystemException
- If a system error occurs while updating the
relationship.ECException.
ECException
ECCommand#performExecute()
public void setCategoryId(java.lang.Long newCategoryId)
setCategoryId
in interface
UpdateRFQCatentryRelCmd
newCategoryId
- The category ID.public void setCurrency(java.lang.String newCurrency)
setCurrency
in interface
UpdateRFQCatentryRelCmd
newCurrency
- The currency.public void setOfferingId(java.lang.Long newOfferingId)
setOfferingId
in interface
UpdateRFQCatentryRelCmd
newOfferingId
- The ID of the RFQ.public void setPrice(java.lang.String newPrice)
setPrice
in interface
UpdateRFQCatentryRelCmd
newPrice
- The price of the catalog entry.public void setPrice(java.math.BigDecimal newPrice)
newPrice
- The price of the catalog entry.public void setQtyunit(java.lang.String newQtyunit)
setQtyunit
in interface
UpdateRFQCatentryRelCmd
newQtyunit
- The quantity unit.public void setQuantity(java.lang.Double newQuantity)
newQuantity
- The requested quantity.public void setQuantity(java.lang.String newQuantity)
setQuantity
in interface
UpdateRFQCatentryRelCmd
newQuantity
- The requested quantity.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
-
ECException
ECCommand#validateParameters()
public java.lang.Long getRfqProdId()
public void setRfqProdId(java.lang.Long rfqProdId)
setRfqProdId
in interface
UpdateRFQCatentryRelCmd
rfqProdId
- The rfqProdId to setpublic java.lang.Integer getChangeable()
public void setChangeable(java.lang.Integer changeable)
setChangeable
in interface
UpdateRFQCatentryRelCmd
changeable
- The changeable to setpublic java.lang.String getProdName()
public void setProdName(java.lang.String prodName)
setProdName
in interface
UpdateRFQCatentryRelCmd
prodName
- The prodName to set