java.lang.Object | +--com.ibm.commerce.price.commands.ItemPriceInfo
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 |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
protected ItemPriceInfo(java.lang.Long anCatalogEntryId, QuantityAmount aQuantity) throws ECException
anCatalogEntryId
- catalog entry IDaQuantity
- the quantity with the catalog entryECException
protected ItemPriceInfo(java.lang.Long anCatalogEntryId, QuantityAmount aQuantity, java.lang.Long[] aTradingIds, java.lang.Long[] aOfferIds) throws ECException
anCatalogEntryId
- catalog entry IDaQuantity
- the quantity with the catalog entryaOfferIds
- the set of offer IDsaTradingIds
- the set of trading IDsECException
Method Detail |
---|
protected MonetaryAmount getBasePrice()
protected java.lang.Long getCatalogEntryId()
protected OfferAccessBean getOffer()
protected java.lang.Long getOfferId()
protected java.lang.Long[] getOfferIds()
protected java.util.Hashtable getOffersWithAdjPrice()
protected QuantityAmount getQuantity()
protected java.lang.Long getTcId()
protected java.lang.Long[] getTcIds()
protected MonetaryAmount[] getTradingBasePrices()
protected java.lang.Long getTradingId()
protected java.lang.Long[] getTradingIds()
protected java.lang.Long[] getTradingOfferIds()
protected OfferAccessBean[] getTradingOffers()
protected java.util.Hashtable getTradingOffersWithAdjPrice(int aIndex)
aIndex
- the index to get the offerprotected java.lang.Long[] getTradingTcIds()
protected MonetaryAmount[] getTradingUnitPrices()
protected MonetaryAmount getUnitPrice()
protected void initOutput(int aSize)
aSize
- the size of the variable arraysprotected void setBasePrice(MonetaryAmount aPrice)
aPrice
- MonetaryAmount of the priceprotected void setCatalogEntryId(java.lang.Long anCatalogEntryId)
anCatalogEntryId
- the catalog entry IDprotected void setOffer(OfferAccessBean aOffer)
aOffer
- an OfferAccessBeanprotected void setOfferId(java.lang.Long aOfferId)
aOfferId
- the offer IDprotected void setOfferIds(java.lang.Long[] aOfferIds)
aOfferIds
- a set of offer IDsprotected void setOfferIds(java.lang.Long anOfferId)
anOfferId
- the offer IDprotected void setOffersWithAdjPrice(java.util.Hashtable aOffersWithAdjPrice)
protected void setQuantity(QuantityAmount aQuantity)
aQuantity
- the quantity of the productprotected void setTcId(java.lang.Long aTcId)
aTcId
- the term condition IDprotected void setTcIds(java.lang.Long[] aTcIds)
aTcIds
- the term condition IDsprotected void setTradingBasePrice(MonetaryAmount aPrice, int aIndex)
aPrice
- the price for the productaIndex
- the index to set the priceprotected void setTradingId(java.lang.Long anTradingId)
anTradingId
- the trading IDprotected void setTradingIds(java.lang.Long[] aTradingIds)
aTradingIds
- the Trading IDsprotected void setTradingIds(java.lang.Long anTradingId)
protected void setTradingOffer(OfferAccessBean aOffer, int aIndex)
aOffer
- the offer to be setaIndex
- the index to set the offer
accessbeanprotected void setTradingOfferId(java.lang.Long aOfferId, int aIndex)
aIndex
- the index to set the offer IDprotected void setTradingOffersWithAdjPrice(java.util.Hashtable aTradingOffersWithAdjPrice, int aIndex)
aTradingOffersWithAdjPrice
- the offers with adjusted
priceaIndex
- the index to set the offersprotected void setTradingTcId(java.lang.Long aTcId, int aIndex)
aTcId
- the term condition ID to be setaIndex
- the index to set the term condition
IDprotected void setTradingUnitPrice(MonetaryAmount aPrice, int aIndex)
aPrice
- the price to be setaIndex
- the index to set the offer
accessbeanprotected void setUnitPrice(MonetaryAmount aPrice)
aPrice
- the price for the productprotected QuantityAmount getQuantityAmount() throws ECSystemException
ECSystemException