com.ibm.commerce.context.content.resources.dynacache

Class DefaultCacheInvalidationIDGeneratorImpl

  • java.lang.Object
    • com.ibm.commerce.context.content.resources.dynacache.DefaultCacheInvalidationIDGeneratorImpl
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List generateInvalidationIDs(java.lang.String resource, java.lang.String[] resourceKeys, java.util.HashMap oneRecord, java.lang.String action, java.sql.Connection connection, java.lang.String schema)
      generates WebSphere Dynamic Cache invalidation IDs.
      void initialize(java.net.URL configURL)
      initializes the instance by reading the cache invalidation configuration.
      boolean isInvalidationTrigger(java.lang.String resource, java.lang.String action)
      returns whether performing the action against the resource would trigger cache invalidation.
      • Methods inherited from class java.lang.Object

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

      • DefaultCacheInvalidationIDGeneratorImpl

        public DefaultCacheInvalidationIDGeneratorImpl()
        the default constructor.
    • Method Detail

      • generateInvalidationIDs

        public java.util.List generateInvalidationIDs(java.lang.String resource,
                                                      java.lang.String[] resourceKeys,
                                                      java.util.HashMap oneRecord,
                                                      java.lang.String action,
                                                      java.sql.Connection connection,
                                                      java.lang.String schema)
        generates WebSphere Dynamic Cache invalidation IDs.
        Specified by:
        generateInvalidationIDs in interface CacheInvalidationIDGenerator
        Parameters:
        resource - the resource.
        resourceKeys - the resource keys.
        oneRecord - a HashMap object contains the values in the resource object.
        action - the action performed against the resource object.
        connection - the database connection.
        schema - the database schema name.
        Returns:
        a list of cache invalidation IDs.
      • isInvalidationTrigger

        public boolean isInvalidationTrigger(java.lang.String resource,
                                             java.lang.String action)
        returns whether performing the action against the resource would trigger cache invalidation.
        Specified by:
        isInvalidationTrigger in interface CacheInvalidationIDGenerator
        Parameters:
        resource - the resource.
        action - the action performed against the resource object.
        Returns:
        true if performing the action against the resource would trigger cache invalidation.
      • initialize

        public void initialize(java.net.URL configURL)
                        throws ECException
        initializes the instance by reading the cache invalidation configuration.
        Parameters:
        configURL - the URL of the cache invalidation configuration.
        Throws:
        ECException - a problem occurs when initializing the object.