public class RetrieveTradingsTaskCmdImpl extends TaskCommandImpl implements RetrieveTradingsTaskCmd
RetrieveTradingsTaskCmd
task command.
STORE.PRICEREFFLAGS
is 4, it retrieves valid trading agreements
previously searched and saved for the order item.
STORE.PRICEREFFLAGS
is not 4, it retrieves valid trading agreements
currently used by the order item.
defaultCommandClassName, NAME
Constructor and Description |
---|
RetrieveTradingsTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
OrderItemAccessBean |
getOrderItem()
This method gets the order item to retrieve trading agreements for.
|
java.lang.Integer |
getPriceRefreshFlag()
This method gets the price refresh flag.
|
java.lang.Long[] |
getTradingAgreements()
This method returns the array of trading agreement identifiers retrieved.
|
void |
performExecute()
This method performs the main business logic of the command.
|
void |
reset()
This method resets the command.
|
void |
setOrderItem(OrderItemAccessBean abOrderItem)
This method sets the order item to retrieve trading agreements for.
|
void |
setPriceRefreshFlag(java.lang.Integer anRefreshFlag)
This method sets the price refresh flag.
|
void |
setTradingAgreements(java.lang.Long[] argTradingIds)
This method sets the array of trading agreement identifiers.
|
void |
validateParameters()
Performs server side parameter checking.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public OrderItemAccessBean getOrderItem()
public void setOrderItem(OrderItemAccessBean abOrderItem)
setOrderItem
in interface RetrieveTradingsTaskCmd
abOrderItem
- the order item access bean.public void setPriceRefreshFlag(java.lang.Integer anRefreshFlag)
STORE.PRICEREFFLAGS
:
0: Default, same as 1 except that it will not save the trading agreement id. 1: This means useCurrentOnly. This uses the price directly referenced by the order items. It fails if they can no longer be used. 2: This means useCurrentOrSearchAgain. This is the same as useCurrentOnly. But instead of failing when they can no longer be used, it searches the ones that were originally searched for the order items. These tradings are saved when the order items were created or updated with new trading agreement id specified. 4: This means alwaysSearchAgain. This option always searches the price that was originally searched when the order items were created or updated with new trading agreement id specified. 8: Before calling price command, sum the quantity for the order items with same catentry. It will get the best price and update the order item's trading agreement id. It will not save the tradingId in the ORDITRD.
setPriceRefreshFlag
in interface RetrieveTradingsTaskCmd
anRefreshFlag
- the price refresh flag.public java.lang.Integer getPriceRefreshFlag()
public java.lang.Long[] getTradingAgreements()
getTradingAgreements
in interface RetrieveTradingsTaskCmd
public void setTradingAgreements(java.lang.Long[] argTradingIds)
argTradingIds
- the array of trading agreement identifiers.public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand