public class DeleteNominalCostCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements DeleteNominalCostCmd
DeleteNominalCostCmdImpl Task Command Implementation
is used to delete the nominal cost of a product.
Behaviour
This command uses the following AccessBeans:
OfferAccessBean| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
DeleteNominalCostCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getStoreId()
Returns the store ID.
|
void |
performExecute()
First validates the input parameters;
Second check if there exists a nominal cost, if no, throw ECException;
Then remove the records in OFFER and OFFERPRICE tables in a single transaction.
|
void |
reset() |
void |
setCatEntryId(java.lang.Long aCatEntryID)
Sets the catalog entry ID whose nominal cost to be deleted.
|
void |
setStoreId(java.lang.Integer aStoreId)
Set the store ID to which the catalog entry belongs.
|
void |
validateParameters() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.Integer getStoreId()
getStoreId in interface com.ibm.commerce.command.ECCommandgetStoreId in class com.ibm.commerce.command.AbstractECTargetableCommandpublic void performExecute()
throws com.ibm.commerce.exception.ECException
performExecute in interface com.ibm.commerce.command.ECCommandperformExecute in class com.ibm.commerce.command.AbstractECTargetableCommandthrow - ECException when failure encountered.com.ibm.commerce.exception.ECExceptionpublic void reset()
reset in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.websphere.command.Command#reset()public void setCatEntryId(java.lang.Long aCatEntryID)
setCatEntryId in interface DeleteNominalCostCmdcatEntryId - A reference number of catalog entry.public void setStoreId(java.lang.Integer aStoreId)
setStoreId in interface DeleteNominalCostCmdstoreId - A store IDpublic void validateParameters()
throws com.ibm.commerce.exception.ECException
validateParameters in interface com.ibm.commerce.command.ECCommandvalidateParameters in class com.ibm.commerce.command.AbstractECTargetableCommandcom.ibm.commerce.exception.ECExceptionECCommand.validateParameters()