com.ibm.commerce.price.utils
Class QuantityAmountDataBeanImpl

java.lang.Object
  |
  +--com.ibm.commerce.price.utils.UnitAmountDataBeanImpl
        |
        +--com.ibm.commerce.price.utils.QuantityAmountDataBeanImpl
Direct Known Subclasses:
FormattedQuantityAmountDataBean

public class QuantityAmountDataBeanImpl
extends UnitAmountDataBeanImpl

Monetary amount data bean service class.


Constructor Summary
QuantityAmountDataBeanImpl()
          QuantityAmountDataBeanImpl default constructor.
QuantityAmountDataBeanImpl(QuantityAmount aQuantityAmount, StoreAccessBean aStoreAccessBean, java.lang.Integer aLangId)
          QuantityAmountDataBeanImpl constructor.
 
Method Summary
 FormattedQuantityAmount getFormattedQuantity()
          Get the formatted quantity.
 QuantityAmount getQuantity()
          Get the quantity (round customized).
 void setQuantity(QuantityAmount newQuantity)
          Set the quantity.
 
Methods inherited from class com.ibm.commerce.price.utils.UnitAmountDataBeanImpl
formatAmount, getCustomizedString, getDescription, getLangId, getNumberUsage, getPrimaryAmount, getPrimaryFormattedAmount, getStoreAccessBean, getSymbol, roundAmount, setLangId, setNumberUsage, setPrimaryAmount, setStoreAccessBean, setUnitManager, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuantityAmountDataBeanImpl

public QuantityAmountDataBeanImpl()
                           throws ECSystemException
QuantityAmountDataBeanImpl default constructor.

QuantityAmountDataBeanImpl

public QuantityAmountDataBeanImpl(QuantityAmount aQuantityAmount,
                                  StoreAccessBean aStoreAccessBean,
                                  java.lang.Integer aLangId)
                           throws ECSystemException
QuantityAmountDataBeanImpl constructor.
Parameters:
aQuantityAmount - a quantity amount.
aStoreAccessBean - the store under which the formatting is to occur.
aLangId - the language Id under which the formatting is to occur.
Method Detail

getFormattedQuantity

public FormattedQuantityAmount getFormattedQuantity()
                                             throws ECException
Get the formatted quantity.
Returns:
a formatted quantity amount

getQuantity

public QuantityAmount getQuantity()
                           throws ECSystemException
Get the quantity (round customized).
Returns:
com.ibm.commerce.price.utils.QuantityAmount

setQuantity

public void setQuantity(QuantityAmount newQuantity)
Set the quantity.
Parameters:
newQuantity - the quantity amount.