com.ibm.commerce.fulfillment.commands
Class GetOrderShippingTotalCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.fulfillment.commands.GetOrderShippingTotalCmdImpl
- All Implemented Interfaces:
- ECCommand, GetOrderShippingTotalCmd, TaskCommand
- public class GetOrderShippingTotalCmdImpl
- extends TaskCommandImpl
- implements GetOrderShippingTotalCmd
Adds the shipping charges on each suborder from column OYSHTOT in table ORDERPAY and saves the result in PRODUCT_SHIPPING.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
java.lang.String |
getCurrency()
Get the currency to be used for shipping charges. |
java.lang.Long |
getOrderRn()
Get the reference number of the order. |
java.math.BigDecimal |
getShippingTaxTotal()
Get the total tax charges for the order. |
java.math.BigDecimal |
getShippingTotal()
Get the total shipping charges for the order. |
java.util.Enumeration |
getSubOrders()
Get the SubOrderAccessBeans. |
boolean |
isReadyToCallExecute()
isReadyToCallExecute method is called by the Targetable Command frame work
This is where client side parameter checking is performed before the execution of the command. |
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 |
setCurrency(java.lang.String currency)
Set the currency to be used for shipping charges. |
void |
setOrderRn(java.lang.Long orderRn)
Set the reference number of the order. |
void |
setSubOrders(java.util.Enumeration subOrders)
Set the SubOrderAccessBeans. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, 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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
GetOrderShippingTotalCmdImpl
public GetOrderShippingTotalCmdImpl()
getCurrency
public java.lang.String getCurrency()
- Description copied from interface:
GetOrderShippingTotalCmd
- Get the currency to be used for shipping charges.
- Specified by:
getCurrency
in interface GetOrderShippingTotalCmd
getOrderRn
public java.lang.Long getOrderRn()
- Description copied from interface:
GetOrderShippingTotalCmd
- Get the reference number of the order.
- Specified by:
getOrderRn
in interface GetOrderShippingTotalCmd
getShippingTaxTotal
public java.math.BigDecimal getShippingTaxTotal()
- Description copied from interface:
GetOrderShippingTotalCmd
- Get the total tax charges for the order. If this value is not set, it is assumed to be 0.
- Specified by:
getShippingTaxTotal
in interface GetOrderShippingTotalCmd
getShippingTotal
public java.math.BigDecimal getShippingTotal()
- Description copied from interface:
GetOrderShippingTotalCmd
- Get the total shipping charges for the order.
- Specified by:
getShippingTotal
in interface GetOrderShippingTotalCmd
getSubOrders
public java.util.Enumeration getSubOrders()
- Description copied from interface:
GetOrderShippingTotalCmd
- Get the SubOrderAccessBeans.
- Specified by:
getSubOrders
in interface GetOrderShippingTotalCmd
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Description copied from class:
AbstractECCommand
- isReadyToCallExecute method is called by the Targetable Command frame work
This is where client side parameter checking is performed before the execution of the command.
The default implementation is to return true.
- Overrides:
isReadyToCallExecute
in class AbstractECCommand
- Following copied from class:
com.ibm.commerce.command.AbstractECCommand
- Returns:
- boolean - true if we can execute the command
false if we canot execute the command
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
setCurrency
public void setCurrency(java.lang.String currency)
- Description copied from interface:
GetOrderShippingTotalCmd
- Set the currency to be used for shipping charges.
- Specified by:
setCurrency
in interface GetOrderShippingTotalCmd
setOrderRn
public void setOrderRn(java.lang.Long orderRn)
- Description copied from interface:
GetOrderShippingTotalCmd
- Set the reference number of the order.
- Specified by:
setOrderRn
in interface GetOrderShippingTotalCmd
setSubOrders
public void setSubOrders(java.util.Enumeration subOrders)
- Description copied from interface:
GetOrderShippingTotalCmd
- Set the SubOrderAccessBeans.
- Specified by:
setSubOrders
in interface GetOrderShippingTotalCmd