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, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public java.lang.Integer getStoreId()
getStoreId
in interface com.ibm.commerce.command.ECCommand
getStoreId
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
throw
- ECException when failure encountered.com.ibm.commerce.exception.ECException
public void reset()
reset
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.websphere.command.Command#reset()
public void setCatEntryId(java.lang.Long aCatEntryID)
setCatEntryId
in interface DeleteNominalCostCmd
catEntryId
- A reference number of catalog entry.public void setStoreId(java.lang.Integer aStoreId)
setStoreId
in interface DeleteNominalCostCmd
storeId
- A store IDpublic void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
ECCommand.validateParameters()