public class RequisitionListUpdateCmdImpl extends RequisitionListBaseCmdImpl implements RequisitionListUpdateCmd
Input parameters:
Name | Type | Requirement | Description |
---|---|---|---|
requisitionListId | Long | mandatory | The id of the requisition list to be updated. |
name | String | optional | The name of the requisition list |
status | Char | optional | The status of the requisition list. The valid values are 'Y' and 'Z'. |
type | Char | optional | The type of the requisition list. The valid values are 'PRL' and 'SRL'. |
billtoAddressId | Long | optional | The billing address id for the requisition list. |
... | String | optional | Some optional payment name value pairs. |
Output parameters: None.
Behavior:
View:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
protected java.lang.Long | iBilltoAddressId
The bill to address id.
|
Constructor and Description |
---|
RequisitionListUpdateCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected void | action()
The main action of the command.
|
protected java.lang.Long | getBilltoAddressId()
This method returns the billing address id.
|
protected TypedProperty | getPayNVPsFromRequestProperties()
This method is a helper method that merges the ShopperPay information.
|
AccessVector | getResources()
This method returns the order access bean.
|
protected void | mergeNVPs(TypedProperty hshFrom, TypedProperty hshTo)
This is a helper method that merges new nvps (hshFrom) with old nvps (hshTo).
|
protected void | mergeShopperPayInfo(OrderAccessBean aabOrder)
This is a helper method that merges the ShopperPay information.
|
void | performExecute()
The main execution of the command.
|
void | reset()
This method resets all instance variables.
|
void | setBilltoAddressId(java.lang.Long id)
This method updates the billing address of the requisition list to the new address id.
|
void | setName(java.lang.String name)
This method updates the name of the requisition list to the new name.
|
void | setRequestProperties(TypedProperty reqProperties)
This method sets the request properties.
|
void | setRequisitionListId(java.lang.Long id)
This method specifies the requisition list id to be updated.
|
void | setStatus(java.lang.String status)
This method updates the status of the requisition list to the new status.
|
void | setType(java.lang.String type)
This method updates the type of the requisition list to the new status.
|
void | validateParameters()
This method validates the input parameters.
|
public static final java.lang.String COPYRIGHT
protected java.lang.Long iBilltoAddressId
public RequisitionListUpdateCmdImpl()
protected void action() throws java.sql.SQLException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, java.rmi.RemoteException, ECException
It updates the requisition list and calls mergeShopperPayInfo() to update the order pay info.
protected java.lang.Long getBilltoAddressId()
protected TypedProperty getPayNVPsFromRequestProperties()
public AccessVector getResources() throws ECException
protected void mergeNVPs(TypedProperty hshFrom, TypedProperty hshTo) throws ParameterNotFoundException, InvalidParameterValueException
protected void mergeShopperPayInfo(OrderAccessBean aabOrder) throws ECApplicationException, ECException, javax.naming.NamingException, javax.ejb.FinderException, java.rmi.RemoteException, javax.ejb.CreateException
public void performExecute() throws ECException
public void reset()
public void setBilltoAddressId(java.lang.Long id)
public void setName(java.lang.String name)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void setRequisitionListId(java.lang.Long id)
public void setStatus(java.lang.String status)
public void validateParameters() throws ECException
It checks the following mandatory parameters:
Exception:
public void setType(java.lang.String type)