java.lang.Object | +--MonetaryAmountDataBean | +--com.ibm.commerce.price.beans.FormattedMonetaryAmountDataBean | +--com.ibm.commerce.price.beans.PriceDataBean
A formatter bean used to format prices. This bean also contains support for displaying taxes with the price.
Constructor Summary | |
---|---|
PriceDataBean(com.ibm.commerce.price.utils.MonetaryAmount aMonetaryAmount,
StoreAccessBean aStoreAccessBean,
java.lang.Integer aLanguageId) Price data bean constructor. | |
PriceDataBean(com.ibm.commerce.price.utils.MonetaryAmount aMonetaryAmount,
StoreAccessBean aStoreAccessBean,
java.lang.Integer aLanguageId, java.lang.Long aCatEntryId,
CommandContext aCommandContext) Price data bean constructor. |
Method Summary | |
---|---|
java.lang.Long |
getCatEntryId() Get the catalog entry id. |
java.math.BigDecimal |
getPriceVAT() Get 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) set store id (optional). |
Methods inherited from class com.ibm.commerce.price.beans. FormattedMonetaryAmountDataBean |
getAmount,
getCommandContext,
getCurrency,
getRequestProperties,
populate,
setAmount,
setCommandContext,
setCurrency,
setRequestProperties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Constructor Detail |
---|
public PriceDataBean(com.ibm.commerce.price.utils.MonetaryAmount aMonetaryAmount, 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(com.ibm.commerce.price.utils.MonetaryAmount aMonetaryAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLanguageId, java.lang.Long aCatEntryId, 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.Method Detail |
---|
public java.lang.Long getCatEntryId()
Long
containing the catalog entry id.public java.math.BigDecimal getPriceVAT() throws javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, ECSystemException
CreateException
FinderException
RemoteException
NamingException
ECSystemException
public CategorizedMonetaryAmountsDataBean getTaxes() throws javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, ECSystemException
CategorizedMonetaryAmountsDataBean
containing the taxing
monetary amounts, names and descriptions etc.CreateException
FinderException
RemoteException
NamingException
ECSystemException
public void setCatEntryId(java.lang.Long aCatEntryId)
aCatEntryId
- the catalog entry Id.public void setStoreId(java.lang.Integer anStoreId)
anStoreId
- the store which calculation is based
on.