public class AddOrderItemComponentsCmdImpl extends TaskCommandImpl implements AddOrderItemComponentsCmd
This command uses the following AccessBeans:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
AddOrderItemComponentsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | addOutputComponent(OrderItemComponentAccessBean abOIComp)
This method adds the order item component to the output component list.
|
protected java.lang.Integer | convertQuantity(java.lang.Long anCatalogentryId, java.lang.Double anCatalogInventory, java.lang.Long anItemSpecId)
This method converts the catalog quantity to the inventory quantity.
|
protected void | createComponents(java.lang.String astrConfigurationId, java.lang.Long[] anComponets, java.lang.Double[] anQuantity, java.lang.String astrCurrency, java.math.BigDecimal[] aarnPrice, OrderItemAccessBean aabOrderItem)
This method creates components for the specified configuration.
|
java.lang.String | getCompListIds()
Returns the oicomplist ids that is used to retrieve the oicomplist entries.
|
java.lang.Long[] | getComponents()
Returns the list of Catalog Entries (components) that will be added to the OrderItem.
|
java.lang.String | getConfigurationId()
Returns the Configuration id that is used to retrieve the components.
|
java.lang.String | getCurrency()
Returns the currency for the price of the components.
|
OrderItemAccessBean | getOrderItem()
Returns the order item access bean that the components will be added to.
|
java.lang.Long | getOrderItemId()
Returns an OrderItem that the components will be added to.
|
java.util.Vector | getOutComponentList()
Gets the output list of components that were created or updated.
|
java.math.BigDecimal[] | getPrices()
Returns a list of price for the components that will be added to the OrderItem.
|
java.lang.Double[] | getQuantity()
Returns a list of quantities of each Catalog Entry (component) that will be added to the OrderItem.
|
void | performExecute()
The main entry point of the command.
|
void | setCompListIds(java.lang.String astrCompListIds)
Sets the oicomplist ids that is used to retrieve the oicomplist entries.
|
void | setComponents(java.lang.Long[] anCatentry)
Set a list of Catalog Entries (components) that will be added to the OrderItem.
|
void | setConfigurationId(java.lang.String astrConfigurationId)
Sets the Configuration id that is used to retrieve the components
|
void | setCurrency(java.lang.String astrCurrency)
(Optional)Sets the currency for the prices of the components.
|
void | setOrderItem(OrderItemAccessBean aOrderItem)
Sets the order item access bean that the components will be added to.
|
void | setOrderItemId(java.lang.Long anOrderItemId)
(Optional) Set an OrderItem that the components will be added to.
|
void | setPrices(java.math.BigDecimal[] anPrice)
(Optional) Sets a list of prices for the components that will be added to the OrderItem.
|
void | setQuantity(java.lang.Double[] anQuantity)
Set a list of quantities of each Catalog Entry (component) that will be added to the OrderItem.
|
protected void | updateComponents(java.lang.String astrConfigurationId, OrderItemAccessBean aabOrderItem)
This method updates the configuration components.
|
public static final java.lang.String COPYRIGHT
protected void addOutputComponent(OrderItemComponentAccessBean abOIComp)
protected java.lang.Integer convertQuantity(java.lang.Long anCatalogentryId, java.lang.Double anCatalogInventory, java.lang.Long anItemSpecId) throws ECException
protected void createComponents(java.lang.String astrConfigurationId, java.lang.Long[] anComponets, java.lang.Double[] anQuantity, java.lang.String astrCurrency, java.math.BigDecimal[] aarnPrice, OrderItemAccessBean aabOrderItem) throws ECException
public java.util.Vector getOutComponentList()
public void performExecute() throws ECException
public void setComponents(java.lang.Long[] anCatentry)
public void setConfigurationId(java.lang.String astrConfigurationId)
public void setCurrency(java.lang.String astrCurrency)
public void setOrderItemId(java.lang.Long anOrderItemId)
public void setPrices(java.math.BigDecimal[] anPrice)
public void setQuantity(java.lang.Double[] anQuantity)
protected void updateComponents(java.lang.String astrConfigurationId, OrderItemAccessBean aabOrderItem) throws ECException
public void setCompListIds(java.lang.String astrCompListIds)
public java.lang.String getCompListIds()
public java.lang.Long[] getComponents()
public java.lang.String getConfigurationId()
public java.lang.String getCurrency()
public java.lang.Long getOrderItemId()
public java.math.BigDecimal[] getPrices()
public java.lang.Double[] getQuantity()
public OrderItemAccessBean getOrderItem()
public void setOrderItem(OrderItemAccessBean aOrderItem)