com.ibm.commerce.supplychain.beans

Class SupplierHubDefaultContractRegistry

  • java.lang.Object
    • com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
      • com.ibm.commerce.supplychain.beans.SupplierHubDefaultContractRegistry
  • All Implemented Interfaces:
    com.ibm.commerce.registry.ElementUpdate, com.ibm.commerce.registry.ManagedDynamicCache, com.ibm.commerce.registry.Registry


    public class SupplierHubDefaultContractRegistry
    extends com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
    This registry caches the default contracts of supplier hosted stores which a supplier hub is associated with. It essentially caches an inner join of STOREREL and STOREDEF with STORE_ID as the index.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The IBM copyright string.
      static java.lang.String REGISTRY_NAME
      The name of this registry.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object createKey(java.lang.String astrKey)
      No-op.
      java.lang.String createKeyString(com.ibm.commerce.datatype.TypedProperty aTypedProperty)
      No-op.
      static SupplierHubDefaultContractRegistry getInstance()
      Returns the unique instance of this registry.
      void initialize()
      Initializes this registry.
      void populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache)
      No-op.
      java.lang.Object retrieve(java.lang.Object aKey)
      Returns the default contracts of supplier hosted stores which a supplier hub is associated with.
      • Methods inherited from class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry

        addElement, findObject, getCache, getCacheSize, getElement, getElementCount, getElements, getEvictions, getHits, getKeys, getMisses, getUsedCacheSize, refresh, removeAllElements, removeElement, setCache, setCacheSize, setInitialCapacity, setLoadFactor, update
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright string.
        See Also:
        Constant Field Values
      • REGISTRY_NAME

        public static final java.lang.String REGISTRY_NAME
        The name of this registry.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SupplierHubDefaultContractRegistry

        public SupplierHubDefaultContractRegistry()
        Constructor for SupplierHubDefaultContractRegistry.
    • Method Detail

      • createKey

        public java.lang.Object createKey(java.lang.String astrKey)
                                   throws java.lang.Exception
        No-op.
        Specified by:
        createKey in interface com.ibm.commerce.registry.ElementUpdate
        Specified by:
        createKey in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
        Parameters:
        astrKey -
        Returns:
        null
        Throws:
        java.lang.Exception
        See Also:
        ElementUpdate#createKey(String)
      • createKeyString

        public java.lang.String createKeyString(com.ibm.commerce.datatype.TypedProperty aTypedProperty)
                                         throws java.lang.Exception
        No-op.
        Specified by:
        createKeyString in interface com.ibm.commerce.registry.ElementUpdate
        Specified by:
        createKeyString in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
        Parameters:
        aTypedProperty -
        Returns:
        null
        Throws:
        java.lang.Exception
        See Also:
        ElementUpdate#createKeyString(TypedProperty)
      • initialize

        public void initialize()
                        throws java.lang.Exception
        Initializes this registry.
        Specified by:
        initialize in interface com.ibm.commerce.registry.Registry
        Overrides:
        initialize in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
        Throws:
        java.lang.Exception
      • populate

        public void populate(com.ibm.commerce.registry.LRUDynamicHashtable aCache)
                      throws java.lang.Exception
        No-op.
        Specified by:
        populate in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
        Parameters:
        aCache -
        Throws:
        java.lang.Exception
        See Also:
        AbstractManagedDynamicCacheRegistry.populate(LRUDynamicHashtable)
      • retrieve

        public java.lang.Object retrieve(java.lang.Object aKey)
                                  throws java.lang.Exception
        Returns the default contracts of supplier hosted stores which a supplier hub is associated with.
        Specified by:
        retrieve in class com.ibm.commerce.registry.AbstractManagedDynamicCacheRegistry
        Parameters:
        aKey - the supplier hub store ID (Integer).
        Returns:
        the default contract IDs (Long[]).
        Throws:
        java.lang.Exception
        See Also:
        AbstractManagedDynamicCacheRegistry.retrieve(Object)