public class RetrieveTradingsTaskCmdImpl extends TaskCommandImpl implements RetrieveTradingsTaskCmd
Constructor and Description |
---|
RetrieveTradingsTaskCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | extRetrieveTradings()
This method could be overridden to retrieve trading agreements from other way.
|
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.
|
public OrderItemAccessBean getOrderItem()
public void setOrderItem(OrderItemAccessBean abOrderItem)
public void setPriceRefreshFlag(java.lang.Integer anRefreshFlag)
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.
public java.lang.Integer getPriceRefreshFlag()
public java.lang.Long[] getTradingAgreements()
public void setTradingAgreements(java.lang.Long[] argTradingIds)
public void performExecute() throws ECException
protected void extRetrieveTradings() throws ECException
public void validateParameters() throws ECException
public void reset()