java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.utf.commands.CreateRFQCatentryRelCmdImpl
Creates the relationship between a catalog entry or a made to order item and the RFQ.
Behaviour
Exception conditions
RFQAccessBean
Field Summary | |
---|---|
java.lang.Long |
catentryId Catentry Id. |
java.lang.Integer |
changeable Changeable integer. |
java.lang.String |
currency Currency. |
java.lang.Long |
offeringId Offering Id. |
java.math.BigDecimal |
price Price. |
java.lang.String |
qtyunit Quantity Unit of Measurement. |
java.lang.Double |
quantity Quantity. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.utf.commands. CreateRFQCatentryRelCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CreateRFQCatentryRelCmdImpl() Default Constructor. |
Method Summary | |
---|---|
java.lang.Long |
getCatentryId() Retrieves the catalog entry ID. |
java.lang.Integer |
getChangeable() Returns 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 |
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 |
getRFQProductId() Gets the new RFQ product ID. |
void |
performExecute()
Creates the RFQ catalog entry relationship. |
void |
reset() Reset the command |
void |
setCategoryId(java.lang.Long newCategoryid) Stores the category ID. |
void |
setCatentryId(java.lang.Long newCatentryId) Stores the catalog entry 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 |
setProductName(java.lang.String productName) Sets the product name. |
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 |
validateParameters()
This method does the following:
Verifies that an RFQ Id has been provided. Verifies that a catalog entry 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 java.lang.Long offeringId
public java.lang.Long catentryId
public java.math.BigDecimal price
public java.lang.Double quantity
public java.lang.String currency
public java.lang.String qtyunit
public java.lang.Integer changeable
Constructor Detail |
---|
public CreateRFQCatentryRelCmdImpl()
Method Detail |
---|
public void reset()
reset
in class
AbstractECTargetableCommand
public java.lang.Long getCatentryId()
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
ECApplicationException
- If an application error occurs while
creating the RFQ.
ECSystemException
- If a system error occurs while creating the
RFQ.ECException
ECCommand#performExecute()
public void setCatentryId(java.lang.Long newCatentryId)
setCatentryId
in interface
CreateRFQCatentryRelCmd
newCatentryId
- The catalog entry ID.public void setCategoryId(java.lang.Long newCategoryid)
setCategoryId
in interface
CreateRFQCatentryRelCmd
newCategoryid
- The category ID.public void setCurrency(java.lang.String newCurrency)
setCurrency
in interface
CreateRFQCatentryRelCmd
newCurrency
- The currency.public void setOfferingId(java.lang.Long newOfferingId)
setOfferingId
in interface
CreateRFQCatentryRelCmd
newOfferingId
- The ID of the RFQ.public void setPrice(java.lang.String newPrice)
setPrice
in interface
CreateRFQCatentryRelCmd
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
CreateRFQCatentryRelCmd
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
CreateRFQCatentryRelCmd
newQuantity
- The requested quantity.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
-
ECException
ECCommand#validateParameters()
public void setProductName(java.lang.String productName)
setProductName
in interface
CreateRFQCatentryRelCmd
productName
- The product name.public java.lang.Long getRFQProductId()
getRFQProductId
in interface
CreateRFQCatentryRelCmd
public java.lang.Integer getChangeable()
public void setChangeable(java.lang.Integer changeable)
setChangeable
in interface
CreateRFQCatentryRelCmd
changeable
- The changeable to set