com.ibm.commerce.order.calculation
Class CalculationCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.command.BusinessPolicyCommandImpl
|
+--com.ibm.commerce.order.calculation.CalculationCmdImpl
- All Implemented Interfaces:
- BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
- Direct Known Subclasses:
- ApplyCalculationUsageCmdImpl, ApplyCouponUsageCmdImpl, ApplyShippingChargeByCarrierCmdImpl, ApplyShippingCmdImpl, CalculateDiscountAmtCmdImpl, CalculationCodeCalculateCmdImpl, CalculationCodeCombineCmdImpl, CalculationCodeQualifyCmdImpl, CalculationRuleCalculateCmdImpl, CalculationRuleCombineCmdImpl, DiscountCalculationCodeApplyCmdImpl, DiscountCalculationRuleQualifyCmdImpl, FinalizeCouponUsageCmdImpl, FixedAmountCalculationRangeCmdImpl, InitializeAdjustmentCmdImpl, InitializeCouponUsageCmdImpl, InitializeSalesTaxCmdImpl, InitializeShippingCmdImpl, InitializeShippingTaxCmdImpl, NonDiscountedPriceCalculationScaleLookupCmdImpl, PercentageCalculationRangeCmdImpl, PerUnitAmountCalculationRangeCmdImpl, QuantityCalculationScaleLookupCmdImpl, QuantitySpreadByNetPriceCalculationScaleLookupCmdImpl, ShippingCalculationCodeApplyCmdImpl, ShippingCalculationRuleQualifyCmdImpl, SummarizeAdjustmentCmdImpl, SummarizeSalesTaxCmdImpl, SummarizeShippingCmdImpl, SummarizeShippingTaxCmdImpl, TaxCalculationCodeApplyCmdImpl, TaxCalculationRuleQualifyCmdImpl, UnitPriceCalculationScaleLookupCmdImpl
- public abstract class CalculationCmdImpl
- extends BusinessPolicyCommandImpl
- implements CalculationCmd
This is the base implementation of the Calculation
commands.
- See Also:
CalculationCmd
Field Summary |
static java.lang.String |
COPYRIGHT
|
Constructor Summary |
CalculationCmdImpl()
Constructs a new instance of this command implementation. |
Method Summary |
protected CalculationCmd |
createCommand(CalculationMethodAccessBean aabMethod)
This method is called by performExecute() to create a new instance of a particular calculation method. |
java.lang.String |
getCurrency()
Returns the currency used in the calculation. |
java.util.HashMap |
getCustomProperties()
Returns the custom properties as a HashMap. |
java.lang.Object |
getCustomProperty(java.lang.String astrName)
Return a particular custom property. |
java.sql.Timestamp |
getTimestamp()
Returns the timestamp used in the calculation. |
java.lang.Integer |
getUsageId()
Returns the calculation usage. |
void |
reset()
This method is called after a command has been executed to reset its states variables. |
void |
setCurrency(java.lang.String astrCurrency)
Sets the currency used in the calculation. |
void |
setCustomProperties(java.util.HashMap ahshCustomProperties)
Sets the custom properties. |
void |
setCustomProperty(java.lang.String astrName,
java.lang.Object aValue)
Sets a particular custom property. |
void |
setTimestamp(java.sql.Timestamp aTimestamp)
Sets the timestamp used in the calculation. |
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, performExecute, 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, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
CalculationCmdImpl
public CalculationCmdImpl()
- Constructs a new instance of this command implementation.
createCommand
protected CalculationCmd createCommand(CalculationMethodAccessBean aabMethod)
throws ECException
- This method is called by performExecute() to create a new instance of a particular calculation method.
getCurrency
public java.lang.String getCurrency()
- Description copied from interface:
CalculationCmd
- Returns the currency used in the calculation.
- Specified by:
getCurrency
in interface CalculationCmd
getCustomProperties
public java.util.HashMap getCustomProperties()
- Description copied from interface:
CalculationCmd
- Returns the custom properties as a HashMap.
- Specified by:
getCustomProperties
in interface CalculationCmd
getCustomProperty
public java.lang.Object getCustomProperty(java.lang.String astrName)
- Description copied from interface:
CalculationCmd
- Return a particular custom property.
- Specified by:
getCustomProperty
in interface CalculationCmd
getTimestamp
public java.sql.Timestamp getTimestamp()
- Description copied from interface:
CalculationCmd
- Returns the timestamp used in the calculation.
- Specified by:
getTimestamp
in interface CalculationCmd
getUsageId
public java.lang.Integer getUsageId()
- Description copied from interface:
CalculationCmd
- Returns the calculation usage.
- Specified by:
getUsageId
in interface CalculationCmd
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 astrCurrency)
- Description copied from interface:
CalculationCmd
- Sets the currency used in the calculation.
- Specified by:
setCurrency
in interface CalculationCmd
setCustomProperties
public void setCustomProperties(java.util.HashMap ahshCustomProperties)
- Description copied from interface:
CalculationCmd
- Sets the custom properties.
- Specified by:
setCustomProperties
in interface CalculationCmd
setCustomProperty
public void setCustomProperty(java.lang.String astrName,
java.lang.Object aValue)
- Description copied from interface:
CalculationCmd
- Sets a particular custom property.
- Specified by:
setCustomProperty
in interface CalculationCmd
setTimestamp
public void setTimestamp(java.sql.Timestamp aTimestamp)
- Description copied from interface:
CalculationCmd
- Sets the timestamp used in the calculation.
- Specified by:
setTimestamp
in interface CalculationCmd
setUsageId
public void setUsageId(java.lang.Integer anUsageId)
- Description copied from interface:
CalculationCmd
- Sets the calculation usage.
- Specified by:
setUsageId
in interface CalculationCmd