com.ibm.commerce.order.calculation
Class SetOrderLevelParameterCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.order.calculation.SetOrderLevelParameterCmdImpl
All Implemented Interfaces:
ECCommand, SetOrderLevelParameterCmd, TaskCommand

public class SetOrderLevelParameterCmdImpl
extends TaskCommandImpl
implements SetOrderLevelParameterCmd

Reserved for IBM internal use.
This is the default implementation of the SetOrderLevelParameter command.

See Also:
SetOrderLevelParameterCmd

Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.order.calculation.SetOrderLevelParameterCmd
defaultCommandClassName, NAME
 
Constructor Summary
SetOrderLevelParameterCmdImpl()
           
 
Method Summary
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void reset()
          This method is called after a command has been executed to reset its states variables.
 void setAmount(java.math.BigDecimal adAmount)
          Sets the amount.
 void setOrder(OrderAccessBean aabOrder)
          Sets the order.
 void setOrderItems(OrderItemAccessBean[] aabOrderItems)
          Sets the orderitems.
 void setOverride(boolean abOverride)
          Sets whether the directly attached calculation codes will override the indirectly attached calculation codes and the default calculation code.
 void setType(java.lang.Integer anType)
          Sets the parameter type: 2 - percentage 3 - fixed
 void setUsageId(java.lang.Integer anUsageId)
           
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

SetOrderLevelParameterCmdImpl

public SetOrderLevelParameterCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
Description copied from interface: ECCommand
Contains the actual business logic of the command It should be implemented by all the command writer.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

reset

public void reset()
Description copied from class: AbstractECCommand
This method is called after a command has been executed to reset its states variables. After the call to reset, we should be able to execute the command again.
Overrides:
reset in class AbstractECCommand

setAmount

public void setAmount(java.math.BigDecimal adAmount)
Description copied from interface: SetOrderLevelParameterCmd
Sets the amount.
Specified by:
setAmount in interface SetOrderLevelParameterCmd

setOrder

public void setOrder(OrderAccessBean aabOrder)
Description copied from interface: SetOrderLevelParameterCmd
Sets the order.
Specified by:
setOrder in interface SetOrderLevelParameterCmd

setOrderItems

public void setOrderItems(OrderItemAccessBean[] aabOrderItems)
Description copied from interface: SetOrderLevelParameterCmd
Sets the orderitems.
Specified by:
setOrderItems in interface SetOrderLevelParameterCmd

setOverride

public void setOverride(boolean abOverride)
Description copied from interface: SetOrderLevelParameterCmd
Sets whether the directly attached calculation codes will override the indirectly attached calculation codes and the default calculation code.
Specified by:
setOverride in interface SetOrderLevelParameterCmd

setType

public void setType(java.lang.Integer anType)
Description copied from interface: SetOrderLevelParameterCmd
Sets the parameter type:
Specified by:
setType in interface SetOrderLevelParameterCmd

setUsageId

public void setUsageId(java.lang.Integer anUsageId)
Specified by:
setUsageId in interface SetOrderLevelParameterCmd