com.ibm.commerce.utf.commands
Class ModifyRFQCatentryRelCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.utf.commands.ModifyRFQCatentryRelCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ModifyRFQCatentryRelCmd, 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 ModifyRFQCatentryRelCmdImpl extends TaskCommandImpl implements ModifyRFQCatentryRelCmd
Updates the relationship between a catalog entry and the RFQ.Behaviour
- Verifies that the mandatory parameters catentryId and offeringId are present.
- Updates 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.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.Long
catentryId
RFQ Catentry Id.static java.lang.String
COPYRIGHT
IBM copyright notice field.java.lang.String
currency
Currency.java.lang.Long
offeringId
RFQ Offering Id.java.math.BigDecimal
price
Price.java.lang.String
qtyunit
Quantity of Unit Measurement.java.lang.Double
quantity
Quantity.java.lang.Long
rfqProdId
RFQ Product Id.-
Fields inherited from interface com.ibm.commerce.utf.commands.ModifyRFQCatentryRelCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description ModifyRFQCatentryRelCmdImpl()
CreateRFQCmdImpl constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long
getCatentryId()
Retrieves the catalog entry ID.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
getRfqProdId()
Gets the rfqProdIdvoid
performExecute()
Updates the RFQ catalog entry relationship.void
reset()
Reset the command.void
setCatentryId(java.lang.Long newCatentryId)
Stores the catalog entry ID.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
setQtyunit(java.lang.String newQtyunit)
Stores the quantity unit.void
setQuantity(java.lang.Double newQuantity)
Stores the requested quantityvoid
setQuantity(java.lang.String newQuantity)
Stores the requested quantityvoid
setRfqProdId(java.lang.Long rfqProdId)
Sets the rfqProdIdvoid
validateParameters()
This method does the following:
Verifies that an RFQ Id has been provided. Verifies that a catalog entry ID has been provided. Verifies that an RFQ with the provided ID exists.-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
rfqProdId
public java.lang.Long rfqProdId
RFQ Product Id.
-
offeringId
public java.lang.Long offeringId
RFQ Offering Id.
-
catentryId
public java.lang.Long catentryId
RFQ 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 of Unit Measurement.
-
-
Constructor Detail
-
ModifyRFQCatentryRelCmdImpl
public ModifyRFQCatentryRelCmdImpl()
CreateRFQCmdImpl constructor comment.
-
-
Method Detail
-
reset
public void reset()
Reset the command.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
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.
-
performExecute
public void performExecute() throws ECException
Updates the RFQ catalog entry relationship.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECApplicationException
- If an application error occurs while updating the RFQ.ECSystemException
- If a system error occurs while updating the RFQECException
- See Also:
ECCommand#performExecute()
-
setCatentryId
public void setCatentryId(java.lang.Long newCatentryId)
Stores the catalog entry ID.- Specified by:
setCatentryId
in interfaceModifyRFQCatentryRelCmd
- Parameters:
newCatentryId
- The catalog entry ID.
-
setCurrency
public void setCurrency(java.lang.String newCurrency)
Stores the currency.- Specified by:
setCurrency
in interfaceModifyRFQCatentryRelCmd
- Parameters:
newCurrency
- The currency.
-
setOfferingId
public void setOfferingId(java.lang.Long newOfferingId)
Stores the RFQ ID.- Specified by:
setOfferingId
in interfaceModifyRFQCatentryRelCmd
- 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 interfaceModifyRFQCatentryRelCmd
- 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 interfaceModifyRFQCatentryRelCmd
- 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 interfaceModifyRFQCatentryRelCmd
- Parameters:
newQuantity
- The requested quantity.
-
validateParameters
public void validateParameters() throws ECException
This method does the following:
- Verifies that an RFQ Id has been provided.
- Verifies that a catalog entry ID has been provided.
- Verifies that an RFQ with the provided ID exists.
- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECApplicationException
-- If the RFQ ID has not been provided.
- If the catalog entry has not been provided.
- If no RFQ exists with the provided ID.
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- Parameters:
rfqProdId
- The rfqProdId to set
-
-