com.ibm.commerce.order.calculation
Class CalculationRegistry

java.lang.Object
  |
  +--com.ibm.commerce.order.calculation.CalculationRegistry
All Implemented Interfaces:
Registry

public class CalculationRegistry
extends java.lang.Object
implements Registry

This registry caches tables referenced by the Calculation Framework. They include:


Field Summary
static java.lang.String COPYRIGHT
          The IBM copyright field notice.
 
Constructor Summary
CalculationRegistry()
          Constructor for CalculationRegistry.
 
Method Summary
 CalculationMethodAccessBean getApplyCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
           
 CalculationCodeAccessBean getCode(java.lang.Integer anCodeId)
           
 CalculationMethodAccessBean getCodeCombineMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
           
 java.util.HashMap getCodeDescriptions(java.lang.Integer anCodeId)
           
 java.lang.Long[] getCodeMemberGroupIds(java.lang.Integer anCodeId)
           
 java.lang.Integer[] getCodeTaxExemptions(java.lang.Integer anCodeId)
           
 CalculationCodeAccessBean getDefaultCode(java.lang.Integer anStoreId, java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp)
           
 CalculationRuleAccessBean[] getEffectiveRules(java.lang.Integer anCodeId, java.sql.Timestamp aTimestamp)
           
 CalculationMethodAccessBean getFinalizeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
           
 CalculationCodeAccessBean[] getIndirectlyAttachedCodes(java.lang.Long anCatalogEntryId, java.lang.Long anContractId, java.lang.Integer anStoreId, java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp)
           
 CalculationMethodAccessBean getInitializeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
           
static  CalculationRegistry getInstance()
          Returns an instance of this class.
 CalculationRangeLookupResultAccessBean getLookupResult(java.lang.Integer anRangeId, java.lang.String astrCurrency, CommandContext commandContext)
           
 CalculationMethodAccessBean getMethod(java.lang.Integer anMethodId)
           
 CalculationRangeAccessBean[] getRangesInDescendingOrder(java.lang.Integer anScaleId, java.math.BigDecimal adLookupNumber)
           
 CalculationMethodAccessBean getRuleCombineMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
           
 java.lang.Long[] getRuleMemberGroupIds(java.lang.Integer anRuleId)
           
 CalculationScaleAccessBean[] getScales(java.lang.Integer anRuleId)
           
 ShippingJurisdictionGroupCalculationRuleAccessBean[] getShippingRules(java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds, java.lang.Integer anShippingModeId)
           
 CalculationMethodAccessBean getSummarizeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
           
 java.lang.Integer[] getTaxCategoryIds(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
           
  TaxJurisdictionGroupCalculationRuleAccessBean[] getTaxRules(java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds)
           
  TaxTypeAccessBean getTaxType(java.lang.Integer anTaxTypeId)
           
 java.lang.Integer getUsageFlags(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
           
 java.lang.Integer[] getUsageIds(java.lang.Integer anStoreId)
           
 void initialize()
          Initializes a registry.
 void refresh()
          Refreshes registry entries from the database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
The IBM copyright field notice.
See Also:
Constant Field Values
Constructor Detail

CalculationRegistry

public CalculationRegistry()
Constructor for CalculationRegistry.
Method Detail

getApplyCalculationUsageMethod

public CalculationMethodAccessBean getApplyCalculationUsageMethod(java.lang.Integer anStoreId,
                                                                  java.lang.Integer anUsageId)
                                                           throws ECException
ECException

getCode

public CalculationCodeAccessBean getCode(java.lang.Integer anCodeId)
                                  throws ECException
ECException

getCodeCombineMethod

public CalculationMethodAccessBean getCodeCombineMethod(java.lang.Integer anStoreId,
                                                        java.lang.Integer anUsageId)
                                                 throws ECException
ECException

getCodeMemberGroupIds

public java.lang.Long[] getCodeMemberGroupIds(java.lang.Integer anCodeId)
                                       throws ECException
ECException

getDefaultCode

public CalculationCodeAccessBean getDefaultCode(java.lang.Integer anStoreId,
                                                java.lang.Integer anUsageId,
                                                java.sql.Timestamp aTimestamp)
                                         throws ECException
ECException

getEffectiveRules

public CalculationRuleAccessBean[] getEffectiveRules(java.lang.Integer anCodeId,
                                                     java.sql.Timestamp aTimestamp)
                                              throws ECException
ECException

getFinalizeCalculationUsageMethod

public CalculationMethodAccessBean getFinalizeCalculationUsageMethod(java.lang.Integer anStoreId,
                                                                     java.lang.Integer anUsageId)
                                                              throws ECException
ECException

getIndirectlyAttachedCodes

public CalculationCodeAccessBean[] getIndirectlyAttachedCodes(java.lang.Long anCatalogEntryId,
                                                              java.lang.Long anContractId,
                                                              java.lang.Integer anStoreId,
                                                              java.lang.Integer anUsageId,
                                                              java.sql.Timestamp aTimestamp)
                                                       throws ECException
ECException

getInitializeCalculationUsageMethod

public CalculationMethodAccessBean getInitializeCalculationUsageMethod(java.lang.Integer anStoreId,
                                                                       java.lang.Integer anUsageId)
                                                                throws ECException
ECException

getInstance

public static CalculationRegistry getInstance()
Returns an instance of this class.

getLookupResult

public CalculationRangeLookupResultAccessBean getLookupResult(java.lang.Integer anRangeId,
                                                              java.lang.String astrCurrency,
CommandContext commandContext)
                                                       throws ECException
ECException

getMethod

public CalculationMethodAccessBean getMethod(java.lang.Integer anMethodId)
                                      throws ECException
ECException

getRangesInDescendingOrder

public CalculationRangeAccessBean[] getRangesInDescendingOrder(java.lang.Integer anScaleId,
                                                               java.math.BigDecimal adLookupNumber)
                                                        throws ECException
ECException

getRuleCombineMethod

public CalculationMethodAccessBean getRuleCombineMethod(java.lang.Integer anStoreId,
                                                        java.lang.Integer anUsageId)
                                                 throws ECException
ECException

getRuleMemberGroupIds

public java.lang.Long[] getRuleMemberGroupIds(java.lang.Integer anRuleId)
                                       throws ECException
ECException

getScales

public CalculationScaleAccessBean[] getScales(java.lang.Integer anRuleId)
                                       throws ECException
ECException

getShippingRules

public ShippingJurisdictionGroupCalculationRuleAccessBean[] getShippingRules(java.lang.Integer anFulfillmentCenterId,
                                                                             java.lang.Integer[] anJurisdictionIds,
                                                                             java.lang.Integer anShippingModeId)
                                                                      throws ECException
ECException

getSummarizeCalculationUsageMethod

public CalculationMethodAccessBean getSummarizeCalculationUsageMethod(java.lang.Integer anStoreId,
                                                                      java.lang.Integer anUsageId)
                                                               throws ECException
ECException

getTaxCategoryIds

public java.lang.Integer[] getTaxCategoryIds(java.lang.Integer anStoreId,
                                             java.lang.Integer anUsageId)
                                      throws ECException
ECException

getTaxRules

public TaxJurisdictionGroupCalculationRuleAccessBean[] getTaxRules(java.lang.Integer anFulfillmentCenterId,
                                                                   java.lang.Integer[] anJurisdictionIds)
                                                            throws ECException
ECException

getTaxType

public TaxTypeAccessBean getTaxType(java.lang.Integer anTaxTypeId)
                             throws ECException
ECException

getUsageFlags

public java.lang.Integer getUsageFlags(java.lang.Integer anStoreId,
                                       java.lang.Integer anUsageId)
                                throws ECException
ECException

getUsageIds

public java.lang.Integer[] getUsageIds(java.lang.Integer anStoreId)
                                throws ECException
ECException

getCodeDescriptions

public java.util.HashMap getCodeDescriptions(java.lang.Integer anCodeId)
                                      throws ECException
ECException

getCodeTaxExemptions

public java.lang.Integer[] getCodeTaxExemptions(java.lang.Integer anCodeId)
                                         throws ECException
ECException

initialize

public void initialize()
                throws java.lang.Exception
Description copied from interface: Registry
Initializes a registry.
Specified by:
initialize in interface Registry
Throws:
java.lang.Exception

refresh

public void refresh()
             throws java.lang.Exception
Description copied from interface: Registry
Refreshes registry entries from the database
Specified by:
refresh in interface Registry
Throws:
java.lang.Exception