com.ibm.commerce.order.calculation
Class GetOrderLevelParameterCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.order.calculation.GetOrderLevelParameterCmdImpl
- All Implemented Interfaces:
- ECCommand, ECTargetableCommand, 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, Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
|
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()
The business logic for this command. |
void |
reset()
This method should be 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.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
-
- See Also:
- Constant Field Values
GetOrderLevelParameterCmdImpl
public GetOrderLevelParameterCmdImpl()
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 class: AbstractECTargetableCommand
- The business logic for this command. This method should be overwritten by all command writers. Command writers should call super.performExecute() as the first line in their method.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException
reset
public void reset()
- Description copied from class: AbstractECTargetableCommand
- This method should be 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 AbstractECTargetableCommand
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
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.