public class EntitledPriceDataBeanCmdImpl extends com.ibm.commerce.command.DataBeanCommandImpl implements EntitledPriceDataBeanCmd
This is the default implementation of EntitledPriceDataBeanCmd
data bean command.
It populates the data for the data bean EntitledPriceDataBean
.
defaultCommandClassName, NAME
Constructor and Description |
---|
EntitledPriceDataBeanCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCatEntryId()
Gets the ID that represents the primary key for this catalog entry.
|
java.lang.String |
getCurrency()
Gets the monetary currency.
|
java.math.BigDecimal |
getPrice()
Gets the price amount that represents monetary price for this catalog entry.
|
QuantityAmount |
getQuantity()
Gets quantity that represents quantity for the catalog entry.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
reset()
This method resets the command fields.
|
void |
setCatEntryId(java.lang.Long aCatEntryId)
Sets the ID that represents the primary key for this catalog entry.
|
void |
setCurrency(java.lang.String aCurrency)
Sets the monetary currency.
|
void |
setQuantity(QuantityAmount aQuantity)
Sets the product quantity for calculating the price.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataBean, populateDataBeanCommand, setDataBean, setRequestProperties
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, validateParameters
getDataBean, setDataBean, setRequestProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public java.lang.Long getCatEntryId()
Long
representing the catalog entry ID.public java.lang.String getCurrency()
String
representing the monetary currency.public java.math.BigDecimal getPrice()
BigDecimal
representing the catalog entry price amount.public QuantityAmount getQuantity()
QuantityAmount
representing the quantity for the catalog entry.public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- This exception is thrown if something fails while accessing external price service.public void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.
reset
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void setCatEntryId(java.lang.Long aCatEntryId)
aCatEntryId
- The primary key.public void setCurrency(java.lang.String aCurrency)
aCurrency
- The monetary currency.public void setQuantity(QuantityAmount aQuantity)
aQuantity
- The product quantity for calculating the price.