com.ibm.commerce.rfq.commands
Class UpdateRFQCatentryRelCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.rfq.commands.UpdateRFQCatentryRelCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, TaskCommand, UpdateRFQCatentryRelCmd

public class UpdateRFQCatentryRelCmdImpl
extends TaskCommandImpl
implements UpdateRFQCatentryRelCmd

Adds the item to the RFQ.

This is the default implementation of the UpdateRFQCatentryRelCmd. This command uses the following AccessBeans:

See Also:
Serialized Form

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
COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

UpdateRFQCatentryRelCmdImpl

public UpdateRFQCatentryRelCmdImpl()
Constructs a new UpdateRFQCatentryRelCmdImpl class instance.
Method Detail

reset

public void reset()
Reset the command
Overrides:
reset in class AbstractECTargetableCommand

getCategoryId

public java.lang.Long getCategoryId()
Retrieves the category ID.
Returns:
The category 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.

performExecute

public void performExecute()
                    throws ECException
Updates the RFQ catalog entry relationship.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECSystemException - If a system error occurs while updating the relationship.
ECException.
ECException
See Also:
ECCommand#performExecute()

setCategoryId

public void setCategoryId(java.lang.Long newCategoryId)
Stores the category ID.
Specified by:
setCategoryId in interface UpdateRFQCatentryRelCmd
Parameters:
newCategoryId - The category ID.

setCurrency

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

setOfferingId

public void setOfferingId(java.lang.Long newOfferingId)
Stores the RFQ ID.
Specified by:
setOfferingId in interface UpdateRFQCatentryRelCmd
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 UpdateRFQCatentryRelCmd
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 UpdateRFQCatentryRelCmd
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 UpdateRFQCatentryRelCmd
Parameters:
newQuantity - The requested quantity.

validateParameters

public void validateParameters()
                        throws ECException
This method does the following:
  1. Verifies that an RFQ Id (offeringId) has been provided.
  2. Verifies that an RFQ Product Id has been provided.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException -
  • If the RFQ Id has not been provided or does not exist in the database.
  • If the RFQ Product Id has not been provided or does not exist in the database.
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
Specified by:
setRfqProdId in interface UpdateRFQCatentryRelCmd
Parameters:
rfqProdId - The rfqProdId to set

getChangeable

public java.lang.Integer getChangeable()
Gets the changeable
Returns:
Returns a java.lang.Integer

setChangeable

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

getProdName

public java.lang.String getProdName()
Returns the prodName.
Returns:
java.lang.String

setProdName

public void setProdName(java.lang.String prodName)
Sets the prodName.
Specified by:
setProdName in interface UpdateRFQCatentryRelCmd
Parameters:
prodName - The prodName to set