com.ibm.commerce.order.commands
Class CancelPONumberCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.order.commands.CancelPONumberCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CancelPONumberCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class CancelPONumberCmdImpl extends TaskCommandImpl implements CancelPONumberCmd
This is the default implementation of theCancelPONumberCmd
task command.Behaviour:
- It cancels a purchase order number.
Task commands called:
None- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.ibm.commerce.order.commands.CancelPONumberCmd
defaultCommandClassName, NAME, NOT_PURGE, PURGE
-
-
Constructor Summary
Constructors Constructor and Description CancelPONumberCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description OrderAccessBean
getOrder()
This method returns the order whose relative purchase order number will be canceled.void
performExecute()
This method executes the business logic of this command implementation.void
reset()
This method resets the instance variables of the command.void
setOrder(OrderAccessBean anOrder)
This method sets the order whose relative purchase order number will be canceled.void
setPurge(java.lang.String sPurge)
This method sets the purge property of the command.void
validateParameters()
This method extracts and validates the input parameters of this command implementation.-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
-
-
-
Method Detail
-
getOrder
public OrderAccessBean getOrder()
This method returns the order whose relative purchase order number will be canceled.- Specified by:
getOrder
in interfaceCancelPONumberCmd
- Returns:
- An OrderAccessBean that represents the order to get.
-
setOrder
public void setOrder(OrderAccessBean anOrder)
This method sets the order whose relative purchase order number will be canceled.- Specified by:
setOrder
in interfaceCancelPONumberCmd
- Parameters:
anOrder
- An OrderAccessBean that represents the order to set.
-
validateParameters
public void validateParameters() throws ECException
This method extracts and validates the input parameters of this command implementation.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException
-
performExecute
public void performExecute() throws ECException
This method executes the business logic of this command implementation.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
reset
public void reset()
This method resets the instance variables of the command. The reset() method will reset all instance variables. The command includes some output values that are accessible via getters. Make sure those values are no longer needed before calling this method to reset the instance variables of the command.This is useful if the command instance is to be called multiple times with different command parameters.
- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
setPurge
public void setPurge(java.lang.String sPurge)
This method sets the purge property of the command.- Specified by:
setPurge
in interfaceCancelPONumberCmd
- Parameters:
sPurge
- A String indicating if purge is needed. If it's set to "1", it will remove the fieldBUYERPO_ID
from the tables orders for the canceled PO number. Otherwise, the fieldBUYERPO_ID
for the order is left intact.
-
-