com.ibm.commerce.inventory.facade.server.helper

Class DBCacheHelper

  • java.lang.Object
    • com.ibm.commerce.inventory.facade.server.helper.DBCacheHelper


  • public class DBCacheHelper
    extends java.lang.Object
    This help class is used to update the DOM inventory database cache when expired.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static boolean needToUpdateDBCache(InventoryAvailabilityType aInventoryAvailability, Invcnf aInventoryConfiguration)
      This method checks whether it needs to update database cache.
      static void updateDatabaseCache(java.util.List listNouns)
      This method updates the database cache according to the inventory availability in external Order Management System.
      • 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
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • updateDatabaseCache

        public static void updateDatabaseCache(java.util.List listNouns)
                                        throws AbstractApplicationException
        This method updates the database cache according to the inventory availability in external Order Management System.
        Parameters:
        listNouns - the list of InventoryAvailability Nouns got from external, which is InventoryAvailabilityType. Order Management System
        Throws:
        AbstractApplicationException
      • needToUpdateDBCache

        public static boolean needToUpdateDBCache(InventoryAvailabilityType aInventoryAvailability,
                                                  Invcnf aInventoryConfiguration)
        This method checks whether it needs to update database cache. In a case that the database cache is instantly expired, it makes no sense to update database cache.
        Parameters:
        aInventoryAvailability - the InventoryAvailability logical noun.
        aInventoryConfiguration - the inventory configuration.
        Returns:
        true if needs to update the database cache; otherwise return false.