public class PriceDataBean extends FormattedMonetaryAmountDataBean implements PriceInputDataBean, PriceSmartDataBean
| Constructor and Description |
|---|
PriceDataBean(MonetaryAmount aMonetaryAmount,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.Integer aLanguageId)
Price data bean constructor.
|
PriceDataBean(MonetaryAmount aMonetaryAmount,
com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.Integer aLanguageId,
java.lang.Long aCatEntryId,
com.ibm.commerce.command.CommandContext aCommandContext)
Price data bean constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getCatEntryId()
Gets the catalog entry id.
|
java.math.BigDecimal |
getPriceVAT()
Gets total of the price with VAT.
|
CategorizedMonetaryAmountsDataBean |
getTaxes()
Invokes GetDisplayTaxes command to calculate the taxes for those
tax categories that are displayable at product display time.
|
void |
setCatEntryId(java.lang.Long aCatEntryId)
Sets the catalog entry id
|
void |
setStoreId(java.lang.Integer anStoreId)
sets store id (optional).
|
getAmount, getCommandContext, getCurrency, getRequestProperties, populate, setAmount, setCommandContext, setCurrency, setRequestPropertiesgetCounterValueListPrefix, getCounterValueListSeparator, getCounterValueListSuffix, getFormattedCounterValues, getPrimaryFormattedPrice, getPrimaryPrice, isShowCounterValues, setCounterValueListPrefix, setCounterValueListSeparator, setCounterValueListSuffix, setPrimaryPrice, setShowCounterValues, toStringgetCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBeanequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsetAmount, setCurrencygetAmount, getCurrencypublic PriceDataBean(MonetaryAmount aMonetaryAmount, com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.Integer aLanguageId)
aMonetaryAmount - monetary amount of the price.aStoreAccessBean - store under which the formatting is to occur.aLanguageId - language Id under which the formatting is to occur.public PriceDataBean(MonetaryAmount aMonetaryAmount, com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.Integer aLanguageId, java.lang.Long aCatEntryId, com.ibm.commerce.command.CommandContext aCommandContext)
aMonetaryAmount - monetary amount of the price.aStoreAccessBean - store under which the formatting is to occur.aLanguageId - language Id under which the formatting is to occur.aCatEntryId - the catalog entry id for the price.aCommandContext - the command context.public java.lang.Long getCatEntryId()
getCatEntryId in interface PriceSmartDataBeanLong containing the catalog entry id.public java.math.BigDecimal getPriceVAT()
throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemExceptionpublic CategorizedMonetaryAmountsDataBean getTaxes() throws com.ibm.commerce.exception.ECSystemException
getTaxes in interface PriceSmartDataBeanCategorizedMonetaryAmountsDataBean containing the
taxing monetary amounts, names and descriptions and so forth.com.ibm.commerce.exception.ECSystemExceptionpublic void setCatEntryId(java.lang.Long aCatEntryId)
setCatEntryId in interface PriceInputDataBeanaCatEntryId - the catalog entry Id.public void setStoreId(java.lang.Integer anStoreId)
anStoreId - the store which calculation is based on.