com.ibm.commerce.price.commands
Class CatEntryPrices

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

public class CatEntryPrices
extends java.lang.Object

Pricing info stored for input catalog entries.


Field Summary
static java.lang.String COPYRIGHT
The defautl name of this command.
Constructor Summary
CatEntryPrices(java.lang.Long anCatalogEntryId, QuantityAmount aQuantity)
Item constructor comment.
CatEntryPrices(java.lang.Long anCatalogEntryId, QuantityAmount aQuantity, java.lang.Long[] aTradingIds, java.lang.Long[] aOfferIds)
Item constructor comment.
CatEntryPrices(OrderItemAccessBean aOrderItemAB)
Item constructor comment.
CatEntryPrices(OrderItemAccessBean aOrderItemAB, java.lang.Long[] aTradingIds, java.lang.Long[] aOfferIds)
Item constructor comment.
Method Summary
java.lang.Long[] getAllTradingIds()
Get all Trading IDs
MonetaryAmount getBasePrice()
Get Base price
java.lang.Long getCatalogEntryId()
Return catalog entry ID
OfferAccessBean getOffer()
Get offer for this catalog entry
java.lang.Long getOfferId()
Get offer for this catalog entry
java.lang.Long[] getOfferIds()
Get offers for this catalog entry
OrderItemAccessBean getOrderItem()
Get OrderItem accessbean
java.lang.Long getOrderItemId()
Get OrderItem ID for this catalog entry
QuantityAmount getQuantity()
Get Quantity for this catalog entry
java.lang.Long getTcId()
Get TermCondition ID
MonetaryAmount getTradingBasePrice(int aIndex)
Get price for this for this catalog entry
MonetaryAmount[] getTradingBasePrices()
Get prices for this for this catalog entry
java.lang.Long getTradingId()
Get Trading ID
java.lang.Long[] getTradingIds()
Get Trading IDs
OfferAccessBean getTradingOffer(int aIndex)
Get offer for tradings
java.lang.Long getTradingOfferId(int aIndex)
Get offer for a trading ID
java.lang.Long[] getTradingOfferIds()
Get offers
OfferAccessBean[] getTradingOffers()
Get offers
java.lang.Long getTradingTcId(int aIndex)
Get term condition ID
java.lang.Long[] getTradingTcIds()
Get term condition IDs
MonetaryAmount getTradingUnitPrice(int aIndex)
Get monetary amount for this product
MonetaryAmount[] getTradingUnitPrices()
Get monetary amounts for this product
MonetaryAmount getUnitPrice()
Get monetary amount for this product
void initOutput(int aSize)
Initialize the variables for output
void refresh()
Refresh the variables
void setAllTradingIds(java.lang.Long[] aTradingIds)
Set all trading IDs
void setBasePrice(MonetaryAmount aPrice)
Set base price
void setCatalogEntryId(java.lang.Long anCatalogEntryId)
Set base price
void setOffer(OfferAccessBean aOffer)
Set an offer
void setOfferId(java.lang.Long aOfferId)
Set an offer
void setOfferIds(java.lang.Long[] aOfferIds)
Set a set of offers
void setOrderItem(OrderItemAccessBean aOrderItemAB)
Set order item
void setOrderItemId(java.lang.Long anOrderItemId)
Set order item ID
void setQuantity(QuantityAmount aQuantity)
Set quantity
void setTcId(java.lang.Long aTcId)
Set ID of a term condition
void setTradingBasePrices(MonetaryAmount[] aPrices)
Set prices based on trading
void setTradingId(java.lang.Long anTradingId)
Set trading ID
void setTradingIds(java.lang.Long[] aTradingIds)
Set trading IDs
void setTradingOfferIds(java.lang.Long[] aOfferIds)
Set offer IDs
void setTradingOffers(OfferAccessBean[] aOffers)
Set offer IDs
void setTradingTcIds(java.lang.Long[] aTcIds)
Set term condition IDs
void setTradingUnitPrices(MonetaryAmount[] aPrices, StoreAccessBean aStoreAB)
Set prices
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
The defautl name of this command.
See Also:
Constant Field Values
Constructor Detail

CatEntryPrices

public CatEntryPrices(OrderItemAccessBean aOrderItemAB)
               throws ECException
Item constructor comment.
Parameters:
aOrderItemAB - an OrderItem accessbean
Throws:
ECException

CatEntryPrices

public CatEntryPrices(OrderItemAccessBean aOrderItemAB,
                      java.lang.Long[] aTradingIds,
                      java.lang.Long[] aOfferIds)
               throws ECException
Item constructor comment.
Parameters:
aOrderItemAB - an OrderItem accessbean
Throws:
ECException

CatEntryPrices

public CatEntryPrices(java.lang.Long anCatalogEntryId,
                      QuantityAmount aQuantity)
               throws ECException
Item constructor comment.
Parameters:
aQuantity - a QuantityAmount
Throws:
ECException

CatEntryPrices

public CatEntryPrices(java.lang.Long anCatalogEntryId,
                      QuantityAmount aQuantity,
                      java.lang.Long[] aTradingIds,
                      java.lang.Long[] aOfferIds)
               throws ECException
Item constructor comment.
Parameters:
aQuantity - a QuantityAmount
aTradingIds - Trading IDs
aOfferIds - Offer IDs
Throws:
ECException
Method Detail

getAllTradingIds

public java.lang.Long[] getAllTradingIds()
Get all Trading IDs
Returns:
Long[] a set of Trading IDs

getBasePrice

public MonetaryAmount getBasePrice()
Get Base price
Returns:
MonetaryAmount a monetary amount

getCatalogEntryId

public java.lang.Long getCatalogEntryId()
Return catalog entry ID
Returns:
Long a catalog entry ID

getOffer

public OfferAccessBean getOffer()
Get offer for this catalog entry
Returns:
OfferAccessBean an offer access bean

getOfferId

public java.lang.Long getOfferId()
Get offer for this catalog entry
Returns:
Long an offer ID

getOfferIds

public java.lang.Long[] getOfferIds()
Get offers for this catalog entry
Returns:
Long[] a set of Offer IDs

getOrderItem

public OrderItemAccessBean getOrderItem()
Get OrderItem accessbean
Returns:
OrderItemAccessBean an OrderItem access bean

getOrderItemId

public java.lang.Long getOrderItemId()
Get OrderItem ID for this catalog entry
Returns:
Long an orderitem ID

getQuantity

public QuantityAmount getQuantity()
Get Quantity for this catalog entry
Returns:
QuantityAmount an quantity

getTcId

public java.lang.Long getTcId()
Get TermCondition ID
Returns:
Long a termcond ID

getTradingBasePrice

public MonetaryAmount getTradingBasePrice(int aIndex)
Get price for this for this catalog entry
Parameters:
aIndex - the index to return the monetary amount
Returns:
MonetaryAmount a MonetaryAmount for this catalog entry

getTradingBasePrices

public MonetaryAmount[] getTradingBasePrices()
Get prices for this for this catalog entry
Returns:
MonetaryAmount[] a array of MonetaryAmount for this catalog entry for each tradings

getTradingId

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

getTradingIds

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

getTradingOffer

public OfferAccessBean getTradingOffer(int aIndex)
Get offer for tradings
Parameters:
aIndex - the index to return the offer
Returns:
OfferAccessBean a Trading ID

getTradingOfferId

public java.lang.Long getTradingOfferId(int aIndex)
Get offer for a trading ID
Parameters:
aIndex - the index to return the offer
Returns:
Long a offer ID

getTradingOfferIds

public java.lang.Long[] getTradingOfferIds()
Get offers
Returns:
Long[] an array of all the offers

getTradingOffers

public OfferAccessBean[] getTradingOffers()
Get offers
Returns:
OfferAccessBean[] an array of all the offers accessbeans

getTradingTcId

public java.lang.Long getTradingTcId(int aIndex)
Get term condition ID
Parameters:
aIndex - a index to return the term condition ID
Returns:
Long a term condition ID

getTradingTcIds

public java.lang.Long[] getTradingTcIds()
Get term condition IDs
Returns:
Long[] an array of term condition IDs

getTradingUnitPrice

public MonetaryAmount getTradingUnitPrice(int aIndex)
Get monetary amount for this product
Parameters:
aIndex - the index to return the monetary amount
Returns:
an MonetaryAmount

getTradingUnitPrices

public MonetaryAmount[] getTradingUnitPrices()
Get monetary amounts for this product
Returns:
an array of MonetaryAmount

getUnitPrice

public MonetaryAmount getUnitPrice()
Get monetary amount for this product
Returns:
an MonetaryAmount

initOutput

public void initOutput(int aSize)
Initialize the variables for output
Parameters:
aSize - the array size for initialization

refresh

public void refresh()
             throws ECException
Refresh the variables
Throws:
EXException
ECException

setAllTradingIds

public void setAllTradingIds(java.lang.Long[] aTradingIds)
Set all trading IDs
Parameters:
aTradingIds - an array of the trading IDs

setBasePrice

public void setBasePrice(MonetaryAmount aPrice)
Set base price
Parameters:
aPrice - a monetary amount of the price

setCatalogEntryId

public void setCatalogEntryId(java.lang.Long anCatalogEntryId)
Set base price

setOffer

public void setOffer(OfferAccessBean aOffer)
Set an offer
Parameters:
aOffer - an OfferAccessBean

setOfferId

public void setOfferId(java.lang.Long aOfferId)
Set an offer
Parameters:
aOfferId - an offer ID

setOfferIds

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

setOrderItem

public void setOrderItem(OrderItemAccessBean aOrderItemAB)
Set order item
Parameters:
aOrderItemAB - a OrderItemAccessBean

setOrderItemId

public void setOrderItemId(java.lang.Long anOrderItemId)
Set order item ID

setQuantity

public void setQuantity(QuantityAmount aQuantity)
Set quantity
Parameters:
aQuantity - a QuantityAmount

setTcId

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

setTradingBasePrices

public void setTradingBasePrices(MonetaryAmount[] aPrices)
Set prices based on trading
Parameters:
aPrices - an array of MonetaryAmount

setTradingId

public void setTradingId(java.lang.Long anTradingId)
Set trading ID
Parameters:
anTradingId - a trading ID

setTradingIds

public void setTradingIds(java.lang.Long[] aTradingIds)
Set trading IDs
Parameters:
aTradingIds - an array of trading IDs

setTradingOfferIds

public void setTradingOfferIds(java.lang.Long[] aOfferIds)
Set offer IDs
Parameters:
aOfferIds - a array of offer IDs

setTradingOffers

public void setTradingOffers(OfferAccessBean[] aOffers)
Set offer IDs
Parameters:
aOffers - a array of offer accessbeans

setTradingTcIds

public void setTradingTcIds(java.lang.Long[] aTcIds)
Set term condition IDs
Parameters:
aTcIds - an array of term condition IDs

setTradingUnitPrices

public void setTradingUnitPrices(MonetaryAmount[] aPrices,
                                 StoreAccessBean aStoreAB)
                          throws ECException
Set prices
Parameters:
aPrices - an array of MonetaryAmount
aStoreAB - a store accessbean
Throws:
ECException

setUnitPrice

public void setUnitPrice(MonetaryAmount aPrice)
Set price
Parameters:
aPrice - a MonetaryAmount

Feedback