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, setRequestProperties
getCounterValueListPrefix, getCounterValueListSeparator, getCounterValueListSuffix, getFormattedCounterValues, getPrimaryFormattedPrice, getPrimaryPrice, isShowCounterValues, setCounterValueListPrefix, setCounterValueListSeparator, setCounterValueListSuffix, setPrimaryPrice, setShowCounterValues, toString
getCustomizedString, getDescription, getLangId, getNumberUsage, getStoreAccessBean, getSymbol, setLangId, setNumberUsage, setStoreAccessBean
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
setAmount, setCurrency
getAmount, getCurrency
public 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 PriceSmartDataBean
Long
containing the catalog entry id.public java.math.BigDecimal getPriceVAT() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public CategorizedMonetaryAmountsDataBean getTaxes() throws com.ibm.commerce.exception.ECSystemException
getTaxes
in interface PriceSmartDataBean
CategorizedMonetaryAmountsDataBean
containing the
taxing monetary amounts, names and descriptions and so forth.com.ibm.commerce.exception.ECSystemException
public void setCatEntryId(java.lang.Long aCatEntryId)
setCatEntryId
in interface PriceInputDataBean
aCatEntryId
- the catalog entry Id.public void setStoreId(java.lang.Integer anStoreId)
anStoreId
- the store which calculation is based on.