com.ibm.commerce.registry
Class CalculationRegistry

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

public class CalculationRegistry
extends java.lang.Object
implements Registry

Note:As of WebSphere Commerce Business Edition 5.1, replaced by CalculationRegistry.
This registry caches tables referenced by the Calculation Framework.

See Also:
CalculationRegistry

Field Summary
protected static CalculationRegistry singleton
           
 
Fields inherited from interface com.ibm.commerce.registry.Registry
COPYRIGHT
 
Constructor Summary
CalculationRegistry()
           
 
Method Summary
 com.ibm.commerce.registry.CalculationCmd getCalculationCodeCombineCmd(StoreAccessBean storeAB, java.lang.Integer usageId, java.util.Hashtable cache)
           
 java.lang.Integer getCalculationCodeCombineMethodId(StoreAccessBean storeAB, java.lang.Integer usageId)
           
 CalculationMethodAccessBean getCalculationMethod(java.lang.Integer key)
           
 java.util.Enumeration getCalculationRangeLookup(java.lang.Integer calculationRangeId)
           
 java.util.Enumeration getCalculationRangeLookup(java.lang.Integer calculationRangeId, java.lang.String currencyCode)
           
 java.util.Enumeration getCalculationRanges(java.lang.Integer scaleId)
           
 java.util.Enumeration getCalculationRanges(java.lang.Integer scaleId, java.math.BigDecimal lookupNumber)
           
 com.ibm.commerce.registry.CalculationCmd getCalculationRuleCombineCmd(StoreAccessBean storeAB, java.lang.Integer usageId, java.util.Hashtable cache)
           
 java.lang.Integer getCalculationRuleCombineMethodId(StoreAccessBean storeAB, java.lang.Integer usageId)
           
 java.util.Enumeration getCalculationRules(java.lang.Integer calculationCode)
           
 java.util.Enumeration getCalculationScales(java.lang.Integer ruleId)
           
 com.ibm.commerce.registry.CalculationCmd getCommand(java.lang.Integer methodId, java.lang.Integer storeId, java.util.Hashtable cache)
           
 CalculationCodeAccessBean getDefaultCalculationCode(StoreAccessBean storeAB, java.lang.Integer usageId)
           
 java.util.Enumeration getEffectiveCalculationRules(java.lang.Integer calculationCode)
           
 StoreEntityCalculationUsageAccessBean getStoreEntityCalculationUsage(java.lang.Integer storeEntityId, java.lang.Integer usageId)
           
 void initialize()
          Initialize a registry.
 void refresh()
          This method refreshed registry entries from the database
 void retrieve()
           
static CalculationRegistry singleton()
          Reserved for IBM internal use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static CalculationRegistry singleton
Constructor Detail

CalculationRegistry

public CalculationRegistry()
Method Detail

getCalculationCodeCombineCmd

public com.ibm.commerce.registry.CalculationCmd getCalculationCodeCombineCmd(StoreAccessBean storeAB,
                                                                             java.lang.Integer usageId,
                                                                             java.util.Hashtable cache)
                                                                      throws javax.naming.NamingException,
                                                                             java.rmi.RemoteException,
                                                                             javax.ejb.CreateException,
                                                                             javax.ejb.FinderException,
                                                                             ECException

getCalculationCodeCombineMethodId

public java.lang.Integer getCalculationCodeCombineMethodId(StoreAccessBean storeAB,
                                                           java.lang.Integer usageId)
                                                    throws javax.naming.NamingException,
                                                           java.rmi.RemoteException,
                                                           javax.ejb.CreateException,
                                                           javax.ejb.FinderException

getCalculationMethod

public CalculationMethodAccessBean getCalculationMethod(java.lang.Integer key)
                                                 throws javax.naming.NamingException,
                                                        java.rmi.RemoteException,
                                                        javax.ejb.CreateException,
                                                        javax.ejb.FinderException

getCalculationRangeLookup

public java.util.Enumeration getCalculationRangeLookup(java.lang.Integer calculationRangeId)
                                                throws javax.naming.NamingException,
                                                       java.rmi.RemoteException,
                                                       javax.ejb.CreateException,
                                                       javax.ejb.FinderException

getCalculationRangeLookup

public java.util.Enumeration getCalculationRangeLookup(java.lang.Integer calculationRangeId,
                                                       java.lang.String currencyCode)
                                                throws javax.naming.NamingException,
                                                       java.rmi.RemoteException,
                                                       javax.ejb.CreateException,
                                                       javax.ejb.FinderException

getCalculationRanges

public java.util.Enumeration getCalculationRanges(java.lang.Integer scaleId)
                                           throws javax.naming.NamingException,
                                                  java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException

getCalculationRanges

public java.util.Enumeration getCalculationRanges(java.lang.Integer scaleId,
                                                  java.math.BigDecimal lookupNumber)
                                           throws javax.naming.NamingException,
                                                  java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException

getCalculationRuleCombineCmd

public com.ibm.commerce.registry.CalculationCmd getCalculationRuleCombineCmd(StoreAccessBean storeAB,
                                                                             java.lang.Integer usageId,
                                                                             java.util.Hashtable cache)
                                                                      throws javax.naming.NamingException,
                                                                             java.rmi.RemoteException,
                                                                             javax.ejb.CreateException,
                                                                             javax.ejb.FinderException,
                                                                             ECException

getCalculationRuleCombineMethodId

public java.lang.Integer getCalculationRuleCombineMethodId(StoreAccessBean storeAB,
                                                           java.lang.Integer usageId)
                                                    throws javax.naming.NamingException,
                                                           java.rmi.RemoteException,
                                                           javax.ejb.CreateException,
                                                           javax.ejb.FinderException

getCalculationRules

public java.util.Enumeration getCalculationRules(java.lang.Integer calculationCode)
                                          throws javax.naming.NamingException,
                                                 java.rmi.RemoteException,
                                                 javax.ejb.CreateException,
                                                 javax.ejb.FinderException

getCalculationScales

public java.util.Enumeration getCalculationScales(java.lang.Integer ruleId)
                                           throws javax.naming.NamingException,
                                                  java.rmi.RemoteException,
                                                  javax.ejb.CreateException,
                                                  javax.ejb.FinderException

getCommand

public com.ibm.commerce.registry.CalculationCmd getCommand(java.lang.Integer methodId,
                                                           java.lang.Integer storeId,
                                                           java.util.Hashtable cache)
                                                    throws javax.naming.NamingException,
                                                           java.rmi.RemoteException,
                                                           javax.ejb.CreateException,
                                                           javax.ejb.FinderException,
                                                           ECException

getDefaultCalculationCode

public CalculationCodeAccessBean getDefaultCalculationCode(StoreAccessBean storeAB,
                                                           java.lang.Integer usageId)
                                                    throws javax.naming.NamingException,
                                                           java.rmi.RemoteException,
                                                           javax.ejb.CreateException,
                                                           javax.ejb.FinderException

getEffectiveCalculationRules

public java.util.Enumeration getEffectiveCalculationRules(java.lang.Integer calculationCode)
                                                   throws javax.naming.NamingException,
                                                          java.rmi.RemoteException,
                                                          javax.ejb.CreateException,
                                                          javax.ejb.FinderException,
                                                          java.sql.SQLException

getStoreEntityCalculationUsage

public StoreEntityCalculationUsageAccessBean getStoreEntityCalculationUsage(java.lang.Integer storeEntityId,
                                                                            java.lang.Integer usageId)
                                                                     throws javax.naming.NamingException,
                                                                            java.rmi.RemoteException,
                                                                            javax.ejb.CreateException,
                                                                            javax.ejb.FinderException

initialize

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

refresh

public void refresh()
             throws java.lang.Exception
Description copied from interface: Registry
This method refreshed registry entries from the database

Specified by:
refresh in interface Registry
Following copied from interface: com.ibm.commerce.registry.Registry
Throws:
-  

retrieve

public void retrieve()
              throws java.lang.Exception

singleton

public static CalculationRegistry singleton()
Reserved for IBM internal use.