com.ibm.commerce.price.commands
Class ItemPriceInfo

java.lang.Object
  com.ibm.commerce.price.commands.ItemPriceInfo

public class ItemPriceInfo
extends java.lang.Object

Internal Pricing info stored for items.


Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field.
Constructor Summary
protected ItemPriceInfo(java.lang.Long anCatalogEntryId, QuantityAmount aQuantity)
Item constructor comment.
protected ItemPriceInfo(java.lang.Long anCatalogEntryId, QuantityAmount aQuantity, java.lang.Long[] aTradingIds, java.lang.Long[] aOfferIds)
Item constructor comment.
Method Summary
protected MonetaryAmount getBasePrice()
Get base price
protected java.lang.Long getCatalogEntryId()
Get catalog entry ID
protected OfferAccessBean getOffer()
Get Offer access bean
protected java.lang.Long getOfferId()
Get offer ID
protected java.lang.Long[] getOfferIds()
Get offer IDs
protected java.util.Hashtable getOffersWithAdjPrice()
Get adjusted prices
protected QuantityAmount getQuantity()
Get quantity amount
protected QuantityAmount getQuantityAmount()
Returns the quantity amount of the input catalog entry for price.
protected java.lang.Long getTcId()
Get term condition ID
protected java.lang.Long[] getTcIds()
Get term condition IDs
protected MonetaryAmount[] getTradingBasePrices()
Get adjusted prices
protected java.lang.Long getTradingId()
Get Trading ID
protected java.lang.Long[] getTradingIds()
Get Trading IDs
protected java.lang.Long[] getTradingOfferIds()
Get Offer IDs for all Trading IDs
protected OfferAccessBean[] getTradingOffers()
Get Offer access beans
protected java.util.Hashtable getTradingOffersWithAdjPrice(int aIndex)
Get offers with the adjusted prices
protected java.lang.Long[] getTradingTcIds()
Get Term condition IDs
protected MonetaryAmount[] getTradingUnitPrices()
Get Monetary amount for all the tradings
protected MonetaryAmount getUnitPrice()
Get monetary amount of the price
protected void initOutput(int aSize)
Initialize the variables
protected void setBasePrice(MonetaryAmount aPrice)
Set base price
protected void setCatalogEntryId(java.lang.Long anCatalogEntryId)
Set catalog entry ID
protected void setOffer(OfferAccessBean aOffer)
Set offer access bean
protected void setOfferId(java.lang.Long aOfferId)
Set Offer ID
protected void setOfferIds(java.lang.Long anOfferId)
Set one Offer ID
protected void setOfferIds(java.lang.Long[] aOfferIds)
Set all Offer IDs
protected void setOffersWithAdjPrice(java.util.Hashtable aOffersWithAdjPrice)
Set Offers with adjusted prices
protected void setQuantity(QuantityAmount aQuantity)
Set quantity of the product
protected void setTcId(java.lang.Long aTcId)
Set term condition ID
protected void setTcIds(java.lang.Long[] aTcIds)
Set term condition IDs
protected void setTradingBasePrice(MonetaryAmount aPrice, int aIndex)
Set the price for the assigned index
protected void setTradingId(java.lang.Long anTradingId)
Set trading ID
protected void setTradingIds(java.lang.Long anTradingId)
Set one trading ID
protected void setTradingIds(java.lang.Long[] aTradingIds)
Set trading IDs
protected void setTradingOffer(OfferAccessBean aOffer, int aIndex)
Set OfferAccessBean for index trading
protected void setTradingOfferId(java.lang.Long aOfferId, int aIndex)
Set Offer ID for index trading
protected void setTradingOffersWithAdjPrice(java.util.Hashtable aTradingOffersWithAdjPrice, int aIndex)
Set Offers with the adjusted prices
protected void setTradingTcId(java.lang.Long aTcId, int aIndex)
Set Term Condition ID for the assigned index
protected void setTradingUnitPrice(MonetaryAmount aPrice, int aIndex)
Set prices for the index trading
protected void setUnitPrice(MonetaryAmount aPrice)
Set price
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

ItemPriceInfo

protected ItemPriceInfo(java.lang.Long anCatalogEntryId,
                        QuantityAmount aQuantity)
                 throws ECException
Item constructor comment.
Parameters:
anCatalogEntryId - catalog entry ID
aQuantity - the quantity with the catalog entry
Throws:
ECException

ItemPriceInfo

protected ItemPriceInfo(java.lang.Long anCatalogEntryId,
                        QuantityAmount aQuantity,
                        java.lang.Long[] aTradingIds,
                        java.lang.Long[] aOfferIds)
                 throws ECException
Item constructor comment.
Parameters:
anCatalogEntryId - catalog entry ID
aQuantity - the quantity with the catalog entry
aOfferIds - the set of offer IDs
aTradingIds - the set of trading IDs
Throws:
ECException
Method Detail

getBasePrice

protected MonetaryAmount getBasePrice()
Get base price
Returns:
MonetaryAmount the monetary amount of the price

getCatalogEntryId

protected java.lang.Long getCatalogEntryId()
Get catalog entry ID
Returns:
Long the catalog entry ID

getOffer

protected OfferAccessBean getOffer()
Get Offer access bean
Returns:
OfferAccessBean an offer access bean

getOfferId

protected java.lang.Long getOfferId()
Get offer ID
Returns:
Long the offer ID

getOfferIds

protected java.lang.Long[] getOfferIds()
Get offer IDs
Returns:
Long[] the catalog entry IDs

getOffersWithAdjPrice

protected java.util.Hashtable getOffersWithAdjPrice()
Get adjusted prices
Returns:
Hashtable the adjusted prices

getQuantity

protected QuantityAmount getQuantity()
Get quantity amount
Returns:
QuantityAmount the quantity amount of the catentry

getTcId

protected java.lang.Long getTcId()
Get term condition ID
Returns:
Long a term condition ID

getTcIds

protected java.lang.Long[] getTcIds()
Get term condition IDs
Returns:
Long[] a set of term condition IDs

getTradingBasePrices

protected MonetaryAmount[] getTradingBasePrices()
Get adjusted prices
Returns:
MonetaryAmount[] the prices amount

getTradingId

protected java.lang.Long getTradingId()
Get Trading ID
Returns:
Long a trading ID

getTradingIds

protected java.lang.Long[] getTradingIds()
Get Trading IDs
Returns:
Long[] an array of trading IDs

getTradingOfferIds

protected java.lang.Long[] getTradingOfferIds()
Get Offer IDs for all Trading IDs
Returns:
Long[] a set of offer IDs of all the trading IDs

getTradingOffers

protected OfferAccessBean[] getTradingOffers()
Get Offer access beans
Returns:
OfferAccessBean a set of offer access beans

getTradingOffersWithAdjPrice

protected java.util.Hashtable getTradingOffersWithAdjPrice(int aIndex)
Get offers with the adjusted prices
Parameters:
aIndex - the index to get the offer
Returns:
Hashtable the offers with the adjusted prices

getTradingTcIds

protected java.lang.Long[] getTradingTcIds()
Get Term condition IDs
Returns:
Long[] a set of term condition IDs

getTradingUnitPrices

protected MonetaryAmount[] getTradingUnitPrices()
Get Monetary amount for all the tradings
Returns:
MonetaryAmount the monetary amount for all the tradings

getUnitPrice

protected MonetaryAmount getUnitPrice()
Get monetary amount of the price
Returns:
MonetaryAmount the monetary amount price

initOutput

protected void initOutput(int aSize)
Initialize the variables
Parameters:
aSize - the size of the variable arrays

setBasePrice

protected void setBasePrice(MonetaryAmount aPrice)
Set base price
Parameters:
aPrice - MonetaryAmount of the price

setCatalogEntryId

protected void setCatalogEntryId(java.lang.Long anCatalogEntryId)
Set catalog entry ID
Parameters:
anCatalogEntryId - the catalog entry ID

setOffer

protected void setOffer(OfferAccessBean aOffer)
Set offer access bean
Parameters:
aOffer - an OfferAccessBean

setOfferId

protected void setOfferId(java.lang.Long aOfferId)
Set Offer ID
Parameters:
aOfferId - the offer ID

setOfferIds

protected void setOfferIds(java.lang.Long[] aOfferIds)
Set all Offer IDs
Parameters:
aOfferIds - a set of offer IDs

setOfferIds

protected void setOfferIds(java.lang.Long anOfferId)
Set one Offer ID
Parameters:
anOfferId - the offer ID

setOffersWithAdjPrice

protected void setOffersWithAdjPrice(java.util.Hashtable aOffersWithAdjPrice)
Set Offers with adjusted prices

setQuantity

protected void setQuantity(QuantityAmount aQuantity)
Set quantity of the product
Parameters:
aQuantity - the quantity of the product

setTcId

protected void setTcId(java.lang.Long aTcId)
Set term condition ID
Parameters:
aTcId - the term condition ID

setTcIds

protected void setTcIds(java.lang.Long[] aTcIds)
Set term condition IDs
Parameters:
aTcIds - the term condition IDs

setTradingBasePrice

protected void setTradingBasePrice(MonetaryAmount aPrice,
                                   int aIndex)
Set the price for the assigned index
Parameters:
aPrice - the price for the product
aIndex - the index to set the price

setTradingId

protected void setTradingId(java.lang.Long anTradingId)
Set trading ID
Parameters:
anTradingId - the trading ID

setTradingIds

protected void setTradingIds(java.lang.Long[] aTradingIds)
Set trading IDs
Parameters:
aTradingIds - the Trading IDs

setTradingIds

protected void setTradingIds(java.lang.Long anTradingId)
Set one trading ID

setTradingOffer

protected void setTradingOffer(OfferAccessBean aOffer,
                               int aIndex)
Set OfferAccessBean for index trading
Parameters:
aOffer - the offer to be set
aIndex - the index to set the offer accessbean

setTradingOfferId

protected void setTradingOfferId(java.lang.Long aOfferId,
                                 int aIndex)
Set Offer ID for index trading
Parameters:
aIndex - the index to set the offer ID

setTradingOffersWithAdjPrice

protected void setTradingOffersWithAdjPrice(java.util.Hashtable aTradingOffersWithAdjPrice,
                                            int aIndex)
Set Offers with the adjusted prices
Parameters:
aTradingOffersWithAdjPrice - the offers with adjusted price
aIndex - the index to set the offers

setTradingTcId

protected void setTradingTcId(java.lang.Long aTcId,
                              int aIndex)
Set Term Condition ID for the assigned index
Parameters:
aTcId - the term condition ID to be set
aIndex - the index to set the term condition ID

setTradingUnitPrice

protected void setTradingUnitPrice(MonetaryAmount aPrice,
                                   int aIndex)
Set prices for the index trading
Parameters:
aPrice - the price to be set
aIndex - the index to set the offer accessbean

setUnitPrice

protected void setUnitPrice(MonetaryAmount aPrice)
Set price
Parameters:
aPrice - the price for the product

getQuantityAmount

protected QuantityAmount getQuantityAmount()
                                    throws ECSystemException
Returns the quantity amount of the input catalog entry for price. If the quantity amount is not specified then the nominal quantity (rounded up to the nearest multiple as specified in the quantityMultiple attribute) of the catalog entry is assumed to be the requested quantity.
Returns:
QuantityAmount
Throws:
ECSystemException

Feedback