public class DoDepositCLCmdImpl extends BusinessPolicyCommandImpl implements DoDepositPolicyCmd
Parameters:
Parameter Name | Type | Descriptions |
order | OrderAccessBean | The Order Access Bean |
depositAmount | BigDecimal | The amount of the deposit |
errorViewName | String | Optional error view name passed in by the Caller. |
Behavior:
Default Error View Name:
ErrorCodes:
This command uses the following AccessBeans:
This command does not call other TaskCommand.
Constructor and Description |
---|
DoDepositCLCmdImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void | convertAmountToStoreDefaultCurrency(java.lang.Long nOrderId)
Deprecated.
Converts the Deposit Amount in the currency of the order to the default currency of the Store.
|
protected java.math.BigDecimal | getChargeAmount()
Deprecated.
Returns the Charge Amount.
|
protected java.lang.Long | getCreditLineId()
Deprecated.
Returns the CreditLine ID.
|
protected java.math.BigDecimal | getDepositAmount()
Deprecated.
Gets the depositAmount property of the command.
|
protected java.lang.String | getErrorViewName()
Deprecated.
Returns the name of the error view to use for reporting error.
|
protected OrderAccessBean | getOrder()
Deprecated.
Returns the OrderAccessBean representing the order whose payment is to be deposited.
|
protected java.lang.String | getStoreDefaultCurrency()
Deprecated.
Returns the default currency of the Store.
|
boolean | isReadyToCallExecute()
Deprecated.
This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command.
|
void | performExecute()
Deprecated.
Performs the main business logic of the command.
|
void | reset()
Deprecated.
Resets the instance variables of the command.
|
protected void | setChargeAmount(java.math.BigDecimal n)
Deprecated.
Sets the Charge Amount.
|
protected void | setCreditLineId(java.lang.Long n)
Deprecated.
Sets the Credit Line ID.
|
void | setDepositAmount(java.math.BigDecimal depositAmount)
Deprecated.
Sets the depositAmount property of the command.
|
void | setErrorViewName(java.lang.String sEVN)
Deprecated.
Sets the error view to be used to report error.
|
void | setOrder(OrderAccessBean ab)
Deprecated.
Sets the order property of the command.
|
protected void | setStoreDefaultCurrency(java.lang.String s)
Deprecated.
Sets the Store Default Currency
|
protected void | updateOrderPaymentMethod()
Deprecated.
Updates the ORDPAYMTHD table with deposit info for the order.
|
protected void convertAmountToStoreDefaultCurrency(java.lang.Long nOrderId) throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
protected java.math.BigDecimal getChargeAmount()
The Charge Amount is the Deposit Amount converted to the default currency of the Store. If the default currency of the Store is the same as the currency of the order, then the Charge Amount is the same as the Deposit Amount.
protected java.lang.Long getCreditLineId()
protected java.math.BigDecimal getDepositAmount()
protected java.lang.String getErrorViewName()
protected OrderAccessBean getOrder()
protected java.lang.String getStoreDefaultCurrency()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
protected void setChargeAmount(java.math.BigDecimal n)
The Charge Amount is the Deposit Amount converted to the default currency of the Store. If the default currency of the Store is the same as the currency of the order, then the Charge Amount is the same as the Deposit Amount.
protected void setCreditLineId(java.lang.Long n)
public void setDepositAmount(java.math.BigDecimal depositAmount)
public void setErrorViewName(java.lang.String sEVN)
public void setOrder(OrderAccessBean ab)
protected void setStoreDefaultCurrency(java.lang.String s)
protected void updateOrderPaymentMethod() throws javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException