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

Interface CacheInvalidationIDGenerator

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String ACTION_ADD
      the action of adding a resource object.
      static java.lang.String ACTION_ANY
      any action against a resource object.
      static java.lang.String ACTION_DELETE
      the action of deleting a resource object.
      static java.lang.String ACTION_UPDATE
      the action of updating a resource object.
      static java.lang.String COPYRIGHT
      The internal copyright field.
    • Method Summary

      All Methods Instance Methods Abstract 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.
      boolean isInvalidationTrigger(java.lang.String resource, java.lang.String action)
      returns whether performing the action against the resource would trigger cache invalidation.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • ACTION_ADD

        static final java.lang.String ACTION_ADD
        the action of adding a resource object.
        See Also:
        Constant Field Values
      • ACTION_UPDATE

        static final java.lang.String ACTION_UPDATE
        the action of updating a resource object.
        See Also:
        Constant Field Values
      • ACTION_DELETE

        static final java.lang.String ACTION_DELETE
        the action of deleting a resource object.
        See Also:
        Constant Field Values
      • ACTION_ANY

        static final java.lang.String ACTION_ANY
        any action against a resource object.
        See Also:
        Constant Field Values
    • Method Detail

      • isInvalidationTrigger

        boolean isInvalidationTrigger(java.lang.String resource,
                                      java.lang.String action)
        returns whether performing the action against the resource would trigger cache invalidation.
        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.
      • generateInvalidationIDs

        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.
        Parameters:
        resource - the resource.
        resourceKeys - the resource keys.
        oneRecord - a HashMap object containing 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.