public class CreateNominalCostCmdImpl extends TaskCommandImpl implements CreateNominalCostCmd
This implementation first obtains a TradingPositionContainer ID of the nominal cost pricelist; then creates an entry in OFFER table; and add one new record to OFFERPRICE table in one transaction.
This command uses the following AccessBeans:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CreateNominalCostCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getCurrency()
Returns the currency.
|
void | performExecute()
First validates the input parameters; Second retrieves the nominal cost pricelist ID; Third check if there exists a nominal cost, if yes, throw ECException; Finally add record to OFFER and OFFERPRICE tables in a single transaction
|
void | reset()
This method is called after a command has been executed.
|
void | setCatEntryId(java.lang.Long aCatEntryID)
Sets the catalog entry ID whose nominal cost is going to be created.
|
void | setCurrency(java.lang.String aCurrency)
Set the currency of the nominal cost.
|
void | setNominalCost(java.math.BigDecimal aNominalCost)
Set the new value of the nominal cost of the product under this offer.
|
void | setStoreId(java.lang.Integer aStoreId)
Set the store ID to which the catalog entry belongs.
|
void | setTSRId(java.lang.Long aTSRId)
Set TSR ID who helps customer on shopping
|
void | validateParameters()
This method performs server side parameter checking.
|
public static final java.lang.String COPYRIGHT
public void setNominalCost(java.math.BigDecimal aNominalCost)
public void setCurrency(java.lang.String aCurrency)
public java.lang.String getCurrency() throws ECSystemException
public void setCatEntryId(java.lang.Long aCatEntryID)
public void setStoreId(java.lang.Integer aStoreId)
public void setTSRId(java.lang.Long aTSRId)
public void performExecute() throws ECException
public void reset()
public void validateParameters() throws ECException