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)
Returns the calculation method for the specified store and usage.
|
java.util.HashMap |
getCodeDescriptions(java.lang.Integer anCodeId)
Returns descriptions of a calclulation code.
|
java.lang.Long[] |
getCodeMemberGroupIds(java.lang.Integer anCodeId)
Returns the member group ids for the specified calculation code id.
|
java.lang.Integer[] |
getCodeTaxExemptions(java.lang.Integer anCodeId)
Returns the tax category ids of exempt tax tagerories for the specified calculation code.
|
CalculationCodeAccessBean |
getDefaultCode(java.lang.Integer anStoreId,
java.lang.Integer anUsageId,
java.sql.Timestamp aTimestamp)
Returns the effective default calculation code for the specified store and usage.
|
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)
Returns the effective calculation rules for the specified calculation code and time.
|
CalculationMethodAccessBean |
getFinalizeCalculationUsageMethod(java.lang.Integer anStoreId,
java.lang.Integer anUsageId)
Returns the finalize calculation usage method for the specified store and usage.
|
CalculationCodeAccessBean[] |
getIndirectlyAttachedCodes(java.lang.Long anCatalogEntryId,
java.lang.Long anContractId,
java.lang.Integer anStoreId,
java.lang.Integer anUsageId,
java.sql.Timestamp aTimestamp)
Returns the effective indirectly attached calculation codes for the specified parameters.
|
CalculationMethodAccessBean |
getInitializeCalculationUsageMethod(java.lang.Integer anStoreId,
java.lang.Integer anUsageId)
Returns the initialize calculation usage method for the specified parameters.
|
static CalculationRegistry |
getInstance()
Returns an instance of this class.
|
CalculationRangeLookupResultAccessBean |
getLookupResult(java.lang.Integer anRangeId,
java.lang.String astrCurrency,
CommandContext commandContext)
Returns the lookup result for the specified parameters.
|
CalculationMethodAccessBean |
getMethod(java.lang.Integer anMethodId)
Returns the specified method
|
CalculationRangeAccessBean[] |
getRangesInDescendingOrder(java.lang.Integer anScaleId,
java.math.BigDecimal adLookupNumber)
Returns the ranges in descending sequence for the specified parameters.
|
CalculationMethodAccessBean |
getRuleCombineMethod(java.lang.Integer anStoreId,
java.lang.Integer anUsageId)
Returns the rule combine method for the specified store and usage.
|
java.lang.Long[] |
getRuleMemberGroupIds(java.lang.Integer anRuleId)
Returns the rule member group ids for the specified rule.
|
CalculationRuleAccessBean[] |
getRulesForCode(java.lang.Integer anCodeId)
Returns the calculation rules for the specified calculation code.
|
CalculationScaleAccessBean[] |
getScales(java.lang.Integer anRuleId)
Returns the scales for the specified rule.
|
ShippingJurisdictionGroupCalculationRuleAccessBean[] |
getShippingRules(java.lang.Integer anFulfillmentCenterId,
java.lang.Integer[] anJurisdictionIds,
java.lang.Integer anShippingModeId)
Returns the shipping jurisdiction group calculation rules for the specified parameters.
|
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)
Returns the summarize calculation usage mthod for the specified store and usage.
|
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)
Returns the tax category ids for the specified store and usage.
|
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)
Returns the tax rules for the specified parameters.
|
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)
Returns the specified tax type.
|
java.lang.Integer |
getUsageFlags(java.lang.Integer anStoreId,
java.lang.Integer anUsageId)
Returns the usage flags for the specified store and usage.
|
java.lang.Integer[] |
getUsageIds(java.lang.Integer anStoreId)
Returns the usage ids in sequence for the specified store.
|
void |
initialize()
Initializes the registry.
|
void |
refresh()
Refreshes the registry.
|
public static final java.lang.String COPYRIGHT
public CalculationRegistry()
public CalculationMethodAccessBean getApplyCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
anStoreId
- the store ID.anUsageId
- the usage ID.ECException
public CalculationCodeAccessBean getCode(java.lang.Integer anCodeId) throws ECException
anCodeId
- the calculation code ID.ECException
public CalculationMethodAccessBean getCodeCombineMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
anStoreId
- the store id.anUsageId
- the usage id.ECException
public java.lang.Long[] getCodeMemberGroupIds(java.lang.Integer anCodeId) throws ECException
anCodeId
- the calculation code id.ECException
public CalculationCodeAccessBean getDefaultCode(java.lang.Integer anStoreId, java.lang.Integer anUsageId, java.sql.Timestamp aTimestamp) throws ECException
anStoreId
- the store idanUsageId
- the usage idaTimestamp
- the returned code must be effective at the specified time.ECException
public CalculationRuleAccessBean[] getRulesForCode(java.lang.Integer anCodeId) throws ECException
anCodeId
- the calculation code id.ECException
public CalculationRuleAccessBean[] getEffectiveRules(java.lang.Integer anCodeId, java.sql.Timestamp aTimestamp) throws ECException
anCodeId
- the calculation code id.aTimestamp
- the time at which the rules are effective.ECException
public CalculationMethodAccessBean getFinalizeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
anStoreId
- the store idanUsageId
- the usage idECException
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
anCatalogEntryId
- the catalog entry id.anContractId
- the contract id.anStoreId
- the store id.anUsageId
- the usage id.aTimestamp
- the time at which the calculation codes are effective.ECException
public CalculationMethodAccessBean getInitializeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
anStoreId
- the store idanUsageId
- the usage idECException
public static CalculationRegistry getInstance()
public CalculationRangeLookupResultAccessBean getLookupResult(java.lang.Integer anRangeId, java.lang.String astrCurrency, CommandContext commandContext) throws ECException
anRangeId
- the range id.astrCurrency
- the currencycommandContext
- the command context to be used if currency conversion is required.ECException
public CalculationMethodAccessBean getMethod(java.lang.Integer anMethodId) throws ECException
anMethodId
- the method idECException
public CalculationRangeAccessBean[] getRangesInDescendingOrder(java.lang.Integer anScaleId, java.math.BigDecimal adLookupNumber) throws ECException
anScaleId
- the scale id.adLookupNumber
- the lookup numberECException
public CalculationMethodAccessBean getRuleCombineMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
anStoreId
- the store id.anUsageId
- the usage id.ECException
public java.lang.Long[] getRuleMemberGroupIds(java.lang.Integer anRuleId) throws ECException
anRuleId
- the rule id.ECException
public CalculationScaleAccessBean[] getScales(java.lang.Integer anRuleId) throws ECException
anRuleId
- the rule id.ECException
public ShippingJurisdictionGroupCalculationRuleAccessBean[] getShippingRules(java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds, java.lang.Integer anShippingModeId) throws ECException
anFulfillmentCenterId
- the fulfillment center idanJurisdictionIds
- the jurisdiction idsanShippingModeId
- the shipping mode idECException
public ShippingJurisdictionGroupCalculationRuleAccessBean[] getShippingRules(java.lang.Integer shipCode, java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds, java.lang.Integer anShippingModeId) throws ECException
shipCode
- shipping calculation code Id.anFulfillmentCenterId
- fulfillment center Id.anJurisdictionIds
- shipping jurisdiction Id.anShippingModeId
- shipping mode Id.ECException
public CalculationMethodAccessBean getSummarizeCalculationUsageMethod(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
anStoreId
- the store id.anUsageId
- the usage id.ECException
public java.lang.Integer[] getTaxCategoryIds(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
anStoreId
- the store id.anUsageId
- the usage id.ECException
public TaxJurisdictionGroupCalculationRuleAccessBean[] getTaxRules(java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds) throws ECException
anFulfillmentCenterId
- the fulfillment center id.anJurisdictionIds
- the tax jurisdiction ids.ECException
public TaxJurisdictionGroupCalculationRuleAccessBean[] getTaxRules(java.lang.Integer taxCodeId, java.lang.Integer anFulfillmentCenterId, java.lang.Integer[] anJurisdictionIds) throws ECException
taxCodeId
- tax calculation code Id.anFulfillmentCenterId
- fulfillment center Id.anJurisdictionIds
- array of tax jurisdiction Ids.ECException
public TaxTypeAccessBean getTaxType(java.lang.Integer anTaxTypeId) throws ECException
anTaxTypeId
- the tax type id.ECException
public java.lang.Integer getUsageFlags(java.lang.Integer anStoreId, java.lang.Integer anUsageId) throws ECException
anStoreId
- the store id.anUsageId
- the usage id.ECException
public java.lang.Integer[] getUsageIds(java.lang.Integer anStoreId) throws ECException
anStoreId
- the store id.ECException
public java.util.HashMap getCodeDescriptions(java.lang.Integer anCodeId) throws ECException
anCodeId
- the calculation code idECException
public java.lang.Integer[] getCodeTaxExemptions(java.lang.Integer anCodeId) throws ECException
anCodeId
- the calculation code id.ECException
public void initialize() throws java.lang.Exception
initialize
in interface Registry
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
anStoreId
- The specified store Id.anUsage
- The calculation usage of the tax category, i.e. the tax type.ECException
public java.lang.Integer[] getDisplayTaxCategoryIdsByStorePath(java.lang.Integer anStoreId) throws ECException
anStoreId
- The specified store Id.ECException
public java.lang.String getCalculationUsageRuntimeStoreRelationType(java.lang.Integer usageId) throws ECException
usageId
- The calculation usage Id.ECException
public java.lang.Integer getTaxCategoryDisplayUsage(java.lang.Integer categoryId) throws ECException
categoryId
- The tax category ID.ECException