com.ibm.commerce.order.calculation
Class GetOrderLevelParameterCmdImpl

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

public class GetOrderLevelParameterCmdImpl
extends TaskCommandImpl
implements GetOrderLevelParameterCmd

Reserved for IBM Internal use.
This is the default implementation of the GetOrderLevelParameter command.

See Also:
GetOrderLevelParameterCmd

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.GetOrderLevelParameterCmd
defaultCommandClassName, NAME
 
Constructor Summary
GetOrderLevelParameterCmdImpl()
           
 
Method Summary
 java.math.BigDecimal getAmount()
          Gets the adjustment amount.
 java.lang.Integer getType()
          Returns the parameter type: 2 - percentage 3 - fixed
 boolean isOverride()
          Returns whether the directly attached calculation codes will override the indirectly attached calculation codes and the default calculation code.
 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 setOrder(OrderAccessBean aabOrder)
          Sets the order.
 void setOrderItems(OrderItemAccessBean[] aabOrderItems)
          Sets the orderitems.
 void setUsageId(java.lang.Integer anUsageId)
          Sets the calculation usage.
 
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

GetOrderLevelParameterCmdImpl

public GetOrderLevelParameterCmdImpl()
Method Detail

getAmount

public java.math.BigDecimal getAmount()
Description copied from interface: GetOrderLevelParameterCmd
Gets the adjustment amount.
Specified by:
getAmount in interface GetOrderLevelParameterCmd

getType

public java.lang.Integer getType()
Description copied from interface: GetOrderLevelParameterCmd
Returns the parameter type:
Specified by:
getType in interface GetOrderLevelParameterCmd

isOverride

public boolean isOverride()
Description copied from interface: GetOrderLevelParameterCmd
Returns whether the directly attached calculation codes will override the indirectly attached calculation codes and the default calculation code.
Specified by:
isOverride in interface GetOrderLevelParameterCmd

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

setOrder

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

setOrderItems

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

setUsageId

public void setUsageId(java.lang.Integer anUsageId)
Description copied from interface: GetOrderLevelParameterCmd
Sets the calculation usage.
Specified by:
setUsageId in interface GetOrderLevelParameterCmd