public class CalculationCodeCombineCmdImpl extends CalculationCmdImpl implements CalculationCodeCombineCmd
The default implementation of CalculationCodeCombineCmd.
Its behavior is as follows:
Commands used:
Access beans used:Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
CalculationCodeCombineCmdImpl()
Constructor for CalculationCodeCombineCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
protected void | addItem(GroupKey aKey, Item aItem)
Adds an item to a group with the specified key.
|
protected Item[] | callCodeQualify(CalculationCodeAccessBean aabCode, Item[] aItems)
Invokes the calculation method of type "CalculationCodeQualify" referenced by the calculation code (see CALCODE.CALMETHOD_ID_QFY, CalculationCodeQualifyCmd) to determine the qualifying items.
|
protected GroupKey | createGroupKey(CalculationCodeAccessBean aabCode, Item aItem)
Generates a group key from a calculation code and an item.
|
protected Group[] | createGroups()
Generates the groups.
|
protected CalculationCodeAccessBean[] | getCodes(Item aItem)
Returns the calculation codes attached to an item.
|
protected CalculationCodeAccessBean | getDefaultCode()
Returns the default calculation code.
|
protected CalculationCodeAccessBean[] | getDirectlyAttachedCodes(Item aItem)
Returns the calculation codes directly attached to an item.
|
Group[] | getGroups()
Returns the groups.
|
protected CalculationCodeAccessBean[] | getIndirectlyAttachedCodes(Item aItem)
Returns the calculation codes indirectly attached to an item.
|
protected Item[] | getItems()
Returns the items.
|
protected java.lang.Long[] | getProductOrItemIds(java.lang.Long anCatalogEntryId)
Returns the parent product of a catalog entry, or itself if it doesn't have one.
|
protected java.lang.Integer[] | getTaxCategoryIds()
Returns the tax categories.
|
protected boolean | isDirectAttachmentsOverride(Item aItem)
Returns whether the calculation codes directly attached to an item should override the ones indirectly attached to it.
|
protected boolean | isRestricted(CalculationCodeAccessBean aabCode)
Returns whether a calculation code is restricted.
|
void | performExecute()
This method performs the business logic for this command.
|
protected void | processItem(Item aItem)
Processes an item.
|
void | reset()
This method is called after a command has been executed.
|
protected void | setGroups(Group[] aGroups)
Sets the groups.
|
void | setItems(Item[] aItems)
Sets the items.
|
void | setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
Sets the tax categories that should be active during execution.
|
protected java.lang.String | toString(CalculationCodeAccessBean[] aabCodes)
Returns the string representation of a list of calculation codes for diagnostic purposes.
|
public static final java.lang.String COPYRIGHT
public CalculationCodeCombineCmdImpl()
protected void addItem(GroupKey aKey, Item aItem)
protected Item[] callCodeQualify(CalculationCodeAccessBean aabCode, Item[] aItems) throws ECException
protected GroupKey createGroupKey(CalculationCodeAccessBean aabCode, Item aItem) throws ECException
protected Group[] createGroups() throws ECException
protected CalculationCodeAccessBean[] getCodes(Item aItem) throws ECException
protected CalculationCodeAccessBean getDefaultCode() throws ECException
protected CalculationCodeAccessBean[] getDirectlyAttachedCodes(Item aItem) throws ECException
public Group[] getGroups()
protected CalculationCodeAccessBean[] getIndirectlyAttachedCodes(Item aItem) throws ECException
protected Item[] getItems()
protected java.lang.Integer[] getTaxCategoryIds()
protected boolean isDirectAttachmentsOverride(Item aItem) throws ECException
protected boolean isRestricted(CalculationCodeAccessBean aabCode) throws ECException
public void performExecute() throws ECException
protected void processItem(Item aItem) throws ECException
public void reset()
protected void setGroups(Group[] aGroups)
public void setItems(Item[] aItems)
public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
protected java.lang.String toString(CalculationCodeAccessBean[] aabCodes) throws ECException
protected java.lang.Long[] getProductOrItemIds(java.lang.Long anCatalogEntryId) throws ECException