public class CalculationRegistry extends java.lang.Object implements Registry
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright field notice.
|
Constructor and Description |
---|
CalculationRegistry()
Constructor for CalculationRegistry.
|
Modifier and Type | Method and Description |
---|---|
CalculationMethodAccessBean | getApplyCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId)
Returns the apply calculation usage method.
|
java.lang.String | getCalculationUsageRuntimeStoreRelationType(java.lang.Integer usageId)
Gets the runtime store relation type configuration for the calculation usage.
|
CalculationCodeAccessBean | getCode(java.lang.Integer anCodeId)
Returns the calculation code access bean for the specified calculation code ID.
|
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) |
java.lang.Integer[] | getDisplayTaxCategoryIdsByStorePath(java.lang.Integer anStoreId)
Gets all the sales tax categories by store path for display purpose.
|
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) |
CalculationRuleAccessBean[] | getRulesForCode(java.lang.Integer anCodeId) |
CalculationScaleAccessBean[] | getScales(java.lang.Integer anRuleId) |
ShippingJurisdictionGroupCalculationRuleAccessBean[] | getShippingRules(java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds, java.lang.Integer anShippingModeId) |
ShippingJurisdictionGroupCalculationRuleAccessBean[] | getShippingRules(java.lang.Integer shipCode, java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds, java.lang.Integer anShippingModeId)
Gets array of ShippingJurisdictionGroupCalculationRuleAccessBean for specified shipping calculation code Id, fulfillment center Id, array of shipping jurisdiction Ids and shipping mode Id.
|
CalculationMethodAccessBean | getSummarizeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) |
java.lang.Integer | getTaxCategoryDisplayUsage(java.lang.Integer categoryId)
Gets the tax category display usage flag of a tax category.
|
java.lang.Integer[] | getTaxCategoryIds(java.lang.Integer anStoreId, java.lang.Integer anUsageId) |
java.lang.Integer[] | getTaxCategoryIdsByStorePath(java.lang.Integer anStoreId, java.lang.Integer anUsage)
Gets all the tax categories by store path.
|
TaxJurisdictionGroupCalculationRuleAccessBean[] | getTaxRules(java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds) |
TaxJurisdictionGroupCalculationRuleAccessBean[] | getTaxRules(java.lang.Integer taxCodeId, java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds)
Gets the TaxJurisdictionGroupCalculationRuleAccessBean by tax Code Id, FulfillmentCenter Id and tax jurisdiction Ids.
|
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()
This method initializes a registry.
|
void | refresh()
This method refreshes registry entries from the database
|
public static final java.lang.String COPYRIGHT
public CalculationRegistry()
public CalculationMethodAccessBean getApplyCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
public CalculationCodeAccessBean getCode(java.lang.Integer anCodeId) throws ECException
public CalculationMethodAccessBean getCodeCombineMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
public java.lang.Long[] getCodeMemberGroupIds(java.lang.Integer anCodeId) throws ECException
public CalculationCodeAccessBean getDefaultCode(java.lang.Integer anStoreId, java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) throws ECException
public CalculationRuleAccessBean[] getRulesForCode(java.lang.Integer anCodeId) throws ECException
public CalculationRuleAccessBean[] getEffectiveRules(java.lang.Integer anCodeId, java.sql.Timestamp aTimestamp) throws ECException
public CalculationMethodAccessBean getFinalizeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
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
public CalculationMethodAccessBean getInitializeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
public static CalculationRegistry getInstance()
public CalculationRangeLookupResultAccessBean getLookupResult(java.lang.Integer anRangeId, java.lang.String astrCurrency, CommandContext commandContext) throws ECException
public CalculationMethodAccessBean getMethod(java.lang.Integer anMethodId) throws ECException
public CalculationRangeAccessBean[] getRangesInDescendingOrder(java.lang.Integer anScaleId, java.math.BigDecimal adLookupNumber) throws ECException
public CalculationMethodAccessBean getRuleCombineMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
public java.lang.Long[] getRuleMemberGroupIds(java.lang.Integer anRuleId) throws ECException
public CalculationScaleAccessBean[] getScales(java.lang.Integer anRuleId) throws ECException
public ShippingJurisdictionGroupCalculationRuleAccessBean[] getShippingRules(java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds, java.lang.Integer anShippingModeId) throws ECException
public ShippingJurisdictionGroupCalculationRuleAccessBean[] getShippingRules(java.lang.Integer shipCode, java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds, java.lang.Integer anShippingModeId) throws ECException
public CalculationMethodAccessBean getSummarizeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
public java.lang.Integer[] getTaxCategoryIds(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
public TaxJurisdictionGroupCalculationRuleAccessBean[] getTaxRules(java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds) throws ECException
public TaxJurisdictionGroupCalculationRuleAccessBean[] getTaxRules(java.lang.Integer taxCodeId, java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds) throws ECException
public TaxTypeAccessBean getTaxType(java.lang.Integer anTaxTypeId) throws ECException
public java.lang.Integer getUsageFlags(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
public java.lang.Integer[] getUsageIds(java.lang.Integer anStoreId) throws ECException
public java.util.HashMap getCodeDescriptions(java.lang.Integer anCodeId) throws ECException
public java.lang.Integer[] getCodeTaxExemptions(java.lang.Integer anCodeId) throws ECException
public void initialize() throws java.lang.Exception
public void refresh() throws java.lang.Exception
public java.lang.Integer[] getTaxCategoryIdsByStorePath(java.lang.Integer anStoreId, java.lang.Integer anUsage) throws ECException
public java.lang.Integer[] getDisplayTaxCategoryIdsByStorePath(java.lang.Integer anStoreId) throws ECException
public java.lang.String getCalculationUsageRuntimeStoreRelationType(java.lang.Integer usageId) throws ECException
public java.lang.Integer getTaxCategoryDisplayUsage(java.lang.Integer categoryId) throws ECException