com.ibm.commerce.order.commands
Class OrderPrepareCmdImpl
java.lang.Object
|
+--OrderPrepareBaseImpl
|
+--com.ibm.commerce.order.commands.OrderPrepareCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ControllerCommand,
ECCommand,
OrderPrepareCmd
- public class OrderPrepareCmdImpl
- extends OrderPrepareBaseImpl
- implements
OrderPrepareCmd
This command prepares an order by determining prices, discounts, shipping
charges, and taxes for an order. If an order reference number is not specified,
all current pending orders will be prepared for the current customer at the
given store.
Behaviour
OrderPrepare command
- See Also:
- Serialized
Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
Method Summary |
boolean |
getCommit()
Gets the commit flag |
void |
performExecute()
Contains the actual business logic of the command. |
void |
reset()
This method should be called after a command has been executed to
reset its states variables. |
protected
void |
reSet()
Resets the instance variables. |
void |
setCommit(boolean ibCommit)
Sets the commit flag to control whether each order is processed in a
separate database transaction |
void |
setRequestProperties(
TypedProperty aReqParms)
The WebController calls the setRequestProperties method before
invoking the execute method in this command. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Methods inherited from interface
com.ibm.commerce.command.
ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
-
Constant Field Values
OrderPrepareCmdImpl
public OrderPrepareCmdImpl()
public void performExecute()
throws ECException
- Contains the actual business logic of the command.
-
- Specified by:
-
performExecute
in interface
ECCommand
-
- Throws:
-
ECException
reSet
protected void reSet()
- Resets the instance variables.
validateParameters
public void validateParameters()
throws ECException
- Performs server side parameter checking.
-
- Specified by:
-
validateParameters
in interface
ECCommand
-
- Throws:
-
ECException
setRequestProperties
public void setRequestProperties(TypedProperty aReqParms)
throws ECApplicationException
- The WebController calls the setRequestProperties method before invoking the
execute method in this command.
-
- Specified by:
-
setRequestProperties
in interface
ControllerCommand
-
- Parameters:
aReqParms
- request properties.
- Throws:
-
ECApplicationException
reset
public void reset()
- This method should be called after a command has been executed to reset its
states variables.
getCommit
public boolean getCommit()
- Gets the commit flag
-
- Returns:
- Returns a boolean
setCommit
public void setCommit(boolean ibCommit)
- Sets the commit flag to control whether each order is processed in a
separate database transaction
-
- Specified by:
-
setCommit
in interface
OrderPrepareCmd
-
- Parameters:
ibCommit
- The ibCommit to set