public class GetBaseUnitPriceCmdImpl extends TaskCommandImpl implements GetBaseUnitPriceCmd, GetBaseSpecialPriceCmd, GetProductBaseUnitPriceCmd
The offer that is used to find the price of a catalog entry Id must satisfy the following criteria:
If a valid offer cannot be found for an item, the parent product offers will be searched.
This command calls the following TaskCommands:
This command uses the following AccessBeans:Constructor and Description |
---|
GetBaseUnitPriceCmdImpl()
GetBaseUnitPriceCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
MonetaryAmount | getBasePrice()
Gets the base price of the catalog entry.
|
java.lang.Long[] | getContractIds()
Get the contract IDs associated with the offer that supplied the price.
|
java.sql.Timestamp | getExpiryDateForCache()
Get the expiry date of the price.
|
OfferAccessBean | getOffer()
Get the offer access bean that was used to determine the price.
|
java.lang.Long | getOfferId()
getOfferID method comment.
|
MonetaryAmount | getPrice()
Gets the actual price of the catalog entry.
|
void | performExecute()
Execute the command.
|
void | reset()
reset the command.
|
void | setCatEntryId(java.lang.Long aCatEntryId)
Sets the primary key of the catalog entry whose price is to be retrieved.
|
void | setContractIds(java.lang.Long[] aContractIdList)
(Optional) Sets the contract IDs to be used to determine which offers apply.
|
void | setCurrency(java.lang.String aCurrency)
(Optional) Set the currency to be used for finding the price.
|
void | setOfferIds(java.lang.Long[] anOfferIdList)
(Optional) Sets the offer IDs to use for the price.
|
void | setOrderItemAccessBean(OrderItemAccessBean anOrderItemAccessBean)
(Optional) Set the order item.
|
void | setQuantity(QuantityAmount newQuantityAmount)
(Optional) Set the quantity amount of the catalog entry that is to be priced.
|
void | setStoreId(java.lang.Integer newStoreId)
(Optional) Set the store Id to use for calculating the price.
|
void | validateParameters()
Check mandatory parameters.
|
public GetBaseUnitPriceCmdImpl()
public MonetaryAmount getBasePrice()
public java.lang.Long[] getContractIds() throws ECSystemException
public java.sql.Timestamp getExpiryDateForCache() throws ECSystemException
public OfferAccessBean getOffer()
public java.lang.Long getOfferId()
public MonetaryAmount getPrice()
public void performExecute() throws ECException
public void reset()
public void setCatEntryId(java.lang.Long aCatEntryId)
public void setContractIds(java.lang.Long[] aContractIdList)
public void setCurrency(java.lang.String aCurrency)
public void setOfferIds(java.lang.Long[] anOfferIdList)
public void setOrderItemAccessBean(OrderItemAccessBean anOrderItemAccessBean)
public void setQuantity(QuantityAmount newQuantityAmount)
public void setStoreId(java.lang.Integer newStoreId)
public void validateParameters() throws ECException